logo
enes

Response

Last update: 6 hours ago by Irais Aguirre

Both the Messaging and Admin token endpoints return the same response: the authentication token on success, or a code and detail when an error occurs.

NameDescriptionType
tokenAuthentication token. Send it as Authorization: Bearer <token> in your requests.String
codeResponse code if an error occurs. For details, see Error codes.Number
detailDescription of the response code received.String

HTTP 200 on success, HTTP 401 on authentication errors.

Token errors use codes 3000–3015. See Error codes.

Successful response (HTTP 200)

{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxMDEiLCJhdWQiOiJjb25jZXB0b21vdmlsLXdoYXRzYXBwLWFwaSIsIm5iZiI6MTYxNzAzMDUxNCwicmVxdWVzdF9oYXNoIjoiMjUzNmQ5MTdiM2MwMDIxM2U3NjVhMGI4NjczNTRjMzQ2YjNiNDg0M2Q5M2NmZDJkNWFmOTNjY2MwYTcyNmRlNTZiYTQ2YmIzZDRjZTJhYTZhOTkwNWNlYmU4MDBiNzg4MjYwOGI4OWM1YTU2OTU2ZDk2N2NjMDk5MDMyNmQxNzIiLCJpc3MiOiJjb25jZXB0b21vdmlsLmNvbSIsImV4cCI6MTYxNzExNjkxNCwiaWF0IjoxNjE3MDMwNTE0LCJqdGkiOiI5MjQ5OTZkMi04ZDIyLTQ5YjUtOGZiYi0zM2IxOWMxODc1ZjIifQ.pHNyDoksB9ZHUJQb9vyhhNO13D5QTU8LIDybvU0278uWDD8H88WLWkFKAUqgEUflAuBMgfCCzyF19o9ZZkh7mjqV3XMOnQJU8RnoHbIHG6WC4-ElfFtWCYOhhAfS_Yn5SfOAeD_LR_DW2jOEMc7bQoaTNBPHj6eyjuRto3A5IU4gx7yxsWWv2g7bSuzSmIFVb0SIkmL5v0pa07We3aEFFJzLcA0bLiMZn9MJfLlbkPf1YIq2THBuzs7ac5PXtiVVyDpLmHZ56-0c_zADEkZvGWEusCoyfMX9RDp_NbD1WmFivoGCEcqgRAMNPFUSfOA5UamJ07BaKoK2p4FpByKw"
}

Error response (HTTP 401)

{
"code": 3003,
"detail": "Api-Key invalid"
}
Previous
Example
Next — WhatsApp
Messaging