Create a regulatory document record after uploading the file. Use the upload-url endpoint first to get an upload URL.
curl --request POST \
--url https://api.zavu.dev/v1/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Passport Scan",
"documentType": "passport",
"storageId": "kg2abc123...",
"mimeType": "image/jpeg",
"fileSize": 102400
}
'{
"document": {
"id": "<string>",
"name": "<string>",
"documentType": "passport",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"mimeType": "<string>",
"fileSize": 123,
"rejectionReason": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
200passport, national_id, drivers_license, utility_bill, tax_id, business_registration, proof_of_address, other Storage ID from the upload-url endpoint.
Document created and uploaded to verification provider.
A regulatory document for phone number requirements.
Show child attributes
curl --request POST \
--url https://api.zavu.dev/v1/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Passport Scan",
"documentType": "passport",
"storageId": "kg2abc123...",
"mimeType": "image/jpeg",
"fileSize": 102400
}
'{
"document": {
"id": "<string>",
"name": "<string>",
"documentType": "passport",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z",
"mimeType": "<string>",
"fileSize": 123,
"rejectionReason": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
}