---
title: "Get User API Key Details"
description: "Get details of a specific user API key."
api: "GET /api/v1/user-api-keys/{api_key_id}"
---

## Request

<ParamField header="x-stack-secret-server-key" type="string" required>
  The secret server key for authentication.
</ParamField>

<ParamField header="x-stack-admin-access-token" type="string">
  The admin access token.
</ParamField>

<ParamField header="x-stack-project-id" type="string" required>
  The project ID.
</ParamField>

<ParamField path="api_key_id" type="string" required>
  The unique identifier of the user API key.
</ParamField>

## Response

<ResponseField name="id" type="string">
  The unique identifier of the API key.
</ResponseField>

<ResponseField name="description" type="string">
  A description of the API key.
</ResponseField>

<ResponseField name="user_id" type="string">
  The identifier of the user this API key belongs to.
</ResponseField>

<ResponseField name="expires_at" type="string">
  ISO 8601 timestamp of when the API key expires, or `null` if it does not expire.
</ResponseField>

<ResponseField name="manually_revoked_at" type="string">
  ISO 8601 timestamp of when the API key was manually revoked, or `null` if it has not been revoked.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 timestamp of when the API key was created.
</ResponseField>

<CodeGroup>
```bash cURL
curl -X GET 'https://api.stack-auth.com/api/v1/user-api-keys/uak_1234567890' \
  -H 'x-stack-secret-server-key: YOUR_SECRET_SERVER_KEY' \
  -H 'x-stack-project-id: YOUR_PROJECT_ID'
```

```json 200 Response
{
  "id": "uak_1234567890",
  "description": "My API key",
  "user_id": "usr_1234567890",
  "expires_at": "2025-12-31T23:59:59Z",
  "manually_revoked_at": null,
  "created_at": "2024-01-01T00:00:00Z"
}
```
</CodeGroup>
