Retrieve Workflow emails with the Unison Public API

Retrieve Workflow emails when you need delivery, engagement, recipient, or template data outside Unison. You can retrieve sent email records across Workflows and list the email templates for a specific Workflow.

Use the Workflow email endpoints

TaskEndpoint
List Workflow emailsGET /v1/workflow-emails
Retrieve one Workflow emailGET /v1/workflow-emails/{email_id}
List a Workflow's email templatesGET /v1/workflows/{workflow_id}/email-templates

List Workflow emails

curl "https://public-api.us.unison.totango.com/v1/workflow-emails?page[limit]=20" \
  --header "Authorization: Bearer <public_api_credential>"

The default page size is 20 emails and the maximum is 50.

Retrieve one Workflow email

curl "https://public-api.us.unison.totango.com/v1/workflow-emails/<email_id>" \
  --header "Authorization: Bearer <public_api_credential>"

Understand Workflow email fields

FieldDescription
idThe email ID.
workflow_idThe related Workflow ID.
template_idThe related email template ID.
subjectThe email subject.
automatedWhether the email was sent automatically.
statusThe email status.
sent_at, approved_at, rejected_at, updated_atLifecycle timestamps for the email.
senderThe sender ID, display name, and address.
recipientsRecipient addresses and engagement timestamps.
performanceDelivery, open, click, reply, and unsubscribe ratios.

Interpret recipients

Each recipient has a type of to, cc, bcc, or other. Engagement fields can include first and last open or click times, bounce time, reply time, and unsubscribe time.

List email templates for a Workflow

curl "https://public-api.us.unison.totango.com/v1/workflows/<workflow_id>/email-templates?page[limit]=25" \
  --header "Authorization: Bearer <public_api_credential>"

Each template includes its ID, Workflow ID, subject, automated setting, and created and updated times. The default page size is 25 templates and the maximum is 100.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request