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

# List API Keys

> Retrieve all API keys for the authenticated user.

## Headers

<ParamField header="x-api-key" type="string" required>
  API key used for authenticating requests to the API.
</ParamField>

## Response Fields

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

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

  <ResponseField name="key" type="string">
    The API key (partially masked for security).
  </ResponseField>

  <ResponseField name="userId" type="string">
    User ID associated with the API key.
  </ResponseField>

  <ResponseField name="metadata" type="object">
    Metadata associated with the API key.
  </ResponseField>

  <ResponseField name="createdAt" type="string">
    Timestamp when the API key was created.
  </ResponseField>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  [
    {
      "_id": "665a1b2c3d4e5f6a7b8c9d0e",
      "key": "tk_a1b2****o5p6",
      "userId": "664a1b2c3d4e5f6a7b8c9d0e",
      "metadata": {},
      "createdAt": "2024-06-01T09:00:00.000Z"
    }
  ]
  ```
</ResponseExample>
