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

# List API Keys

> List all API keys for the authenticated user. Full keys are never shown.

# List API Keys

Returns all API keys belonging to the authenticated user. Only key previews are shown - the full key is only returned at creation time.

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

<ResponseExample>
  ```json 200 theme={null}
  {
    "api_keys": [
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "name": "Production Bot",
        "key_preview": "rb_...a1b2c3d4",
        "is_workspace_key": false,
        "created_at": "2025-01-15T10:30:00Z",
        "last_used_at": "2025-01-16T08:00:00Z"
      }
    ]
  }
  ```
</ResponseExample>

<ResponseField name="api_keys" type="array">
  Array of API key objects

  <Expandable title="API Key Object">
    <ResponseField name="id" type="string">Unique key identifier (UUID)</ResponseField>
    <ResponseField name="name" type="string">Optional display name for the key</ResponseField>
    <ResponseField name="key_preview" type="string">Truncated key for identification (e.g., `rb_...a1b2c3d4`)</ResponseField>
    <ResponseField name="is_workspace_key" type="boolean">Whether this is an auto-generated workspace key</ResponseField>
    <ResponseField name="created_at" type="string">ISO 8601 creation timestamp</ResponseField>
    <ResponseField name="last_used_at" type="string">ISO 8601 timestamp of last use (omitted if never used)</ResponseField>
  </Expandable>
</ResponseField>
