Skip to main content
POST
Get presigned URL to upload supporting document

Overview

Returns a presigned PUT URL so your server can upload an invoice directly to Yala’s private S3 bucket. Yala does not accept file bytes on this endpoint—only metadata (filename, contentType). After uploading to S3, use the returned documentUrl on:
  • POST /initiate as supportingDocument, or
  • PATCH /:id/documents in the documents array
Read Uploading Supporting Documents for the full 3-step flow: call Yala, upload to S3, then call Yala again with documentUrl.

Upload flow (3 steps)

Request

Request Fields

Response

Response Fields

Upload the file to S3

For manual testing, use the Postman collection Upload File to S3 request.

Error Responses

400 Bad Request

Invalid filename or unsupported contentType.

401 Unauthorized

Invalid or missing API key.

Authorizations

x-api-key
string
header
required

Body

application/json
filename
string
required
Example:

"invoice.pdf"

contentType
string
required
Example:

"application/pdf"

Response

Presigned upload URL created