Skip to main content
All CollectionsTango API & WebhooksStart Here
API Authentication (API Token)
API Authentication (API Token)
Sav Pushparajah avatar
Written by Sav Pushparajah
Updated over a week ago

The Tango API uses the Bearer Token authentication method.

To authenticate an API request, you must include the 'Authorization' header and your API token as the value.

You can view and manage your API tokens in your settings.


Testing Authentication

To test your API token and connection to the Tango API, use the /ping endpoint.

This is a simple endpoint used to ping the server, check the status and authentication.


Endpoint

https://app.tangoagreements.com/api/1.1/wf/ping

Example request

curl --location --request POST 'https://app.tangoagreements.com/api/1.1/wf/ping' \
--header 'Authorization: Bearer {{api_token}}'

Response

Authorized

{
"status": "success",
"message": "Pong! Thanks John Doe"
}

Unauthorized

{
"error": {
"code": "unauthorized",
"message": "The authentication details provided are invalid or access to the resource was rejected."
}
}
Did this answer your question?