capabilities.work

List Add Contacts and Count

A 3-step recipe with SendGrid. We can help you get access.

Recipe · 3 steps

List Add Contacts and Count

with SendGrid · Customer Data Management

Create a list, upsert contacts, and branch on its contact count.

  1. Create a new marketing contacts list.
  2. Upsert the supplied contacts into the new list. The request is queued and returns a 202 with a job_id.
  3. Read the list's contact count and branch on whether the list already has contacts or is still empty while the upsert job runs.
What you'll need to have ready
  • apiKey: SendGrid API key sent as a bearer token.
  • listName: The name for the new contacts list.
  • contacts: Array of contact objects to upsert into the list.
For your developer

Arazzo workflow sendgrid:list-add-contacts-and-count, 3 operations: CreateMarketingList → UpdateContact → ListContactCount. Specs on APIs.io.