SPA API Tokens
SPA: Creates a new API Token
Creates a new API token for the authenticated user's client. Token value is auto-generated. Requires ROLE_INTEGRATOR or ROLE_ADMIN.
POST
/api/spa/api-tokensAuthorizations
X-AUTH-TOKEN
stringheaderrequired
Value for the X-AUTH-TOKEN header parameter.
Request Body
application/json
required
The new ApiToken resource
{
"identifier": "default",
"description": "Any description",
"active": true,
"activeFrom": "2024-01-01"
}Response
201
ApiToken resource created
id
integer
Identifier generated by Output.Rocks.
identifier
stringrequired
Unique identifier
description
stringrequired
ApiToken description
token
string
Token, to be used in API requests to Output.Rocks API
createdAt
string<date-time>
UTC date time of entry creation
updatedAt
string<date-time>
UTC date time of last entry update
active
boolean
Active flag. Default: true
activeFrom
string<date-time>
Date to activate the entry. Default: today