Skip to content
Codelia SMSDocs
Guides: Zapier

Zapier

Send messages and campaigns, estimate their cost, and keep contacts and lists up to date from a Zap, or start a Zap when a message is delivered or a campaign finishes. Zapier, Make and n8n covers what the three tools share.

Coming to Zapier

The Codelia SMS app is being published to Zapier. Until it is, you won't find it in Zapier's app search. To use it before then, write to hello@codelia.studio and ask for early access.

Connect

  1. In a Zap, add a Codelia SMS step and choose to connect a new account.
  2. Sign in to Codelia SMS, and choose the organization the Zap should use. It can act only in that organization.
  3. Choose what Zapier can do there. Reading and the two webhook permissions start selected. See opt-outs doesn't, so select it if you'll use the opt-out triggers; sending and changing contacts or lists don't either, so select those for the actions you'll use. You can give it only permissions you hold yourself.

Zapier names the connection after the organization and the person who connected it, like "Acme Ltd (Maria)". It shows under Connected apps in the portal.

To connect Zapier you need the connected-apps:connect permission. Owners, admins and developers have it.

If Zapier doesn't call Codelia SMS for 30 days, its sign-in expires: actions fail until you connect it again. Triggers keep receiving events until you turn the Zap off or disconnect it under Connected apps, though Include message text fails like the actions, because it reads the message from Codelia SMS.

Which permissions to give it

StepSelect
Send SMS, Send or schedule campaignSend messages and campaigns, and change or cancel them; and See messages and their status when you set a Maximum cost
Estimate costSee messages and their status
Add or update contactSee contacts, and Manage contacts
Add contact to list, Remove contact from listManage lists
The Sender name dropdownSee sender names
The Lists and List dropdownsSee lists
Message and campaign triggersManage webhooks; and See messages and their status for its sample data and Include message text
Contact opted out, Contact opted back inManage webhooks, and See opt-outs

If you unselected Manage webhooks when you connected, the triggers can't start, and without See messages and their status a trigger can't load recent items when you test it, and Include message text fails. See opt-outs doesn't start selected: without it, Contact opted out and Contact opted back in can't start, and Contact opted out can't load recent opt-outs when you test it. Connect again and keep them selected, or select See opt-outs. Set up each trigger again: in each Zap, use the new connection, then turn the Zap off and on again, which creates its webhook through the new connection. Then disconnect the old connection under Connected apps. Disconnecting it deletes the webhooks it created.

Actions

  • Send SMS: Phone numbers, Message, Sender name, Message type, Maximum cost and Unique ID. It answers with one result per number.
  • Send or schedule campaign: Message, Lists, Phone numbers, Sender name, Message type, Send at, Maximum cost, Metadata and Unique ID. Send to lists, phone numbers or both, up to 25 lists. Leave Send at empty to send now, or pick a time 5 minutes to 90 days ahead. Once Send at is filled in, Maximum cost goes away: a scheduled campaign is priced when it sends, so the cost it returns is an estimate.
  • Estimate cost: Phone numbers, Lists, Message, Sender name and Message type. Phone numbers alone are priced the way Send SMS prices them; with a list, the way a campaign is priced.
  • Add or update contact: Phone number, First name, Last name, Email and Preferred language, a two-letter code like en or el. A field you leave empty keeps what the contact already has.
  • Add contact to list and Remove contact from list: List and Contact ID.

Leave Sender name empty to send as your default sender name. Maximum cost is an amount in your organization's currency, like 5.00: we price the message first, and the step stops without sending if the price is higher. The price check counts people who opted out, like Estimate cost, so it can stop a send that would have cost less. What it costs has the details.

Unique ID

Fill Unique ID with something unique to the event that started the Zap, like an order number. Repeating it in the same Zap within 24 hours sends nothing new: the step gets back what the first one did. Reusing it with different details, like another message, is refused. Two Zaps can use the same Unique ID without affecting each other. If the first run was refused or failed, repeating it gets the same answer for 24 hours. Use a new Unique ID to try again.

Without a Unique ID, every run sends, including a run Zapier repeats.

If Codelia SMS is too busy to answer, Zapier runs the step again after a short wait. That only happens before the step has changed anything, so a send repeated this way can't send twice, with or without a Unique ID.

Triggers

Each trigger starts on one event: Message delivered, Message not delivered, Campaign completed, Campaign finished with failures, Campaign failed, Contact opted out or Contact opted back in. Zapier, Make and n8n says when each one starts.

  • Turning the Zap on creates a webhook for it with only that event, named "Created by Zapier" and the Zap's name on the Webhooks screen. Turning it off deletes the webhook.
  • Each event's signature is checked before the Zap runs. One that doesn't check out starts nothing, and so does a test event sent from the Webhooks screen.
  • When you test the trigger, Zapier loads up to three recent messages, campaigns or opt-outs that match it, or an example if there are none. A number taken off the opt-out list leaves nothing to load, so Contact opted back in always shows the example, and a loaded opt-out has no contact ID.
  • A message event doesn't include the text of the message. Turn on Include message text to add it.