Channel connectors

The following endpoints are part of the Connectors API. Channels are created by first installing a new connector. Connectors are responsible for linking the MessageBird Engagements platform to third party platforms. This documentation will provide details on how to interact with these endpoints.

Create a connector

A-Sync : this will start a background process that may require some time to complete. A Get call may be required to to retrieve the final result .

Supported channel connectors

Currently we support creating the following channel connectors

Properties

PropertyTypeDescription

connectorTemplateRef

string

Set as sms-messagebird:1

name

string

The name of your connector e.g. My SMS channel

arguments.phoneNumberId

string

The ID of the phone number to be installed. See

arguments.useCaseId

string

The ID of the use case. Required for 10DLC numbers. See

arguments.channelMessageType

string

The type of traffic that will be sent through this channel. It is a required field.

channelConversationalStatusEnabled

boolean

If true incoming messages will create new conversations in Inbox

Example request

{
    "connectorTemplateRef": "sms-messagebird:1",
    "name": "My SMS channel",
    "arguments": {
        "phoneNumberId": "2cffb55c-120e-91a8-8f10-ed9d1b412d29",
        "useCaseId": "be123b02-dacf-31f9-b3e5-50b18260bc23",
        "channelMessageType": "promotional"
    },
    "channelConversationalStatusEnabled": true
}

List connectors

Filter by channel connector template

To filter connectors by a certain channel type use the templateRef as below:

Channel ConnectortemplateRef

SMS

sms-messagebird:1

WhatsApp

whatsapp:1

Instagram

instagram:1

Facebook messenger

facebook:1

Telegram

telegram:1

Line

line:1

Email

email-messagebird:1

Get a connector

Check the readiness of a connector and its channel to send SMS

Delete a connector

Deleting a connector will also delete the associated channel. Messaging for the related channel connector will be interrupted. Be sure you want to delete the connector before proceeding

You can create a workspace subscription to listen to Channel Status changes and/or to be informed about new channel creations via webhooks

Channel creation Subscription

The example below will create a workspace wide subscription tracking all channel creations. this will inform you of any new channel being created and will return you the number / sender identifier the connectorId and the channelId associated with it

curl --location 'https://api.bird.com/organizations/<your-organization-id>/workspaces/<your-workspace-id>/webhook-subscriptions' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: AccessKey <your-access-key>' \
--data '{
  "service": "channels",
  "event": "channel.created",
  "url": "myURL.com",
  "signingKey": "mysecretkey",
  "eventFilters": [
  ]
}'

Channel Updates Subscription

The example below will create a workspace wide subscription tracking all updates regarding your channels. This is particularly useful when waiting for a channel to become active as a status update will always trigger an update event

curl --location 'https://api.bird.com/organizations/<your-organization-id>/workspaces/<your-workspace-id>/webhook-subscriptions' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: AccessKey <your-access-key>' \
--data '{
  "service": "channels",
  "event": "channel.updated",
  "url": "myURL.com",
  "signingKey": "mysecretkey",
  "eventFilters": [
  ]
}'

Last updated