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
    • Metrics
    • Events
    • Recipient Validation
    • Webhooks
    • SMTP API
  • 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

Was this helpful?

  1. Email API

Webhooks

Was this helpful?

Webhooks allow us to push raw events we collect about your emails over to your servers. Batches of events are delivered through a POST request to the defined target URL. You can use this endpoint to create and manage webhooks, or you can create one from the app.

Batch Information

  • Any webhook batch that does not receive an HTTP 200 response will be retried for a total of 8 hours before the data is discarded.

  • Each webhook batch contains the header X-MessageSystems-Batch-ID, which is useful for detecting and prevention of processing duplicate batches. Additionally within each event the event_id is unique and can also be used in duplicate detection and prevention.

  • Webhooks posting to your endpoint will timeout after 10 seconds. For best results, write webhook batches to disk and then process asynchronously to minimize data loss if you have a problem with your database.

  • Webhook batch status is available for 24 hours via the UI or the API.

  • See for more information on how best to consume webhooks.

  • See for highly recommended security measures.

Event Types

You can receive any of the following types of events in webhook payloads:

  • Message Status Events:

    • injection: Message was accepted for delivery

    • delivery: Message was successfully delivered

    • delay: Message delivery was delayed

    • bounce: Message delivery failed

    • spam_complaint: Recipient marked message as spam

    • out_of_band: Message bounced after initial acceptance

    • policy_rejection: Message was rejected by policy

    • generation_failure: Message generation failed

    • generation_rejection: Message was rejected during generation

  • Recipient Engagement Events:

    • open: Message was opened

    • initial_open: First time message was opened

    • click: Link in message was clicked

    • initial_click: First time a link was clicked

    • amp_click: Link in AMP version was clicked

    • amp_open: AMP version was opened

Best Practices for Managing Webhook Data Streams
Webhook Authentication and Security

List all Webhooks

get

Returns a list of all your webhooks.

Authorizations
Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

Responses
200
Successfully retrieved webhooks list
application/json
get
GET /api/workspaces/{workspaceId}/reach/webhooks HTTP/1.1
Host: email.eu-west-1.api.bird.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successfully retrieved webhooks list

{
  "results": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "target": "text",
      "events": [
        "text"
      ],
      "auth_type": "text",
      "auth_request_details": {},
      "auth_credentials": {},
      "last_successful": "2025-06-08T05:53:19.611Z",
      "last_failure": "2025-06-08T05:53:19.611Z",
      "active": true,
      "links": [
        {
          "href": "text",
          "rel": "text",
          "method": [
            "text"
          ]
        }
      ]
    }
  ]
}

Retrieve a Webhook

get

Retrieve a specific webhook by ID.

Authorizations
Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

webhookIdstring · uuidRequired

The ID of the webhook

Responses
200
Successfully retrieved webhook
application/json
get
GET /api/workspaces/{workspaceId}/reach/webhooks/{webhookId} HTTP/1.1
Host: email.eu-west-1.api.bird.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successfully retrieved webhook

{
  "results": {
    "name": "text",
    "target": "text",
    "events": [
      "text"
    ],
    "auth_type": "text",
    "auth_request_details": {},
    "auth_credentials": {},
    "active": true,
    "links": [
      {
        "href": "text",
        "rel": "text",
        "method": [
          "text"
        ]
      }
    ]
  }
}

Delete a Webhook

delete

Delete a specific webhook by ID.

Authorizations
Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

webhookIdstring · uuidRequired

The ID of the webhook

Responses
204
Webhook deleted successfully
delete
DELETE /api/workspaces/{workspaceId}/reach/webhooks/{webhookId} HTTP/1.1
Host: email.eu-west-1.api.bird.com
Authorization: YOUR_API_KEY
Accept: */*
204

Webhook deleted successfully

No content

Validate a Webhook

post

The validation request sends an example message event batch to the target URL, validates that the target responds with HTTP 200, and returns information on the response received.

Authorizations
Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

webhookIdstring · uuidRequired

The ID of the webhook

Responses
200
Webhook validation successful
application/json
post
POST /api/workspaces/{workspaceId}/reach/webhooks/{webhookId}/validate HTTP/1.1
Host: email.eu-west-1.api.bird.com
Authorization: YOUR_API_KEY
Accept: */*
200

