A Mindful Insight Into Your Future
On this page
The Bhavishyayaan APIs are structured around REST principles, making them easy to integrate and use with standard HTTP methods. These APIs are backed by a robust software layer that connects and optimizes global communication networks.With Bhavishyayaan, developers can build powerful applications that analyze user psychology and mental state by leveraging our intelligent data interpretation systems. Whether you're developing tools for mental health, behavioral analysis, or personalized user experiences, our APIs provide the insights and infrastructure needed to support your innovation.
Note: All API requests must include a valid API key in the request header. You will receive your unique API key from our team.
Header Format:X-API-KEY: <YOUR_API_KEY>
Note: Do not share your API key publicly. Treat it like a password!
example:
let config = {
method: 'get',
maxBodyLength: Infinity,
url: âurl_domainâ,
headers: {
'X-API-KEY': 'â˘â˘â˘â˘â˘â˘'
}
};
axios.request(config)
.then((response) => {
// your logic here
})
.catch((error) => {
console.log(error);
});
example:
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'url_domain',
headers: {
'X-API-KEY': 'â˘â˘â˘â˘â˘â˘'
}
};
axios.request(config)
.then((response) => {
// your logic here
}).catch((error) => {
console.log(error);
});
example:
let config = {
method: 'get',
maxBodyLength: Infinity,
url: âurl_domainâ,
headers: {
'X-API-KEY': 'â˘â˘â˘â˘â˘â˘'
}
};
axios.request(config)
.then((response) => {
// your logic here
})
.catch((error) => {
console.log(error);
});
example:
let data = JSON.stringify({
"uid": "a unique userId", // use a unique user id for a specific user and use that user id for all the submission
done by a user. This is important to generate the final report
"user_name": "name of user who is submitting the test for user result pdf(Optional)",
"user_email": "email of user who is submitting the test for user result pdf(Optional)",
"user_class": "class of student(if any)(Optional)",
"category":âtest_category_idâ,
// Note: if test is of type âMCQâ then use:
"response": [
{
"question":question_id,
"selected_options": [
selected_option_id
]
},
{
"question": question_id,
"selected_options": [
selected_option_id
]
}
]
// Note: if test is of type âMultiselectâ then use:
"response": [
{
"question": question_id,
"selected_options": [
selected_option_id,
selected_option_id,
selected_option_id
]
}
]
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'url_domain',
headers: {
'Content-Type': 'application/json',
'X-API-KEY': 'â˘â˘â˘â˘â˘â˘'
},
data : data
};
axios.request(config)
.then((response) => {
// your logic here
})
.catch((error) => {
console.log(error);
});