Endpoint

Generate Token

The Generate Token endpoint issues a user token for an existing Neatcar account. This token is required to access user-specific endpoints and must be included in the Authorization header of each authenticated request. Only accounts previously created through the Create Account endpoint are eligible to generate a token. Each token has a life duration starting from its time of creation, with the duration configured individually for each reseller account. The token is tied to the authenticated user and ensures secure access to features limited to that user.

POST

/user/token

Body

User Token Model data

The following list provides a selection of key values included in the model; however, it is non-exhaustive. Developers can expect to find additional fields and data within the model, offering comprehensive information about each user token. This abbreviated list serves as a starting point for understanding the structure of the model and the types of information available for each user token.

token
The token of the user that can be used to access the user endpoints
createdAt
The date and time the token was created
userId
The id of the user that the token is tied to

Response example

Below is an example of the API endpoint response, showcasing the structure and format of the data returned by the specified endpoint. This example serves as a practical illustration, demonstrating how developers can expect the information to be organized and presented when interacting with the API. It provides insight into the content and layout of the response, facilitating effective integration and utilization of the endpoint within your applications.