Send Invitations
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{id}/send_invitations \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"channels": [],
"message_config": {}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({channels: [], message_config: {}})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{id}/send_invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{id}/send_invitations"
payload = {
"channels": [],
"message_config": {}
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"submission": {
"id": 123,
"status": "draft",
"template_name": "<string>",
"document_filename": "<string>",
"submitters_order": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"labels": [
{}
],
"contract_template": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"status": "<string>",
"fields": [
{}
],
"schema": {},
"submitters": [
{}
],
"preferences": {},
"labels": [
"<string>"
],
"documents": [
{
"id": 123,
"uuid": "<string>",
"filename": "<string>",
"content_type": "<string>",
"signed_uuid": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"contract_submitters": [
{
"id": 123,
"name": "<string>",
"email": "<string>",
"status": "pending",
"signing_order": 123,
"role": "<string>",
"slug": "<string>",
"contact": {
"id": 123,
"name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
}
}
]
}
}Contract Submissions
Send Invitations
Send invitations (email/whatsapp) to all submitters of a contract submission
POST
/
api
/
v1
/
accounts
/
{account_id}
/
contract_submissions
/
{id}
/
send_invitations
Send Invitations
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{id}/send_invitations \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"channels": [],
"message_config": {}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({channels: [], message_config: {}})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{id}/send_invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{id}/send_invitations"
payload = {
"channels": [],
"message_config": {}
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"submission": {
"id": 123,
"status": "draft",
"template_name": "<string>",
"document_filename": "<string>",
"submitters_order": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"labels": [
{}
],
"contract_template": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"status": "<string>",
"fields": [
{}
],
"schema": {},
"submitters": [
{}
],
"preferences": {},
"labels": [
"<string>"
],
"documents": [
{
"id": 123,
"uuid": "<string>",
"filename": "<string>",
"content_type": "<string>",
"signed_uuid": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"contract_submitters": [
{
"id": 123,
"name": "<string>",
"email": "<string>",
"status": "pending",
"signing_order": 123,
"role": "<string>",
"slug": "<string>",
"contact": {
"id": 123,
"name": "<string>",
"email": "<string>",
"avatar_url": "<string>"
}
}
]
}
}