Skip to main content
POST
This endpoint is for the VIP plan only. Other plans get a 403. See Plan access.
Get a link to upload one file. Then:
  1. PUT the file bytes to uploadUrl, with the Content-Type header set to contentType.
  2. Add the file with Add knowledge, using the fileUrl and fileName from this answer.
Each link puts the file at a new address, so it can’t replace another file. The link works for 2 hours. A file can be up to 5 MB. That is the most we can read. A bigger file uploads, but Add knowledge refuses it and removes it. The link fixes the address, not the file type. Send the contentType from this answer. When you add the file, fileName must have the same extension as the upload. Anyone with the fileUrl can open the file.
workspaceId is required for account-scoped API keys and taken from the key for workspace-scoped keys. See Workspace ID and Request Scope.

Body Parameters

string
The workspace. Required for an account-scoped key.
string
required
The file name, with its extension.
string
required
The file type from the table above. It must match the extension.

Errors