curl --location '/v4/api/envelopes/send-now' \
--header 'Idempotency-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"folderId": "string",
"title": "string",
"deadline": null,
"message": "string",
"documents": [
{
"ref": "string",
"filename": "string",
"contentType": "string",
"fileSize": 9007199254740991
}
],
"signatories": [
{
"type": "INDIVIDUAL",
"deliveryMethod": "EMAIL",
"groupId": "string",
"order": 0,
"name": "string",
"email": "user@example.com",
"phoneNumber": "string",
"ref": "string",
"qualification": "string",
"isForeigner": true,
"authMethod": "EMAIL"
}
],
"approvers": [
{
"type": "INDIVIDUAL",
"deliveryMethod": "EMAIL",
"groupId": "string",
"order": 0,
"name": "string",
"email": "user@example.com",
"phoneNumber": "string"
}
],
"observers": [
{
"type": "INDIVIDUAL",
"deliveryMethod": "EMAIL",
"groupId": "string",
"order": 0,
"name": "string",
"email": "user@example.com",
"phoneNumber": "string",
"mandatoryView": false
}
],
"carbonCopies": [
{
"name": "string",
"email": "user@example.com"
}
],
"fields": [
{
"id": "string",
"documentRef": "string",
"signatoryRef": "string",
"pageNumber": 1,
"position": {
"x": 0,
"y": 0
},
"size": {
"width": 0,
"height": 0
},
"type": "SIGNATURE",
"properties": {}
}
]
}'