Upload File
Upload a file (PDF, Word, Excel, CSV, PowerPoint) to Credal. Unlike uploadDocumentContents which requires pre-parsed text, this endpoint accepts actual file uploads and automatically parses them using Credal’s parsing service.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
The file to upload. Supported formats: PDF (.pdf), Word (.docx), Excel (.xlsx, .xls), PowerPoint (.pptx, .ppt), CSV (.csv), and text files.
[Legacy] The user on behalf of whom the document should be uploaded. In most cases, this can simply be the email of the developer making the API call. This field will be removed in the future in favor of purely specifying permissions via allowedUsersEmailAddresses.
Optional JSON string representing any custom metadata for this document (e.g., ’{“key1”:“value1”,“key2”:“value2”}’).
If specified, the document will also be added to the provided document collection. This operation is eventually consistent, meaning the document does not immediately start appearing in searches of that collection due to an asynchronous embedding process. To achieve strong consistency use the awaitVectorStoreSync parameter.
If set to “true”, document contents will be re-uploaded and re-embedded even if the document already exists in Credal.
ISO 8601 date string indicating when the document was last updated in the source system (e.g., “2025-11-03T21:15:00Z”).