POST
/api/v1/authtokenAuthorization
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.
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/authtokenBearer Token Authentication
The access token must be appended to the 'Authorization Header' as depicted in the example below:
Authorization: Bearer A90324XXZUZUgpO0dd6npHcM83CJ...Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | postAuthtokenRequest | Required | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful authentication | postAuthtokenResponse200 |
| 401 | Unauthorized | Invalid credentials | None |
| 404 | Not Found | No user found with username: {userName} | None |
| 500 | Internal Server Error | Internal Server Error | None |
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.