Skip to main content
POST
/
agent-sessions
/
{session_id}
/
documents
Link documents
import requests

url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/documents"

payload = { "document_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
    "X-API-KEY": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Headers

X-End-User-ID
string | null

Path Parameters

session_id
string<uuid>
required

Body

application/json
document_ids
string<uuid>[]
required

List of document IDs to link to the session.

Response

Successful Response