GET
/
iam
/
clients
/
{clientId}
/
tokens
/
{tokenId}
Get API Token
curl --request GET \
  --url https://api.gcore.com/iam/clients/{clientId}/tokens/{tokenId} \
  --header 'Authorization: <api-key>'
{
  "name": "My token",
  "description": "It's my token",
  "exp_date": null,
  "client_user": {
    "role": {
      "id": 1,
      "name": "Administrators"
    },
    "deleted": false,
    "user_id": 123,
    "user_name": "John Doe",
    "user_email": "some@email.com",
    "client_id": 456
  },
  "id": 42,
  "deleted": false,
  "expired": false,
  "created": "2021-01-01 12:00:00+00:00",
  "last_usage": null
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

clientId
integer
required

Account ID.

tokenId
integer
required

API token ID.

Response

OK.

name
string
required

API token name.

Example:

"My token"

exp_date
string
required

Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If null, then the API token will never expire.

Example:

null

client_user
object
required

API token role. API token role and issuer data.

description
string

API token description.

Example:

"It's my token"

id
integer

API token ID.

Example:

42

deleted
boolean

Deletion flag. If true, then the API token was deleted.

Example:

false

expired
boolean

Expiration flag. If true, then the API token has expired. When an API token expires it will be automatically deleted.

Example:

false

created
string

Date when the API token was issued (ISO 8086/RFC 3339 format), UTC.

Example:

"2021-01-01 12:00:00+00:00"

last_usage
string

Date when the API token was last used (ISO 8086/RFC 3339 format), UTC.

Example:

null