Last updated 14 days ago
Test route to test format of Onairos user API
JWT token for authentication
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" }
Successful test inference
{ "InferenceResult": { "output": {} } }
Retrieve access token and approved requests for user who just agreed to connect data
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" } }
Successful API URL generation
{ "apiUrl": "text", "token": "text" }
Mind reading API to generate preferences/insights and memories for approved user
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" }
Successful inference
Generate only user personality traits
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" }
Successful traits inference