> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getagentdrive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List API Keys

> List all API keys for your account.

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.getagentdrive.com/v0/keys \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": "key_abc123",
      "key_prefix": "agd_sk_live_abcd",
      "name": "CI/CD Pipeline",
      "scope": "read-write",
      "created_at": "2026-03-19T10:00:00Z",
      "last_used_at": "2026-03-19T14:30:00Z"
    }
  ]
  ```
</ResponseExample>

## Response

Returns an array of API key objects. The full key value is never returned after creation.

<ResponseField name="id" type="string">
  Unique identifier for the API key.
</ResponseField>

<ResponseField name="key_prefix" type="string">
  A prefix of the key for identification purposes.
</ResponseField>

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

<ResponseField name="scope" type="string">
  The access scope: `"read-write"` or `"read-only"`.
</ResponseField>

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

<ResponseField name="last_used_at" type="string">
  ISO 8601 timestamp of when the key was last used, or `null`.
</ResponseField>
