Authentication

All apis uses token based authentication for authenticate all incoming requests. You should pass your access token in the Authorization header of each request in following format:

curl --location --request GET '<BASE_URL>/ping' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <TOKEN_HERE>'
var axios = require("axios");
var config = {
method: "get",
url: "<BASE_URL>/ping",
headers: {
Accept: "application/json",
Authorization: "Bearer <TOKEN_HERE>",
},
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var request = require("request");
var options = {
method: "GET",
url: "<BASE_URL>/ping",
headers: {
Accept: "application/json",
Authorization: "Bearer <TOKEN_HERE>",
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '<BASE_URL>/ping',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_TIMEOUT => 0,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer <TOKEN_HERE>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Generate Token

If you are an Admin of your organization, visit your organization's settings page. From there, open the Integrations tab and create a new integration. You will prompted with an access token. You can use this token to access our REST apis.

Share