cURL
curl --request GET \ --url https://console.gmicloud.ai/api/v1/me/api-keys/current \ --header 'Authorization: Bearer <token>'
{ "key": { "id": "550e8400-e29b-41d4-a716-446655440000", "scope": "ie_model", "owner": { "id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11" }, "type": "ie_model" }, "organization": { "id": "066daf34-08e8-40fe-a384-4248bcff5842" } }
Validate the API key from the Authorization Bearer token and return the key details.
An API key used to authenticate a user and grant access to restricted models. It is issued by api-keys APIs.
Successfully verified the API key and retrieved the key details.
Information about the API key.
Show child attributes
The unique identifier for the API key.
"550e8400-e29b-41d4-a716-446655440000"
The API key scope.
ie_model
ce_resource
"ie_model"
Information about the user who owns this API key
The user ID.
"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
The API key type. This field is deprecated and will be removed in a future version. Use the scope field instead to specify the API key's scope.
scope
The organization associated with the API key
The organization ID.
"066daf34-08e8-40fe-a384-4248bcff5842"