Get a user API key
Retrieves the API key metadata for a user.
Path parameters
-
The user ID.
-
The API Key ID.
GET
/users/{user_id}/auth/keys/{api_key_id}
curl \
-X GET https://{{hostname}}/api/v1/users/{user_id}/auth/keys/{api_key_id}
Response examples (200)
{
"id": "string",
"user_id": "string",
"organization_id": "string",
"description": "string",
"key": "string",
"creation_date": "2024-05-04T09:42:00+00:00",
"expiration_date": "2024-05-04T09:42:00+00:00"
}
Response examples (404)
# Headers
x-cloud-error-codes: api_keys.key_not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}