Get Oauth Token from Credentials

Prev Next
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

email

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

Can't Find What You're Looking For?

Email Support       Chat With Us      Ticket Generate