Skip to main content
GET
/
organizations
/
{organizationId}
/
api-keys
/
{id}
Get API key by ID
curl --request GET \
  --url http://sandbox.mintlify.com/organizations/{organizationId}/api-keys/{id} \
  --header 'Authorization: Bearer <token>'
Retrieves details of a specific API key.

Permissions

User must be a member of the organization.

Response

Returns API key details including:
  • Key ID and preview (sk_…)
  • Name and description
  • Scopes and rate limits
  • Usage statistics
  • Creation and last used dates
Note: The full API key value is never returned after creation.

Example

curl -X GET http://localhost:3001/api/organizations/{organizationId}/api-keys/{id} \
  -H "Authorization: Bearer <token>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required
id
string
required

Response

API key retrieved successfully