Pinter
ENID
Documents
View as Markdown

Authorize Knowledge Hub Document Attachment to Agent

POST/api/knowledge/documents/hub-documents/{document_id}/authorize-attach

Overview

Validates that the caller may use (not merely view) this document, that its share has not expired and that it is processed. The document id is the AgentAsset id; nothing is created.

Authentication & Headers

  • Auth: Bearer Token (Rejected for Auditor)
  • Required Header: API-Version: 1

Parameters

Path

document_idstringrequired
Unique UUID of the knowledge document stored in the vector database.

Responses

200 Attachment authorized and synced

400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

401 Unauthorized - Missing, invalid, or expired JWT Bearer token.

403 Document is view-only or user lacks attach permission

404 Document not found

409 Document is not processed yet

422 Validation Error

detailobject[]
detail[].locstring | integer[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Example

curl -X POST "$PINTER_URL/api/knowledge/documents/hub-documents/doc_it_guidelines_2026/authorize-attach" \
  -H "Authorization: Bearer $ACCESS_TOKEN"