Skip to content
Documents

POSThttps://core-api.heysadie.ai/assistants/{id}/documents

id documentId

Attach document

Try it in the API Explorer

Example request

Terminal
curl -X POST "https://core-api.heysadie.ai/assistants/ASSISTANT_ID/documents" \
  -H "Authorization: ApiKey YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "documentId": "0195f1e2-0000-7000-8000-000000000000"
  }'

Authentication

Authenticate with an API key in the Authorization header using the ApiKey scheme — see Authentication for how keys work and where to get them.

Authorizationstringrequired

API key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.

X-Tenant-Idstring (uuid)optional

Required when authenticating with an organization key — selects the tenant the request acts on. Omit with tenant keys.

Request

Path parameters

idstringrequired

The resource's UUID.

Body application/json · required

documentIdstring (uuid)required

UUID of the document to attach

Responses

200Attaches an existing document to the assistant so it can answer from it. Returns the created attachment record.

No response schema documented.