Skip to main content
POST
/
evaluate_query_local
cURL
curl --request POST \
  --url https://api.osohq.com/api/evaluate_query_local \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": {
    "predicate": [
      "<any>"
    ],
    "calls": [
      [
        "<any>"
      ]
    ],
    "constraints": {},
    "context_facts": [
      {
        "predicate": "<string>",
        "args": [
          {
            "type": "<string>",
            "id": "<string>"
          }
        ]
      }
    ]
  },
  "data_bindings": "<string>",
  "mode": {
    "mode": "select",
    "query_vars_to_output_column_names": {}
  }
}'
{
  "sql": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
query
object
required

A generic query comprising 1+ predicates conjuncted together.

data_bindings
string
required
mode
object
required
  • Option 1
  • Option 2

Response

sql
string
required