Onairos
  • 🔮Welcome to Onairos
  • Installation
  • API Reference
  • LLM Memory SDK
  • 🖱️Developer Guides
    • Integrate Onairos Web
      • ⬇️Installation
      • 🔅1 Line of Code
      • Manual API Call
        • 📥Receiving API
        • 🖥️Using the Inference API
      • 📲Inference API Response
      • 🏟️Examples
    • Integrate Onairos Mobile
      • ⬇️Installation
      • 🔅1 Line of Code
      • Manual API Call
        • 📥Receiving API
        • 🖥️Using the Inference API
      • 📲Inference API Response
      • 🏟️Examples
    • Example Usage of Data
    • 🚤Coming Soon
    • Developer FAQ
    • Developer Debugging
  • Overview
    • 🦄Digital Personality
    • 🔐Security and Privacy
Powered by GitBook
On this page

API Reference

PreviousInstallationNextLLM Memory SDK

Last updated 14 days ago

  • POSTTest user API
  • POSTGet API access token
  • POSTUser mind reading API
  • POSTUser traits API

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

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

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

User traits API

post

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