Generating an Access Token

Refresh Tokens

Access tokens are generating using a User Authentication Token, this token is also referred to as a Refresh Token. Below is the endpoint for generating a refresh token. The refresh tokens returned in this call are valid for one year.

Authenticate/Generate Refresh Token Endpoint

POST https://user-service.active911.com/v1/authenticate

POST Body

Response

POST Body

Response

{ "email": user's email, "password": user's password }
{ "success": request succeeded, "result": { "id": UserUUID, "token": RefreshToken }, "message": message if error, "code": http response code, "token": always null for this operation }

Sample Request

CURL Request

Sample Response

Access Token

Once you have a refresh token, that token can be used to generate an access token which may be used to perform operations in Active911’s public facing API endpoints. The endpoint to generate an acccess token does not take any POST body, but requires the refresh token to be set in the authorization header, named a911Auth. Access tokens expire after 15 minutes.

Generate Access Token Endpoint

Headers

Response

Headers

Response

Sample Request

CURL Request

Sample Response