> For the complete documentation index, see [llms.txt](https://docs.nebulablock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nebulablock.com/api-reference/platform-api/list-api-keys.md).

# API Keys

Retrieve every API key on your Nebula Block account, including its name, status, and team.

Retrieve every API key on your account.

## HTTP Request

`GET` `{API_URL}/keys`

where `API_URL = https://api.nebulablock.com/api/v1`.

## Response Attributes

#### data `list`

An array of your API keys. Each key has the following properties:

* `id` `integer`: The key's ID. Use it with [Update API Key](/api-reference/platform-api/list-api-keys/update-api-key.md) and [Delete API Key](/api-reference/platform-api/list-api-keys/delete-api-key.md).
* `name` `string`: The name you gave the key.
* `key` `string`: The key value.
* `status` `integer`: `1` when the key is enabled, `0` when it is disabled.
* `created_at` `integer`: Unix timestamp of when the key was created.
* `team` `object`: The team the key belongs to, or `null` for a personal key. Contains `id`, `name`, and `description`.

#### status `string`

`success` or `failed`.

#### message `string`

A description of the result.

## Example

#### Request

```bash
curl -X GET '{API_URL}/keys' \
-H 'Authorization: Bearer {TOKEN}'
```

#### Response

```json
{
    "data": [
        {
            "id": 5,
            "name": "production",
            "key": "sk-...",
            "status": 1,
            "created_at": 1756944000,
            "team": null
        },
        {
            "id": 6,
            "name": "ci",
            "key": "sk-...",
            "status": 0,
            "created_at": 1756950000,
            "team": {"id": 2, "name": "Platform", "description": "Infra team"}
        }
    ],
    "message": "API keys successfully retrieved",
    "status": "success"
}
```

## See also

* [Create API Key](/api-reference/platform-api/list-api-keys/create-api-key.md)
* [Update API Key](/api-reference/platform-api/list-api-keys/update-api-key.md)
* [Delete API Key](/api-reference/platform-api/list-api-keys/delete-api-key.md)
