APIs & Integrations

Jam_shakib
Member

Is it possible to query log events for multiple workflows?

Hi everyone ,

We are currently using the following workflow API call to retrieve the email history on a contact , however as you can see it is limited to one workflow at a time since we need to pass the workflow id as a parameter

PUT /automation/v3/logevents/workflows/:workflowId/filter

I was wondering if there is way that we can query multiple workflows at the same time as we currently have more than workflow firing emails to the contact , I tried passing * as the workflow id with no luck

Any help is appreciated

0 Upvotes
1 Reply 1
Dadams
HubSpot Employee
HubSpot Employee

Is it possible to query log events for multiple workflows?

Hi @Jam.shakib

Workflow logs can only be pulled for a single workflow at a time, either when looking at a specific contact or by some other filter.

If you’re specifically looking for the email history of a contact, you can use the Email Events API to get the history of a record by the email address using the recipient= parameter:

Get email events | Email Events API

GET /email/public/v1/events

0 Upvotes