POST
/
v1
/
core
/
auth
/
tokens
Create a new authentication token for an organization.
curl --request POST \
  --url https://us-central1-siro-prod.cloudfunctions.net/api-externalApi/v1/core/auth/tokens \
  --header 'Content-Type: application/json' \
  --data '{
  "tokenName": "<string>",
  "organizationId": "<string>"
}'
{
  "tokenId": "<string>",
  "tokenName": "<string>",
  "organizationId": "<string>",
  "authorizedOrgGroupId": "<string>",
  "parentOrgGroupTokenId": "<string>",
  "createdAt": "<string>",
  "token": "<string>"
}

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