api keys
List keys
Returns all API keys for the authenticated user. Keys are returned with a preview only, not the full key value.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Response Body
application/json
application/json
curl -X GET "https://zernio.com/api/v1/api-keys"{
"apiKeys": [
{
"id": "6507a1b2c3d4e5f6a7b8c9d0",
"name": "Production API Key",
"keyPreview": "sk_12345678...abcdef01",
"expiresAt": "2025-12-31T23:59:59Z",
"createdAt": "2024-01-15T10:30:00Z",
"scope": "full",
"profileIds": [],
"permission": "read-write"
},
{
"id": "6507a1b2c3d4e5f6a7b8c9d1",
"name": "Analytics Read-Only",
"keyPreview": "sk_87654321...12345678",
"expiresAt": null,
"createdAt": "2024-03-20T14:45:00Z",
"scope": "profiles",
"profileIds": [
{
"_id": "6507a1b2c3d4e5f6a7b8c9d0",
"name": "Main Brand",
"color": "#ffeda0"
}
],
"permission": "read"
}
]
}{
"error": "Unauthorized"
}