Skip to main content
POST
/
api
/
pci
/
tokens
curl --request POST \
  --url https://{cluster_id}.on-hellgate.cloud/api/pci/tokens \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "source": {
    "type": "session"
  }
}
'
{
"session_id": "8744c9ea-a02b-4ae6-875c-b64fc333e3ef"
}

Authorizations

x-api-key
string
header
required

Body

application/json
source
From Session · object
required
expires_in
integer

How many seconds after creation the token expires automatically.

Required range: 1 <= x <= 2592000
metadata
object

Metadata consisting of key-value entries.

  • Maximum 20 key-value pairs.
  • Maximum 20 characters per key.
  • Maximum 80 characters per value.
Example:
{
"my_key_one": "my_value_one",
"my_key_two": "my_value_two"
}

Response

Success response

session_id
string<uuid>
required