Authenticate API Calls
The ContentTools API has been deprecated and replaced by the Places API.
Resource URL
https://content.trimblemaps.com/api/locations/v1/
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
Name | Description | Data Type |
---|---|---|
apiKey
| API key provided by Trimble Maps |
string |
Response
Name | Description | Data Type |
---|---|---|
token
| Auth token that expires after a set time interval |
string |
expires
| The date and time at which the token is set to expire |
DateTime |
Sample Response
{
"token": "string",
"expires": "2019-01-21T19:18:23.228Z"
}
Error Codes
Message | Description |
---|---|
Invalid apiKey value sent | This error is thrown when API key is invalid. |