Admiral

Users

Retrieve an API key

GET
/v1/users/{user}/apiKeys/{apiKey}
  • NOT_FOUND when the caller has no key with that resource name.
    • PERMISSION_DENIED when the resource name's user is not the caller.

Scope: apikey:read

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

user*string

The user id.

apiKey*string

The apiKey id.

Response Body

application/json

curl -X GET "https://example.com/v1/users/string/apiKeys/string"
{  "api_key": {    "id": "string",    "name": "string",    "display_name": "string",    "resource_name": "string",    "owner_id": "string",    "scopes": [      "string"    ],    "expires_at": "2023-01-15T01:30:15.01Z",    "status": "API_KEY_STATUS_UNSPECIFIED",    "last_used_at": "2023-01-15T01:30:15.01Z",    "revoked_at": "2023-01-15T01:30:15.01Z",    "etag": "string",    "created_by": {      "id": "string",      "display_name": "string",      "email": "string"    },    "created_at": "2023-01-15T01:30:15.01Z",    "updated_at": "2023-01-15T01:30:15.01Z"  }}