Skip to main content
GET
/
service_accounts
/
{clientId}
/
api_keys
List service account API keys
curl --request GET \
  --url https://api.blaxel.ai/v0/service_accounts/{clientId}/api_keys \
  --header 'Authorization: Bearer <token>'
[
  {
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "apiKey": "<string>",
    "expires_in": "30d",
    "id": "ak_abc123def456",
    "name": "CI/CD Pipeline Key",
    "sub": "<string>",
    "sub_type": "user"
  }
]

Authorizations

Authorization
string
header
required

OAuth2 authentication with JWT tokens

Path Parameters

clientId
string
required

Service account client ID

Response

200 - application/json

successful operation

createdAt
string
read-only

The date and time when the resource was created

updatedAt
string
read-only

The date and time when the resource was updated

createdBy
string
read-only

The user or service account who created the resource

updatedBy
string
read-only

The user or service account who updated the resource

apiKey
string
read-only

Api key

expires_in
string

Duration until expiration. Supports formats like '30d' (30 days), '24h' (24 hours), '1w' (1 week). If not set, the API key never expires.

Example:

"30d"

id
string
read-only

Api key id, to retrieve it from the API

Example:

"ak_abc123def456"

name
string

Name for the API key

Example:

"CI/CD Pipeline Key"

sub
string
read-only

User subject identifier

sub_type
string

Subject type (user or service_account)

Example:

"user"

Last modified on May 28, 2026