API Reference
Test route to test format of Onairos user API
Authorizations
Body
accessTokenstringRequired
JWT token for authentication
Responses
200
Successful test inference
application/json
400
Bad request
application/json
500
Server error
application/json
post
POST /inferenceTest HTTP/1.1
Host: api2.onairos.uk
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 87
{
"inputData": [
{
"text": "text",
"category": "text",
"img_url": "text"
}
],
"accessToken": "text"
}
{
"InferenceResult": {
"output": {}
}
}
Retrieve access token and approved requests for user who just agreed to connect data
Body
Responses
200
Successful API URL generation
application/json
403
Forbidden - domain not registered
application/json
500
Server error
application/json
post
POST /getAPIurl HTTP/1.1
Host: api2.onairos.uk
Content-Type: application/json
Accept: */*
Content-Length: 171
{
"Info": {
"web3Type": "text",
"confirmations": [
{
"data": "text",
"date": "text"
}
],
"Domain": "text",
"EncryptedUserPin": "text",
"OthentSub": "text",
"proofMode": true,
"account": "text"
}
}
{
"apiUrl": "text",
"token": "text"
}
Mind reading API to generate preferences/insights and memories for approved user
Authorizations
Body
accessTokenstringRequired
JWT token for authentication
Responses
200
Successful inference
application/json
400
Bad request - invalid input data
application/json
401
Unauthorized - invalid token
application/json
413
Payload too large - input exceeds size limit
application/json
500
Server error
application/json
post
POST /inferenceNoProof HTTP/1.1
Host: api2.onairos.uk
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 87
{
"inputData": [
{
"text": "text",
"category": "text",
"img_url": "text"
}
],
"accessToken": "text"
}
{
"InferenceResult": {
"output": {}
}
}
Generate only user personality traits
Authorizations
Body
accessTokenstringRequired
JWT token for authentication
Responses
200
Successful traits inference
application/json
400
Bad request
application/json
500
Server error
application/json
post
POST /traits HTTP/1.1
Host: api2.onairos.uk
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 87
{
"inputData": [
{
"text": "text",
"category": "text",
"img_url": "text"
}
],
"accessToken": "text"
}
{
"InferenceResult": {
"output": {}
}
}
Last updated