Skip to main content
POST
This endpoint requires a valid authorisation for the user. If no active authorisation exists, the request will be rejected. You can optionally pass the x-teal-authorisation-id header to specify which authorisation to use; otherwise the system will resolve a valid authorisation automatically. See Authorisations for more details.
Request short-lived URLs to upload payslip PDFs directly to Teal managed storage. Use the returned presigned_url values with HTTP PUT, then call POST /payroll/entries/payslips to submit the uploaded documents for processing.

Authorizations

Authorization
string
header
required

Bearer token for authentication. The token should be the one returned by the /user-tokens endpoint.

Headers

x-teal-authorisation-id
string<uuid>

Optional authorisation ID to associate with this request. If not provided, the system will attempt to resolve a valid authorisation for the user automatically.

Example:

"7f3b8c2a-1d4e-4f6a-8b8c-9a0b1c2d3e4f"

Body

application/json
files
object[]
required

Payslip files that require presigned upload URLs

Minimum array length: 1

Response

Presigned URLs generated successfully

presigned_urls
object[]
required

Generated URLs and metadata for uploading the requested files.