Skip to main content
POST
/
v1
/
auth
/
token
Get authentication token
curl --request POST \
  --url https://demo1-api.payrollintegrationsdemo.com/v1/auth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "grantType": "client_credentials"
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  "token_type": "Bearer",
  "expires_in": 3600
}

Authorizations

Authorization
string
header
required

HTTP Basic Authentication. Use your client ID as the username and client secret as the password.

Body

application/json
grantType
enum<string>
required

OAuth2 grant type

Available options:
client_credentials

Response

Authentication response with access token

accessToken
string
required

JWT access token

expiresIn
number
required

Token expiration time in seconds

tokenType
enum<string>
required

Type of the token

Available options:
Bearer