> ## Documentation Index
> Fetch the complete documentation index at: /docs/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 via the Mailofly API.

### Response

**data** `array`

**id** `string`

Key ID.

**name** `string`

Key name.

**secret\_suffix** `string`

Last 4 digits.

**last\_used\_at** `string`

Last activity timestamp.

**expires\_at** `string`

Expiration timestamp.

**created\_at** `string`

Creation timestamp.

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

```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"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.