Webhook validation successful

{
  "results": {
    "msg": "text",
    "response": {
      "status": 1,
      "headers": {},
      "body": "text"
    }
  }
}

Retrieve Batch Status Information

get

Get status information about webhook batches. Status information is provided for failed batches and those that succeeded on retry. Batch status is available for 24 hours.

Authorizations
Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

webhookIdstring · uuidRequired

The ID of the webhook

Query parameters
limitintegerOptional

Maximum number of results to return

Default: 1000
Responses
200
Successfully retrieved batch status information
application/json
get
GET /api/workspaces/{workspaceId}/reach/webhooks/{webhookId}/batch-status HTTP/1.1
Host: email.eu-west-1.api.bird.com
Authorization: YOUR_API_KEY
Accept: */*
200

Successfully retrieved batch status information

{
  "results": [
    {
      "batch_id": "text",
      "ts": "2025-06-08T05:53:19.611Z",
      "attempts": 1,
      "response_code": "text",
      "failure_code": "text",
      "latency": 1
    }
  ]
}
  • GETList all Webhooks
  • POSTCreate a Webhook
  • GETRetrieve a Webhook
  • PUTUpdate a Webhook
  • DELETEDelete a Webhook
  • POSTValidate a Webhook
  • GETRetrieve Batch Status Information

Create a Webhook

post

Create a new webhook. When a webhook is created, a test POST request is sent to the target URL. If this request does not receive an HTTP 200 response, your request will fail with HTTP 400 and the webhook will not be created. If created successfully, the webhook will begin to receive event data after 1 minute.

Authorizations
Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

Body
namestringRequired

Name for webhook

targetstringRequired

URL of the target to which to POST event batches

eventsstring[]Required

Array of event types this webhook will send

activebooleanOptional

The status of the webhook

Default: true
custom_headersobjectOptional

Object of custom headers to be used during POST requests to target

auth_typestring · enumOptional

Type of authentication to be used during POST requests to target

Default: nonePossible values:
Responses
200
Webhook created successfully
application/json
400
Request validation error
application/json
post
POST /api/workspaces/{workspaceId}/reach/webhooks HTTP/1.1
Host: email.eu-west-1.api.bird.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 207

{
  "name": "text",
  "target": "text",
  "events": [
    "text"
  ],
  "active": true,
  "custom_headers": {},
  "auth_type": "none",
  "auth_request_details": {
    "url": "text",
    "body": {}
  },
  "auth_credentials": {
    "username": "text",
    "password": "text"
  }
}
{
  "results": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "links": [
      {
        "href": "text",
        "rel": "text",
        "method": [
          "text"
        ]
      }
    ]
  }
}

Update a Webhook

put

Update an existing webhook. If you change the target URL, a test POST request will be sent. If this request does not receive an HTTP 200 response, your request will fail with HTTP 400.

Authorizations
Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

webhookIdstring · uuidRequired

The ID of the webhook

Body
namestringOptional

Name for webhook

targetstringOptional

URL of the target to which to POST event batches

eventsstring[]Optional

Array of event types this webhook will send

activebooleanOptional

The status of the webhook

custom_headersobjectOptional

Object of custom headers to be used during POST requests to target

auth_typestring · enumOptional

Type of authentication to be used during POST requests to target

Possible values:
auth_request_detailsobjectOptional

Object containing details needed for OAuth 2.0 authentication

auth_credentialsobjectOptional

Object containing credentials for Basic Authentication

Responses
200
Webhook updated successfully
application/json
400
Request validation error
application/json
put
PUT /api/workspaces/{workspaceId}/reach/webhooks/{webhookId} HTTP/1.1
Host: email.eu-west-1.api.bird.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "name": "text",
  "target": "text",
  "events": [
    "text"
  ],
  "active": true,
  "custom_headers": {},
  "auth_type": "none",
  "auth_request_details": {},
  "auth_credentials": {}
}
{
  "results": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "links": [
      {
        "href": "text",
        "rel": "text",
        "method": [
          "text"
        ]
      }
    ]
  }
}