POST
/
iam
/
clients
/
{clientId}
/
tokens
curl --request POST \
  --url https://api.gcore.com/iam/clients/{clientId}/tokens \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My token",
  "description": "It'\''s my token",
  "exp_date": null,
  "client_user": {
    "role": {
      "id": 1,
      "name": "Administrators"
    }
  }
}'
{
  "token": "<string>"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

clientId
integer
required

Account ID.

Body

application/json

Response

200
application/json

OK.

The response is of type object.