API key

Available Fields

Field

id

created_at

is_of__actor

name

description


Examples

Get all API keys

GET "https://api.balena-cloud.com/v7/api_key" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Get all API keys of a device by UUID

GET "https://api.balena-cloud.com/v7/api_key?\$filter=is_of__actor/any(a:a/is_of__device/any(d:d/uuid%20eq%20'<DEVICE_UUID>'))" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Get all API keys of an application by slug

Get all user API keys for the authenticated user

Update the expiry date for an API Key

Note: Select a date in the past to expire an API Key immediately.

Clear the expiry date of an API Key

Create new API key

Last updated

Was this helpful?