curl --request POST \
--url https://platform.kodexa.ai/api/knowledge-sets/{id}/attachments \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form file='@example-file' \
--form 'attachmentId=<string>'{
"id": "<string>",
"attachmentId": "<string>",
"contentHash": "<string>",
"fileName": "<string>",
"size": 123,
"contentType": "<string>",
"uploadedAt": "2023-11-07T05:31:56Z",
"uploadedBy": "<string>"
}Uploads a file attachment to the knowledge set. The file is stored by content hash and can be referenced in markdown via .
curl --request POST \
--url https://platform.kodexa.ai/api/knowledge-sets/{id}/attachments \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form file='@example-file' \
--form 'attachmentId=<string>'{
"id": "<string>",
"attachmentId": "<string>",
"contentHash": "<string>",
"fileName": "<string>",
"size": 123,
"contentType": "<string>",
"uploadedAt": "2023-11-07T05:31:56Z",
"uploadedBy": "<string>"
}API key for authentication. Create one from the Kodexa platform UI under Settings > Access Tokens.
Unique identifier (UUID) of the knowledge set.
Attachment uploaded
A file attachment belonging to a knowledge set. Attachments are stored by content hash and can be referenced in markdown via the attachment:// protocol.
Unique identifier of the attachment record.
Custom slug identifier for the attachment, used in markdown references via attachment://attachmentId.
SHA-256 hash of the attachment file content.
Original file name of the uploaded attachment.
Size of the attachment in bytes.
MIME type of the attachment.
Timestamp when the attachment was uploaded.
Username or identifier of the user who uploaded the attachment.