Skip to main content

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

Body

    data

    object

    required

    A key for grouping different types of API data.

    type APIcallType (string)

    Default value: auth

    This API call type. This call must be auth.

    attributes

    object

    A key for grouping data.

    appKey appKey (string)

    The key used to create an appToken with /auth/token.

Responses

Created

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.

Loading...