Installing a Voice channel

It is possible to install a Voice channel via 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.

Installing a Voice connector

In order to create a Voice connector, you must have a valid phoneNumberId and perform a HTTP request to the following endpoint with a valid access key

Create a new connector from a template.

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired
Body
namestringRequired
connectorTemplateRefstringOptional
channelConversationalStatusEnabledboolean · nullableOptional
invitationTokenstring · nullableOptional
Responses
chevron-right
201

OK

application/json
idstring · uuidRequired

The ID of this connector.

workspaceIdstring · uuidOptional

The ID of the workspace this connector belongs to.

routingKeystring · nullableOptional
namestringRequired

The Name of this connector.

regionstringOptional

The Region in which this connector was installed in.

descriptionstringOptional

The Description of this connector.

connectorTemplateSlugstringOptional

The slug for the template this connector is based on.

connectorTemplateRefstringOptional

The ref for the template this connector is based on.

createdAtstring · date-timeRequired

When the connector was created.

updatedAtstring · date-timeOptional

When the connector was last updated.

post
/workspaces/{workspaceId}/connectors

Example

Get your channel id

Once you have created your Voice connector, this will create a Voice channel each Voice channel have a unique channel ID that you need to use when calling Voice Calls API to use this specific channel. You can then get your channel ID as follows:

Show the details of a specific connector.

get
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired
connectorIdstring · uuidRequired
Responses
get
/workspaces/{workspaceId}/connectors/{connectorId}

The following example will get the connector you have created in the previous step. Parse the channel.channelId to get the id of your new Voice channel

Last updated

Was this helpful?