Skip to main content

List API keys

GET /api/api-keys

Retrieve all active API keys for the authenticated user

Authentication​

  • Option 1: x-api-key: YOUR_API_KEY (header). API key for authentication. Create one in your dashboard.
  • Option 2: Authorization: Bearer YOUR_ACCESS_TOKEN. Dashboard JWT in Authorization: Bearer <token>, only on operations that explicitly list this scheme. Prefer x-api-key for REST integrations. OAuth for hosted MCP is a separate connection at https://mcp.zvid.io/mcp.

Create API keys at app.zvid.io/api-keys. Keep credentials on your server.

Parameters​

This operation has no path, query, or additional header parameters.

Request​

The shell examples read credentials from ZVID_API_KEY (or ZVID_ACCESS_TOKEN for Bearer authentication). Set that variable in your environment. Replace sample project, template, job, and asset identifiers with values from your own account.

This operation does not take a request body.

Request example​

curl --request GET 'https://api.zvid.io/api/api-keys' \
--header "x-api-key: $ZVID_API_KEY"

Responses​

HTTP 200​

API keys retrieved successfully

Content type: application/json.

Unknown properties are rejected. Required properties: apiKeys.

FieldTypeRequiredDescription and constraints
response.apiKeysarray of ApiKeyYes

Nested field: response.apiKeys

Array item: response.apiKeys[]

Schema: ApiKey.

Example response

{
"apiKeys": [
{
"id": 789,
"name": "Production API Key",
"keyPrefix": "zvid_d3f4a1b2c3d",
"createdAt": "2025-01-01T00:00:00.000Z",
"lastUsedAt": "2025-01-15T10:30:00.000Z",
"requestsCount": 150,
"isActive": true
}
]
}

HTTP 401​

Unauthorized

Content type: application/json.

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

HTTP 500​

Internal server error

Content type: application/json.

Required properties: error.

FieldTypeRequiredDescription and constraints
response.errorstringYesError type
response.messagestringNoHuman-readable error message

Schema definitions​

The following definitions describe the fields referenced above. Expand a definition to inspect its complete contract.

ApiKeyList

Unknown properties are rejected. Required properties: apiKeys.

FieldTypeRequiredDescription and constraints
ApiKeyList.apiKeysarray of ApiKeyYes

Nested field: ApiKeyList.apiKeys

Array item: ApiKeyList.apiKeys[]

Schema: ApiKey.

ApiKey

Unknown properties are rejected. Required properties: id, name, keyPrefix, createdAt, requestsCount, isActive.

FieldTypeRequiredDescription and constraints
ApiKey.idintegerYes
ApiKey.namestringYes
ApiKey.keyPrefixstringYesStored prefix of the key (first characters, used for identification)
ApiKey.createdAtstringYesFormat: date-time.
ApiKey.lastUsedAtstring / nullNoFormat: date-time.
ApiKey.requestsCountintegerYesTotal number of requests made with this key
ApiKey.isActivebooleanYesWhether the key is active (this list only returns active keys)
AuthenticationError

Unknown properties are rejected. Required properties: error.

FieldTypeRequiredDescription and constraints
AuthenticationError.errorstringYesError type
AuthenticationError.messagestringNoHuman-readable error message
Error

Required properties: error.

FieldTypeRequiredDescription and constraints
Error.errorstringYesError type
Error.messagestringNoHuman-readable error message