LogoLogo
No-code docsResources
  • 🖥️Welcome to the Bird API Docs
  • API Access
    • Access Policies
    • Access Roles
    • API Authorization
    • Common API usage
  • Conversations API
    • API reference
      • Channel configuration
        • Get conversations configuration
        • Update conversations configuration
      • Conversations messaging
        • Create conversation message
        • List conversation messages
        • Get conversation message
        • Update conversation message
        • Delete conversation message
        • Create pre-signed upload
      • Conversations management
        • Create conversation
        • List conversations
        • Get conversation
        • Update conversation
        • Delete conversation
      • Conversation Participants
        • Add participant to conversation
        • List participants
        • Get participant by ID
        • Get participant by identifier key and value
        • Update participant by ID
        • Update participant by identifier key and value
        • Delete participant
        • List participant conversations by ID
        • List participant conversations by identifier key and value
      • Workspace settings
        • Get antispam setting
        • Update antispam setting
        • Create allow/block rule
        • Get allow/block rule
        • List allow/block rules
        • Update allow/block rule
        • Delete allow/block rule
        • Add allow/block rules in bulk
        • Get allow/block bulk upload status
      • Events
  • Collaborations API
    • API reference
      • Agent Management
      • Team Management
      • Feeds
      • Feed item activity
      • Tags
      • Automation Rules
      • Business Hours
      • Capacity Rules
      • Routing Queues
      • Skills
      • SLA Policies
      • Macros
      • Sender Profiles
      • Ticket fields
  • Channels API
    • Supported channels
      • Programmable WhatsApp
        • Sending WhatsApp messages
        • Customer service window
        • Receiving messages
        • Message interactions
        • WhatsApp ISV integration
          • Setting up your customer workspaces
            • API Access
            • Associating your Facebook solution ID and business ID with your Bird CRM Organization
            • Creating a workspace for your customer
            • Buying a number through Bird
            • Subscribing to channel created webhooks
          • WhatsApp channel onboarding
            • Setting up the WhatsApp Embedded flow
            • Install WhatsApp phone number in Bird CRM
            • Subscribe to channel webhooks
      • Programmable SMS
        • Installing an SMS channel
          • US 10DLC API Installation
          • Toll-Free Numbers Verification API
        • Sending SMS messages
        • Receiving messages
        • Twilio Exit API
          • Using Twilio PHP SDK
          • Using Twilio Go SDK
          • Using Twilio Ruby SDK
        • Sinch Exit API
      • Programmable RCS
        • Sending messages
        • Receiving messages
        • Message interactions
      • Programmable Email
        • Sending Emails
        • Receiving messages
        • Message status
        • Message interactions
      • Programmable Line
        • Sending messages
        • Receiving messages
        • Message interactions
      • Programmable Telegram
        • Sending messages
        • Receiving messages
        • Message interactions
    • Message types
      • Text
      • Images
      • Files
      • List
      • Carousel
      • Template
    • Message status and interactions
      • Message Failure Codes
      • Message Failure Sources
        • SMS Platform Extended Error Codes
    • Send batch messages
    • API reference
      • Channel Groups
      • Messaging
      • Channels management
      • Channel connectors
      • Navigators
      • Compliance Keywords Messages
      • Conversions Sharing
      • Events
    • Rate Limit
  • Voice API
    • Installing a Voice channel
    • Voice Calls API
      • Initiate an outbound call
      • List calls from a channel
      • Get a call
      • Update a call
      • Answer a call
      • Ring a call
      • Hangup a call
      • Play a message in a call
      • Say Text-To-Speech (TTS)
      • Gather DTMF from a call
      • Forward a call
      • Record a Call
      • Record a call session
      • Update a call recording
      • List call recordings of a call
      • Get a call recording
      • Get a call insights
      • Get calls log
    • Recordings API
      • List Recordings
      • Get a Recording
      • Delete a Recording
      • List recording storage metrics
    • Transcriptions API
      • Initiate a Transcription
      • List Transcriptions
      • Get a Transcription
      • Delete a Transcription
    • Voice webhooks
    • Flash Calling API
  • Verify API
    • Verify API: Quick Start
  • Contacts API
    • Tracking Contact Events
      • API Reference
        • Get configuration
        • Track events
    • API reference
      • Manage workspace contacts
        • Create a contact
        • Get a contact
        • List contacts
        • Search contact by identifier
        • Update a contact
        • Create or update a contact by identifier
        • Delete a contact
      • Manage contact identifiers
        • Create contact identifier
        • List contact identifiers
        • Delete contact identifier
      • Manage contact attribute definition
        • Create attribute definition
        • Get attribute definition
        • List attribute definitions
      • Manage contact lists
        • Create a list
        • Get a list
        • List lists
        • Update a list
        • Delete a list
        • Add contacts to a list
        • Get contact list memberships
        • List contacts in a list
        • Remove contacts from a list
      • Lookup
        • Network/Country information for a phone number
  • Numbers API
    • API reference
      • Search Available Numbers
      • Buy a Number
      • List your Numbers
      • Get Long Code Number Details
      • Manage Endpoint Subscriptions
        • Cancel Number Subscription
      • Manage Endpoint Compliance Requirements
        • List Workspace compliace Requirements
        • Get Workspace Compliace Requirements
        • Update Workspace Compliace Requirements
      • 10DLC Compliance
        • Brands - Organization
          • Create a brand
          • List all brands
          • Get a brand
          • Update a brand
          • Delete a brand
          • Create a brand vetting
        • Brands - workspace
          • Create a brand
          • List all brands
          • Get a brand
          • Update a brand
          • Delete a brand
          • Create a brand vetting
          • List brand vettings
        • Campaigns
          • Optional: acting as Reseller
          • Create a campaign
          • List all campaigns
          • Get a campaign
          • Update a campaign
          • Delete a campaign
        • TCR Enums
        • Events
      • Toll-Free Numbers Verification API
      • Long Code Numbers
      • Short Code Numbers
      • Alphanumeric Senders
      • Events
  • Know-Your-Customer (KYC) API
    • List KYC forms
    • Get KYC form
    • Create KYC form entry
    • Update KYC form entry
    • List KYC form entries
    • Get a KYC form entry details
  • Reporting API
    • API reference
      • Channel Metrics
      • Flow Run Metrics
      • Wallet Metrics
      • Campaign Metrics
      • Message Metrics
  • Accounts API
    • API reference
      • Current user
        • Change password
        • Presigned upload
        • Memberships
        • Sessions
        • Configurations
          • Groups
            • Keys
      • IAM policies
      • Organizations
        • Upload media
        • Profile
        • Workspaces
        • Users
        • Access keys
        • Organization roles
        • Organization policies
        • Teams
          • Members
        • Approvals
          • Runs
            • Reviews
        • Configurations
          • Groups
            • Keys
      • Region groups
  • Touchpoints API
    • Supported Projects
      • Whatsapp Approved Message Templates
        • Creating WhatsApp Message templates
          • Text template blocks
          • Blocks Documentation
    • API reference
      • Projects
      • Message Templates
  • Notifications API
    • API Reference
      • Webhook subscriptions
        • Create a webhook subscription
        • List available webhook events
        • Get a webhook subscription
        • List webhook subscriptions
        • Update a webhook subscription
        • Delete a webhook subscription
        • Verifying a webhook subscription
        • Webhook subscription logs
  • Knowledge Base (KB) API
    • API reference
      • Documents
      • Folders
        • Import
      • Search
      • Presigned upload
  • Email API
    • Transmissions
  • Connectivity platform migration guide
    • Channels API and Conversations API
    • Migrating conversations API actions
    • Migrating WhatsApp channels
  • Client SDKs
    • Applications
    • Contact Profiles
      • Signed Identity
    • Push notifications
      • Quick Start
      • Subscribe contacts to push notification campaigns
      • Notification Display Priority
    • Event Tracking
      • Quick Start
      • Track Events
        • App
        • Audiences
        • Conference
        • Ecommerce
        • Hospitality
        • Lists
        • Messaging
        • Payments
        • Subscription
        • Suppressions
        • Survey
        • Web
    • App Inbox
      • Quick Start
      • Usage
      • Subscribe contacts to app inbox campaigns
    • SDK Integration
      • Android SDK
        • Notification Interactions
      • Swift SDK
        • Notification Interactions
      • Web SDK
        • Quick Start
        • Usage
        • API Reference
          • IdentityManager
          • BirdSdkApi
          • BirdTracker
            • Ecommerce
            • Conference
            • Messaging
            • Suppressions
            • Subscription
            • Survey
            • Web
            • Audiences
        • Web Push Notifications
          • Notification Interactions
  • Quickstarts
    • Conversations
    • Send an SMS message
    • Send an Email message
    • Send a WhatsApp message
