# List API keys

List all API keys owned by the authenticated user in this organization. Requires organization:view permission.

> Page: https://langwatch.ai/docs/api-reference/api-keys/list-api-keys
> Source: https://github.com/langwatch/langwatch/blob/main/docs/api-reference/api-keys/list-api-keys.mdx
> Index of all pages: https://langwatch.ai/docs/llms.txt

## Endpoint

`GET https://app.langwatch.ai/api/v1/api-keys`

## Authentication

### admin_api_key

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

```json
{"id":"admin_api_key","type":"http","scheme":"bearer"}
```

## Request example

```bash
curl --request GET \
  --url 'https://app.langwatch.ai/api/v1/api-keys' \
  --header "Authorization: Bearer $LANGWATCH_API_KEY"
```

## Responses

### 200

Success

#### application/json

Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {"type":"string","minLength":1},
          "name": {"type":"string"},
          "description": {"type":["string","null"]},
          "createdAt": {"type":"string","format":"date-time"},
          "expiresAt": {"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},
          "lastUsedAt": {"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},
          "revokedAt": {"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},
          "roleBindings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {"type":"string","minLength":1},
                "role": {"type":"string","enum":["ADMIN","MEMBER","VIEWER","CUSTOM"]},
                "scopeType": {"type":"string","enum":["ORGANIZATION","TEAM","PROJECT"]},
                "scopeId": {"type":"string","minLength":1}
              },
              "required": ["id","role","scopeType","scopeId"],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "createdAt",
          "expiresAt",
          "lastUsedAt",
          "revokedAt",
          "roleBindings"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": ["data"],
  "additionalProperties": false
}
```

### 401

Invalid or missing API key token

### 403

Insufficient permissions (requires organization:view)

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.
