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.
type APIcallType (string)
This API call type. This call must be auth
.
Default value:
auth
Example:
auth
attributes
object
A key for grouping data.
appKey appKey (string)
The key used to create an appToken with /auth/token
.
Responses
- 201
Created
- application/json
- Schema
- Example (from schema)
- Result
Schema
links
object
self string
URL for the current resource.
data
object
type string
Type of the response data.
id string
The same x-api-key
used in the Header.
attributes
object
appToken appToken (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"
}
}
}