Skip to main content
POST
/
organizations
/
{organization_id}
/
employees
/
{employee_id}
/
documents
/
upload
Generate presigned upload URL
curl --request POST \
  --url https://dev.intermezzo.ai/organizations/{organization_id}/employees/{employee_id}/documents/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentType": "payslip",
  "documentName": "<string>"
}
'
{
  "uploadUrl": "<string>",
  "documentId": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Path Parameters

organization_id
required
employee_id
required

Body

application/json

Request schema for generating presigned upload URL.

documentType
enum<string>
required
Available options:
payslip,
contract,
work_permit,
id_document,
proof_of_address,
other
documentName
string
required

User-friendly document name

Examples:

"Payslip May 2025"

"Work Permit 2025"

documentDate
string<date> | null

The period/date this document represents (e.g., payroll month)

fileSizeBytes
integer | null

Expected file size in bytes (for validation)

Required range: x > 0

Response

Successful Response

Response schema for presigned upload URL.

uploadUrl
string
required

Presigned URL for uploading the document

documentId
string
required

Document ID

expiresAt
string<date-time>
required

When the presigned URL expires