POST: https://api.xebo.ai/api/v1/oauth/token
Headers
"Content-Type": "application/json"
Request Body
{
"email": "john@xebo.ai",
"password": "Survey@123"
}
Field | Type | Mandatory | Description |
---|---|---|---|
string | Yes | Email of a valid XEBO.ai account | |
password | string | Yes | Password for the corresponding account. |
Request Sample
cURL
curl --location 'https://api.xebo.ai/api/v1/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "john@xebo.ai",
"password": "Survey@123"
} '
Javascript
var data = JSON.stringify({
email: "john@xebo.ai",
password: "Survey@123",
});
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("POST", "https://api.xebo.ai/api/v1/oauth/token");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.send(data);
Ask a human