# List API keys

> Lists active keys. Tokens are never returned again.

Source: https://mailvina.com/docs/api-reference/api-keys/list-api-keys · Base URL: https://api.mailvina.com · Guide: https://mailvina.com/docs/api-keys

`GET /api-keys`

**Request**

```bash
curl -X GET 'https://api.mailvina.com/api-keys' \
  -H 'Authorization: Bearer mv_xxxxxxxxx'
```

```js
const res = await fetch('https://api.mailvina.com/api-keys', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.MAILVINA_API_KEY}`,
  },
});
const data = await res.json();
```

```python
import os, requests

res = requests.get(
    "https://api.mailvina.com/api-keys",
    headers={"Authorization": f"Bearer {os.environ['MAILVINA_API_KEY']}"},
)
print(res.json())
```

**Response**

```json
{
  "object": "list",
  "data": [
    {
      "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e",
      "name": "Production",
      "permission": "sending_access",
      "created_at": "2026-11-14T10:00:00.000Z",
      "last_used_at": "2026-11-14T10:00:00.000Z"
    }
  ]
}
```

### The API key object

A key for the API and SMTP relay. Its token is only shown when it’s created.

**Fields**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | no | Unique ID of the API key. |
| `name` | `string` | no | The name you gave it. |
| `permission` | `string` | no | `full` (every endpoint) or `sending_access` (only sending email). |
| `created_at` | `string` | no | When it was created (ISO 8601, UTC). |
| `last_used_at` | `string \| null` | no | When it was last used, to the minute. |
| `token` | `string` | no | Only in the create response: the secret key, starting with `mv_`. |
