Create a one-time document upload URL
POSThttps://platform.docana.com/api/v1/uploads/
The two-step upload for callers that cannot send multipart/form-data (MCP hosts, plain scripts): this operation returns a short-lived, single-use URL, and sending the raw file bytes to it with PUT ingests the file into the collection exactly like a regular upload. The URL inherits the permissions of whoever created it. The response reports two ceilings: maxFileSizeInMBytes, the company plan's document size limit, and maxRequestSizeInMBytes, the most one request may carry through the infrastructure in front of the platform. A file between the two must go through the resumable chunked protocol of uploadCollectionDocuments (see the getDocanaHelp uploads guide): the upload URL itself only enforces the plan limit, so a bigger body is refused by the edge, not by a JSON 413 from the platform.
Request
Responses
- 201
- 400
- 401
- 403
- 500
The upload URL to send the file bytes to
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
No write permission on the collection
Unexpected server error.