Powered by GitBook
On this page
  • Using the UI for migration
  • Using programmatic migration of WhatsApp channels from CP to the Bird CRM
  • Synchronizing WhatsApp templates programmatically

Was this helpful?

  1. Connectivity platform migration guide

Migrating WhatsApp channels

Last updated 5 months ago

Was this helpful?

Bird CRM provides tools to seamlessly migrate your WhatsApp channels and templates from the Connectivity Platform (CP) to the Bird CRM. Whether through the user interface or programmatic methods, this guide walks you through the migration and synchronization process.

This guide covers:

1.

2.

3.

Using the UI for migration

This section provides a detailed guide on accessing and using the Migration Tool in the Bird CRM UI, enabling you to seamlessly migrate your WhatsApp channels.

  1. Log in to Bird CRM.

  2. Locate your organization's logo displayed in the top-left corner of the dashboard.

  3. Click on the logo to open the navigation menu.

  4. Select Manage Channels option to access the channel settings page.

    Alternatively, you can directly navigate to: .

  5. Select WhatsApp Connectivity Migration to open the migration tool.

  1. In the WhatsApp Connectivity Migration tool, input your CP AccessKey and click Get Channels

This key allows the system to identify channels that need migration.

  1. Select the channels you wish to migrate and click Migrate selected channels.

  1. To begin migrating WhatsApp templates from the Connectivity Platform (CP), click Migrate all templates.

  2. Select WhatsApp and choose the WhatsApp Business Accounts for template migration and click Sync Templates.

