Authenticate API Calls

Resource URL

POST /accounts/authenticate

Use the API key provided in the authentication request to the server. If the authentication is successful, the server creates and sends a JWT token in the response. To access the API resources, all subsequent requests must pass the JWT token in the request header.

Request Body

NameDescriptionData Type
apiKeyAPI key provided by Trimble MAPSstring


NameDescriptionData Type
tokenAuth token that expires after a set time intervalstring
expiresThe date and time at which the token is set to expireDateTime

Sample Response

  "token": "string",
  "expires": "2019-01-21T19:18:23.228Z"

Error Codes

Invalid apiKey value sentThis error is thrown when API key is invalid.