curl --request GET \
--url https://dev.intermezzo.ai/organizations/{organization_id}/employees/{employee_id}/documents \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"employeeId": "<string>",
"documentType": "payslip",
"documentName": "<string>",
"gcsBucket": "<string>",
"gcsPath": "<string>",
"mimeType": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z",
"fileSizeBytes": 123,
"documentDate": "2023-12-25",
"templateId": 123,
"createdBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"limit": 123,
"hasNext": false,
"hasPrev": false,
"nextCursor": "<string>",
"prevCursor": "<string>",
"total": 0
}
}Get paginated documents for an employee
curl --request GET \
--url https://dev.intermezzo.ai/organizations/{organization_id}/employees/{employee_id}/documents \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"employeeId": "<string>",
"documentType": "payslip",
"documentName": "<string>",
"gcsBucket": "<string>",
"gcsPath": "<string>",
"mimeType": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z",
"fileSizeBytes": 123,
"documentDate": "2023-12-25",
"templateId": 123,
"createdBy": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"limit": 123,
"hasNext": false,
"hasPrev": false,
"nextCursor": "<string>",
"prevCursor": "<string>",
"total": 0
}
}Get token from Auth0 and paste it here
Filter by document type
payslip, contract, work_permit, id_document, proof_of_address, other Filter by status (default: active)
active, archived, deleted, pending_upload 1 <= x <= 100Was this page helpful?