List Organization API Keys
GEThttps://api.confident-ai.com/v1/organization/api-keys
Lists all organization-scoped API keys. Each key's value is redacted (only the last 6 characters are shown) — the full value is only ever returned once, at creation.
curl -X GET "https://api.confident-ai.com/v1/organization/api-keys" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"{
"success": true,
"data": {
"apiKeys": [
{
"id": 12,
"name": "CI/CD key",
"valid": true,
"value": "***************a1b2c3",
"created_at": "2024-12-04T23:00:00.000Z",
"lastUsed": "2024-12-05T10:15:00.000Z"
}
]
}
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Response
successbooleanIndicates if the request was successful
dataobjectShow 1 propertyHide 1 property
apiKeyslist of objectsShow 9 propertiesHide 9 properties
idintegerUnique identifier for the API key
namestringHuman-readable label for the API key
validbooleanWhether the key is active. A deactivated key is rejected on authentication.
valuestringThe API key value. This is redacted (only the last 6 characters are shown, prefixed with asterisks) on every response except the create response — and the rotate response when rotating without a grace period — where the full value is returned exactly once.
shadowValuestringThe replacement value while a rotation's grace period is running, or
nullwhen no rotation is pending. Redacted on every response except the rotate response that issued it, where the full value is returned exactly once.rotatesAtstringISO 8601 timestamp of when a pending rotation completes and
shadowValuereplacesvalue, ornullwhen no rotation is pendingexpiresAtstringISO 8601 timestamp of when the key expires, or
nullif it never expirescreated_atstringISO 8601 timestamp of when the key was created
lastUsedstringISO 8601 timestamp of when the key was last used to authenticate, or
nullif never used