POST
/
users
/
{user}
/
keys
/
tokens
curl --request POST \
  --url https://cloud.local.wirtual.dev/api/v2/users/{user}/keys/tokens \
  --header 'Content-Type: application/json' \
  --header 'Wirtual-Session-Token: <api-key>' \
  --data '{
  "lifetime": 123,
  "scope": "<any>",
  "token_name": "<string>"
}'
{
  "key": "<string>"
}

Authorizations

Wirtual-Session-Token
string
header
required

Path Parameters

user
string
required

User ID, name, or me

Body

application/json
Create token request
lifetime
integer
scope
any
token_name
string

Response

201 - application/json
Created
key
string