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

# List API keys

> List all active and expired API keys for your workspace.

Retrieve all configured API keys along with their expiration status and last used dates.

### Response

<ResponseField name="data" type="array">
  <ResponseField name="id" type="string">Key ID.</ResponseField>
  <ResponseField name="name" type="string">Key name.</ResponseField>
  <ResponseField name="secret_suffix" type="string">Last 4 digits.</ResponseField>
  <ResponseField name="last_used_at" type="string">Last activity timestamp.</ResponseField>
  <ResponseField name="expires_at" type="string">Expiration timestamp.</ResponseField>
  <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.mailofly.com/api/v1/api-keys \
    -H "Authorization: Bearer mf_live_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": [
      {
        "id": "key_123456",
        "name": "Production App",
        "secret_suffix": "9aBc",
        "last_used_at": "2026-09-11T13:58:00Z",
        "expires_at": null,
        "created_at": "2026-09-11T10:00:00Z"
      }
    ]
  }
  ```
</ResponseExample>


## Related topics

- [Leaked API Keys](/guides/api-keys/leaked-api-keys.md)
- [API Key Security](/guides/api-keys/api-key-security.md)
- [Manage API Keys](/guides/api-keys/manage-api-keys.md)
- [Delete API key](/api/api-keys/delete-api-key.md)
- [Create API key](/api/api-keys/create-api-key.md)