Verifying successful migration

This structured process ensures a smooth and thorough migration from the CP to the Bird CRM, enabling a seamless transition of channels and templates.

  1. The migration tool provides real-time status updates for each channel. Ensure all channels show a completed migration status.

  2. To verify template migration, click on Message Templates in the navigation panel.

You should see all templates successfully migrated from the CP to the Bird CRM.

Using programmatic migration of WhatsApp channels from CP to the Bird CRM

This section explains how to programmatically migrate WhatsApp channels from the Connectivity Platform (CP) to Bird CRM using API requests and a Go implementation. The process includes retrieving channels from CP, creating equivalent channels in Bird CRM, and verifying the migration to ensure a seamless transition.

Overview of the migration process

  1. Use the CP AccessKey to fetch all WhatsApp channels associated with your account.

  2. Optionally, allow user input to decide which channels to migrate.

  3. Use the Bird CRM API to create new WhatsApp channels in the Bird CRM workspace, using CP channel details.

  4. Confirm the migration by reviewing the created connectors in Bird CRM.

HTTP Requests for Migration

1. Retrieve WhatsApp Channels from CP

  • Endpoint:

    GET https://messaging.messagebird.com/v1/channels?limit=20&offset=0&platform=whatsapp
  • Headers:

    • Authorization: AccessKey <CP_ACCESS_KEY>

    • Content-Type: application/json

Example response

A JSON object containing the list of WhatsApp channels.

{
  "count": 1,
  "channels": [
    {
      "id": "channel-id-1",
      "name": "Channel Name",
      "settings": {
        "waba_id": "waba-id",
        "msisdn": "31612345678",
        "phone_number_id": "phone-id",
        "pin": "12345",
        "display_name": "WhatsApp"
      }
    }
  ]
}

