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"
}Generate a presigned URL for client to upload a document directly to GCS
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"
}Get token from Auth0 and paste it here
Request schema for generating presigned upload URL.
payslip, contract, work_permit, id_document, proof_of_address, other User-friendly document name
"Payslip May 2025"
"Work Permit 2025"
The period/date this document represents (e.g., payroll month)
Expected file size in bytes (for validation)
x > 0Was this page helpful?