Skip to content
Documents

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

id documentId

Detach document

Detach a document from an assistant

Try it in the API Explorer

Example request

Terminal
curl -X DELETE "https://core-api.heysadie.ai/assistants/ASSISTANT_ID/documents/DOCUMENT_ID" \
  -H "Authorization: ApiKey YOUR_API_KEY"

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.

documentIdstringrequired

UUID of the document.

Responses

200Detaches the document from the assistant. The document itself is not deleted and stays in the tenant library. Returns an empty body on success.

No response schema documented.