Skip to main content

Get authorization token

This endpoint retrieves an Authorization Bearer token and api_client basic information. The authorization token is returned in headers as "Authorization"

HTTP Request

POST /auth/login

Header Parameters

HeaderDescription
Content-Typeapplication/json

Body Parameters

ParameterDescription
api_client.api_key 
required
The api_key assignated to your user.
api_client.password 
required
The password assignated for authentication.
tip

Remember — On success, you get the authorization token in the Headers response as Authorization.

Example JSON Request:

 {
"api_client": {
"api_key": "api_key",
"password": "password"
}
}

Example JSON Response:

{
"status": {
"code": 200,
"message": "Logged in successfully."
},
"data": {
"client": {
"id": "3c971526-6abd-42d8-8532-647c986ab493",
"name": "Nueve09",
"alias": "NUEVE09",
"code": "NUE",
"entity_code": "123",
"email": "[email protected]",
"available": 22814.55,
"balance": 1154.0,
"timezone": "America/Mexico_City",
"status": "ACTIVE",
"created_at": "2020-11-04T19:36:04.399-06:00",
"updated_at": "2020-12-14T13:55:50.246-06:00"
}
}
}
}