Skip to main content
POST
/
query
cURL
curl --request POST \
  --url https://api.osohq.com/api/query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fact": {
    "predicate": "<string>",
    "args": [
      {
        "type": "<string>",
        "id": "<string>"
      }
    ]
  }
}'
{
  "results": [
    {
      "predicate": "<string>",
      "args": [
        {
          "type": "<string>",
          "id": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Requires an API key to access. Signup at https://ui.osohq.com/

Body

application/json
fact
object
required

A pattern object for matching authorization-relevant data, ie: facts.

context_facts
object[]

Response

results
object[]
required