Skip to main content
GET
/
v1
/
keys
List API keys
curl --request GET \
  --url http://localhost:8000/v1/keys \
  --header 'Authorization: Bearer <token>'
{
  "keys": [
    {
      "key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "key_prefix": "<string>",
      "key_suffix": "<string>",
      "environment": "<string>",
      "is_active": true,
      "status": "active",
      "created_at": "2023-11-07T05:31:56Z",
      "last_used_at": "2023-11-07T05:31:56Z",
      "deprecated_at": "2023-11-07T05:31:56Z",
      "grace_period_ends_at": "2023-11-07T05:31:56Z",
      "grace_period_days_remaining": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: dk_test_ or dk_live_

Query Parameters

include_deprecated
boolean
default:true

Include deprecated keys in the response

Response

List of API keys

Response listing all API keys for a tenant (masked).

keys
APIKeyResponse · object[]
required

List of API keys (masked)