English
cURL
curl --request GET \ --url https://api.callin.io/api/public/v1/knowledge-base/documents/{documentId} \ --header 'x-api-key: <api-key>'
{ "success": true, "data": { "documentId": "<string>", "type": "url", "name": "<string>", "details": { "url": "<string>" }, "metadata": { "createdAt": "2023-11-07T05:31:56Z", "createdBy": { "userId": "<string>", "userEmail": "<string>" } } } }
Returns the content and metadata for a single knowledge base document.
Send your Callin API key in the x-api-key header.
x-api-key
The ID of the document
Document details
One knowledge document; shape of data depends on type (url vs file).
data
type
url
file
true
Document details; shape depends on type (url vs file).
Show child attributes
Was this page helpful?