Skip to main content
POST
/
v1
/
core
/
auth
/
tokens
Create a new authentication token for an organization.
curl --request POST \
  --url https://api.example.com/v1/core/auth/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenName": "<string>",
  "organizationId": "<string>"
}
'
{
  "tokenId": "<string>",
  "tokenName": "<string>",
  "organizationId": "<string>",
  "authorizedOrgGroupId": "<string>",
  "parentOrgGroupTokenId": "<string>",
  "createdAt": "<string>",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tokenName
string
required
organizationId
string
required

Response

200 - application/json

Create a new authentication token for an organization.

tokenId
string
required
tokenName
string
required
organizationId
string
required
authorizedOrgGroupId
string | null
required

The ID of the org-group that this token is authorized to act as. Default null.

parentOrgGroupTokenId
string | null
required

The ID of the org-group-token that created this org-scoped token. Will be null for tokens created through the UI.

createdAt
string
required
token
string
required