Skip to contentSkip to page list

Docs

List API keys

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

GET/api/v1/api-keys
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/api-keys"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "Authorization": "Bearer " + api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

{  "data": [    {      "id": "string",      "name": "string",      "description": "string",      "createdAt": "2026-01-01T00:00:00Z",      "expiresAt": "2026-01-01T00:00:00Z",      "lastUsedAt": "2026-01-01T00:00:00Z",      "revokedAt": "2026-01-01T00:00:00Z",      "roleBindings": [        {          "id": "string",          "role": "ADMIN",          "scopeType": "ORGANIZATION",          "scopeId": "string"        }      ]    }  ]}
api-reference/api-keys/list-api-keys

Authorization

Authorizationstringheaderrequired

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}.

Responses

200

Success

application/json

dataobject[]required
idstringrequired
At least 1 character
namestringrequired
descriptionstring | nullrequired
createdAtstring (date-time)required
expiresAtstring (date-time) | nullrequired
lastUsedAtstring (date-time) | nullrequired
revokedAtstring (date-time) | nullrequired
roleBindingsobject[]required
401

Invalid or missing API key token

403

Insufficient permissions (requires organization:view)

Documentation