Skip to main content
POST
/
v1
/
context
Get Context
curl --request POST \
  --url https://api.ontora.com/v1/context \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prompt": "<string>",
  "vault_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "top_k": 20
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.ontora.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
string<uuid>
required
prompt
string
required
vault_ids
string<uuid>[] | null
top_k
integer
default:20

Response

Successful Response