Create App Token
POST/auth/token
Use endpoint POST /auth/token
to get a temporary appToken. You will use the token to authenticate your application’s calls to the Digitzs API.
Info
The Authorization
header value that is created with this must be formatted Bearer xxxxxx
, with x's replaced with the appToken
value.
Warning
Tokens expire after one hour.
Request
- application/json
Body
data
object
required
A key for grouping different types of API data.
typeAPIcallType (string)
This API call type. This call must be auth
.
Default value:
auth
Example:
auth
attributes
object
A key for grouping data.
appKeyappKey (string)
The key used to create an appToken with /auth/token
.
Responses
- 201
Created
- application/json
- Schema
- Example (from schema)
- Result
Schema
links
object
selfstring
URL for the current resource.
data
object
typestring
Type of the response data.
idstring
The same x-api-key
used in the Header.
attributes
object
appTokenappToken (string)
The Authorization
header value to use for most API calls.
{
"links": {
"self": "string"
},
"data": {
"type": "string",
"id": "string",
"attributes": {
"appToken": "string"
}
}
}
{
"links": {
"self": "xxxx/auth/token"
},
"data": {
"type": "auth",
"id": "xxxx",
"attributes": {
"appToken": "xxxx"
}
}
}