ReferenceApi keys

List API keys

List all API keys for the current or specified account

POST
/auth/api-keys/list
AuthorizationBearer <token>

Bearer token authentication. Use your API key as the bearer token.

In: header

List API keys input

accountId?string

Optional, defaults to current user

Response Body

curl -X POST "https://eu1.api.bivariant.com/v1/auth/api-keys/list" \  -H "Content-Type: application/json" \  -d '{}'
{
  "keys": [
    {
      "accountId": "string",
      "accountType": "string",
      "createdAt": "string",
      "description": "string",
      "expiresAt": 0,
      "id": "string",
      "keyPreview": "string",
      "lastUsedAt": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "name": "string"
    }
  ]
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}