Documents

Get a new upload URL for a draft that has no file yet

For a document created with POST upload-url whose file was never sent: returns a fresh presigned URL for the same document. Korala uses it when an AI assistant starts a document and the person uploads the PDF in the browser. Answers 409 once the file is there.

post/api/v1/documents/{id}/upload-url

Request

  • Base URL: https://api.korala.ai
  • URL: https://api.korala.ai/api/v1/documents/{id}/upload-url
  • Auth: one of:
    • API key in header X-API-Key
    • bearer (a scheme the document does not define)

Path parameters

idstring required

Response

documentIdstring required
uploadUrlstring required
keystring required
maxUploadBytesnumber required

Largest file this organization's plan accepts, in bytes. Uploading a bigger file is rejected when the upload is confirmed, so check it before transferring.

Example response

{
  "maxUploadBytes": 26214400
}

Changes

No recorded changes to this operation across all 1 revision of this API.