Documents
Authorize Knowledge Hub Document Attachment to Agent
POST
/api/knowledge/documents/hub-documents/{document_id}/authorize-attachOverview
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
Parameter
Path
document_idstringwajibUnique UUID of the knowledge document stored in the vector database.
Respons
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[]wajibdetail[].msgstringwajibdetail[].typestringwajibdetail[].inputobjectdetail[].ctxobject{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Contoh
curl -X POST "$PINTER_URL/api/knowledge/documents/hub-documents/doc_it_guidelines_2026/authorize-attach" \
-H "Authorization: Bearer $ACCESS_TOKEN"