Skip to content
Back to catalog
Bird

SMS with Bird

Send customized SMS messages to your users through Bird with Appwrite Messaging

Bird is a communications platform with APIs for sending email and SMS. For SMS, your Bird workspace holds the senders you send from, such as phone numbers and alphanumeric sender IDs, and you send through Bird's SMS API with an API key.

How does the integration work?

You can use the Bird SMS provider in Appwrite Messaging to send customized SMS messages to your users. These SMS messages can be sent immediately or scheduled, to topics, users, or individual targets. You can send SMS messages for purposes like reminders, promotions, announcements, and even custom authentication flows.

The provider needs a Bird API key and a sender. Appwrite reads the region from the key's bk_<region>_ prefix and sends messages with Bird's transactional category. On Appwrite Cloud, one-click setup connects your Bird workspace, lets you pick one of its senders, and creates a key with only the sms:write scope.

The Bird SMS provider is live on Appwrite Cloud and ships in the next self-hosted Appwrite release. To send email through Bird as well, see Email with Bird.

How to implement

To implement the Bird SMS provider in Appwrite Messaging, there are several steps you must complete:

Step 1: Set up a sender in Bird

First, sign up for Bird and open your workspace. Then get the pieces Bird needs before it sends an SMS:

  • A sender. On the Senders page, buy a phone number or claim an alphanumeric sender ID of 3 to 11 characters. The US doesn't accept alphanumeric sender IDs, and some countries require a sender to be registered first. Bird's SMS senders guide lists the requirements.
  • Enabled destinations. Under SMS > Destinations, enable each country you send to. Bird refuses messages to countries that aren't enabled.

Step 2: Add the Bird provider to your Appwrite project

For this step, you must create an account on Appwrite Cloud or self-host Appwrite if you haven't already. In your Appwrite project, head to Messaging > Providers and click Add provider. Bird is listed under both Email and SMS. Choose Bird under SMS.

Configure Bird step for the SMS provider, with the One-click setup card above the API key and sender fields
Configure Bird step for the SMS provider, with the One-click setup card above the API key and sender fields

In the Configure Bird step, use one-click setup or fill in the fields by hand.

On Appwrite Cloud, the Configure Bird step opens with a One-click setup card above the form.

  1. Click Connect with Bird and authorize Appwrite in Bird.
  2. Select a Sender from your workspace. If you don't have one yet, click Manage senders, add one in Bird, and click Check again.
  3. Click Generate API key.
  4. Review the filled-in fields and click Create provider.

Appwrite creates an API key named Appwrite SMS: <project name> in your Bird workspace, with only the sms:write scope, and fills in the sender you picked. If you left the provider name empty, it becomes One-click Bird SMS. If you leave the wizard without creating the provider, Appwrite revokes the key it generated.

Step 3: Test the Bird provider

Before you proceed, you must already have at least one topic or target set up.

Go to Messaging > Messages, click Create message, and choose SMS. Write a test message, select one of your test targets, set the schedule to Now, and click Send. Check that the message arrives on your phone. If it doesn't, check the logs in the Appwrite Console and in your Bird workspace, and confirm the destination country is enabled in Bird.

To send SMS messages from your backend instead, follow the Send SMS messages guide with an Appwrite Server SDK.

Read more about Bird and Appwrite Messaging

If you would like to learn more about Bird and Appwrite Messaging, we have some resources that you should visit:

Technology Partner Program

Building on Appwrite?

Teams and developers who ship integrations, tools, or services on Appwrite can join our partner program for verified catalog placement, co-marketing, training, and engineering support.