API keys

List API keys

List all API keys for the authenticated owner.

GET/api-keys

List all API keys for a specific owner. Use this endpoint to audit and manage your API keys. Note that the actual API key value is not returned for security reasons.

Authorization

If set, the API uses an API key for authentication. Include the following header in your requests: X-blnk-key: <api-key>.

Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.

See also: Core API key.

Query

ownerstringquery

Unique identifier of the owner whose keys you want to list.

Response

Returns an array of API key objects. Note that the actual key value is not returned for security reasons.

api_key_idstring

Unique identifier for the API key.

namestring

The name of the API key.

owner_idstring

The owner identifier associated with the API key.

scopesarray

List of permissions granted to the API key.

expires_atstring

The expiration date and time for the API key in ISO 8601 format.

created_atstring

ISO 8601 formatted timestamp of when the API key was created.

last_used_atstring

ISO 8601 formatted timestamp of when the API key was last used for authentication.