logoAccess

Get API key

GET
/api/v1/api-keys/{id}

Retrieve API key details by ID. The full key is never returned.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Path Parameters

id*string

Unique API key ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
id*string
name*string
status*string
expires_at*string|null
created_at*string
updated_at*string
last_request*string|null
permissions*array<string>
preset*string|null
request_count*number
curl -X GET 'https://api.tryaccess.xyz/api/v1/api-keys/key_01J9Z8K2P3Q4R5S6T7U8V9W0X1' \  -H 'x-api-key: string'
{  "id": "string",  "name": "string",  "status": "string",  "expires_at": "string",  "created_at": "string",  "updated_at": "string",  "last_request": "string",  "permissions": [    "string"  ],  "preset": "string",  "request_count": 0}

How is this guide?