Authentication¶
Access to the API is secured. You must first authenticate to obtain a token, which is required for any use of the API.
The token provided by the API must be sent in the header of every request, in the x-carmoove-token field. The Content-type field must also be sent in the header.
Obtaining a token¶
Parameters¶
| Field | Type | Description |
|---|---|---|
appId |
String | Application ID, provided by Carmoove. |
appKey |
String | Authentication key, provided by Carmoove. |
Response¶
| Field | Type | Description |
|---|---|---|
token |
String | Authentication token, to be provided in the x-carmoove-token header. |
until |
Timestamp | Date and time the token expires. |
Using the token¶
Every request to another API endpoint must include the token obtained, as well as the content type: