Send email
Send email to specified recipients. The number of emails that can be sent is limited (10 for trials accounts).
At least one email in to, cc, bcc must be filled. The total number of recipients (to, cc and bcc together) cannot exceed 40.
If the related annotation has null email thread, it will be linked to the email thread related to the email created.
Template values
The object template_values is used to create an outgoing email. Key subject is used to fill an email subject and message is used to fill a body of the email (it may contain a subset of HTML). Values may contain other placeholders that are either built-in (see below) or specified in the template_values. For placeholders referring to annotations, the annotations from related_annotations attribute are used for filling in correct values.
List of built-in placeholders
| Placeholder | Description | Can be used in automation |
|---|---|---|
| organization_name | Name of the organization. | True |
| app_url | App root url | True |
| user_name | Username of the user sending the email. | False |
| current_user_fullname | Full name of user sending the email. | False |
| current_user_email | Email address of the user sending the email. | False |
| parent_email_subject | Subject of the email we are replying to. | True |
| sender_email | Email address of the author of the incoming email. | True |
| annotation.document.original_file_name | Filenames of the documents belonging to the related annotation(s) | True |
| annotation.content.value.{schema_id} | Content value of datapoints from email related annotation(s) | True |
| annotation.id | IDs of the related annotation(s) | True |
| annotation.url | Urls of the related annotation(s) | True |
| annotation.assignee_email | Emails of the assigned users to the related annotation(s) | True |
Request body
Example request
{
"to": [
{
"email": "john.doe@example.com",
"name": "John Doe"
}
],
"cc": [
{
"email": "john.doe@example.com",
"name": "John Doe"
}
],
"bcc": [
{
"email": "john.doe@example.com",
"name": "John Doe"
}
],
"template_values": {
"subject": "Document processed",
"message": "<p>The document was processed.<br>{{user_name}}<br>Additional notes: {{note}}</p>",
"note": "No issues found"
},
"queue": "https://example.rossum.app/api/v1/queues/8198",
"related_annotations": [
"https://example.rossum.app/api/v1/annotations/123"
],
"related_documents": [
"https://example.rossum.app/api/v1/documents/123"
],
"attachments": {
"documents": [
"https://example.rossum.app/api/v1/documents/123"
]
},
"parent_email": "https://example.rossum.app/api/v1/emails/1234",
"labels": [
"forwarded"
],
"email_template": "https://example.rossum.app/api/v1/email_templates/789"
}Response
OK
Example response
{
"url": "https://example.rossum.app/api/v1/emails/1234"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.