API Reference

Test user API

post

Test route to test format of Onairos user API

Authorizations
Body
accessTokenstringRequired

JWT token for authentication

Responses
200
Successful test inference
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": {}
  }
}

Get API access token

post

Retrieve access token and approved requests for user who just agreed to connect data

Body
Responses
200
Successful API URL generation
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"
}

User mind reading API

post

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
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": {}
  }
}

User traits API

post

Generate only user personality traits

Authorizations
Body
accessTokenstringRequired

JWT token for authentication

Responses
200
Successful traits inference
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