2. Create a WhatsApp Channel in the Bird CRM

  • Endpoint:

    POST https://api.bird.com/workspaces/{workspace_id}/connectors
  • Headers:

    • Authorization: AccessKey <BIRD_CRM_ACCESS_KEY>

    • Content-Type: application/json

Payload
{
  "connectorTemplateRef": "whatsapp:1",
  "name": "WhatsApp",
  "arguments": {
    "wabaId": "waba-id",
    "phoneId": "phone-id",
    "phoneNumber": "+31612345678",
    "isCpMigrated": true,
    "cpChannelId": "channel-id-1",
    "cpAccessKey": "<CP_ACCESS_KEY>",
    "phoneRegistrationPin": "12345"
  }
}
Example response

A JSON object confirming the creation of the connector in the Bird CRM.

  • {
      "id": "connector-id-1",
      "workspaceId": "workspace-id",
      "routingKey": "whatsapp/waba-id/phone-id",
      "region": "eu-west-1",
      "connectorTemplateId": "template-id",
      "connectorTemplateRef": "whatsapp:1",
      "name": "WhatsApp",
      "arguments": {
        "cpAccessKey": "<CP_ACCESS_KEY>",
        "cpChannelId": "channel-id-1",
        "isCpMigrated": true,
        "phoneId": "phone-id",
        "phoneNumber": "+31612345678",
        "wabaId": "waba-id"
      },
      "channel": {
        "channelId": "channel-id",
        "platform": "whatsapp"
      },
      "createdAt": "2024-10-20T17:31:08.231Z",
      "updatedAt": "2024-10-20T17:31:08.231Z",
      "dataCapture": {
        "captureEndpoint": "https://capture.eu-west-1.api.sandbox.bird.one/whatsapp"
      }
    }

Synchronizing WhatsApp templates programmatically

This section provides a detailed explanation of how to programmatically synchronize WhatsApp templates from the Bird CRM using an example Go implementation. The process includes identifying WhatsApp Business Accounts (WABAs) in the Bird CRM and triggering template synchronization via API requests.

Overview of the Synchronization Process

  1. Use the Bird CRM AccessKey and Workspace ID to fetch channel groups.

  2. Identify groups corresponding to WhatsApp Business Accounts (WABAs).

    • In the channel groups response:

      • platformGroupId corresponds to the WABA ID.

      • platformGroupName represents the Business Account Name.

      • Only records where platformId is "whatsapp" are relevant.

  3. For each WABA, make a request to start template synchronization.

  4. Monitor and verify synchronization status in the Bird CRM UI.

HTTP requests for synchronization

1. Retrieve WhatsApp Channel Groups

  • Endpoint:

GET https://api.bird.com/workspaces/{workspace_id}/channel-groups
  • Headers:

    • Authorization: AccessKey <BIRD_CRM_ACCESS_KEY>

Example response

A JSON object containing a list of channel groups.

{
  "nextPageToken": null,
  "results": [
    {
      "id": "group-id-1",
      "platformId": "whatsapp",
      "platformGroupId": "waba-id-1",
      "platformGroupName": "Business Account 1",
      "channelIds": ["channel-id-1", "channel-id-2"],
      "createdAt": "2024-10-15T10:00:00Z",
      "updatedAt": "2024-10-20T10:00:00Z"
    }
  ]
}

2. Trigger Template Synchronisation

  • Endpoint:

POST https://api.bird.com/workspaces/{workspace_id}/channel-groups/{channel_group_id}/sync-templates
  • Headers:

    • Authorization: AccessKey <BIRD_CRM_ACCESS_KEY>

    • Content-Type: application/json

  • Payload: an empty JSON object ({}).

Example response

Indicates the status of the synchronisation request.

{
  "status": "accepted",
  "message": "Template synchronisation triggered successfully."
}

https://app.bird.com/settings/channels
Using the Bird CRM UI for migration.
Using programmatic migration of WhatsApp channels from CP to the Bird CRM
Synchronizing WhatsApp templates programmatically.