POST/api/v1/authtoken

Authorization

Gaining access to the EVENTS API

Implementation Notes

This call authenticates the validity of a username/password combination. If the authentication is successful, a valid access token is issued. Use the username and password provided to you in your EVENTS API packet.
POST/api/v1/authtoken

Bearer Token Authentication

The access token must be appended to the 'Authorization Header' as depicted in the example below:

Authorization: Bearer A90324XXZUZUgpO0dd6npHcM83CJ...

Parameters

NameInTypeRequiredDescription
bodybodypostAuthtokenRequestRequirednone

Responses

StatusMeaningDescriptionSchema
200OKSuccessful authenticationpostAuthtokenResponse200
401UnauthorizedInvalid credentialsNone
404Not FoundNo user found with username: {userName}None
500Internal Server ErrorInternal Server ErrorNone

Code Samples

# You can also use wget
curl -X POST /api/v1/authtoken \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Example Response

200 Response
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyTmFtZSI6InRlc3RlxsygsjpbDEiLCJxbjwkSWQiOjE1LCJpYXQiOjE3NDI5NjY2OTYsImV4cCI6MTc0MzA1MzA5Nn0.pK7PJ1htZTpfVjy1Z4z67_K6fDugnezAOAQ_yk_xwGQ",
  "isAdmin": false
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.