WhatsApp Message History Events API

APIs for retrieving WhatsApp Business Message History Events and delivery status occurrences

Operations 1

GET /{Version}/{Message-History-ID}/events Get WhatsApp Message History Events #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/whatsapp:whatsapp-message-history-events-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

whatsapp-message-history-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Meta Graph API - Application Connected Client Businesses…
  version: v23.0
  description: 'API for retrieving connected client businesses associated with a Meta application.


    This endpoint allows applications to retrieve information about businesses that have

    established client connections through the application. This is essential for managing

    business relationships and understanding client business configurations.'
  contact:
    name: Meta Business Platform Team
    url: https://developers.facebook.com/support
  license:
    name: Meta Platform Terms
    url: https://developers.facebook.com/terms
  termsOfService: https://developers.facebook.com/terms
servers:
- url: https://graph.facebook.com
  description: Production Graph API server
- url: https://graph.facebook.com
- url: https://graph.facebook.com
  description: WhatsApp Business Cloud API
- url: https://graph.facebook.com
  description: Meta Graph API production server
tags:
- name: Message History Events
  description: APIs for retrieving WhatsApp Business Message History Events and delivery status occurrences
paths:
  /{Version}/{Message-History-ID}/events:
    get:
      summary: Get WhatsApp Message History Events
      description: 'Retrieve paginated message delivery status events for a specific message history entry,

        including delivery status occurrences, timestamps, and application information.


        **Use Cases:**

        - Track detailed message delivery status events and transitions

        - Monitor delivery status occurrence timestamps

        - Retrieve application information for delivery events

        - Debug message delivery issues and status changes


        **Rate Limiting:**

        Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff.


        **Caching:**

        Message history events can be cached for short periods, but delivery status events

        may change frequently. Implement appropriate cache invalidation strategies.


        **Pagination:**

        This endpoint supports cursor-based pagination. Use the `after` and `before` cursors

        from the response to navigate through results.'
      operationId: getMessageHistoryEvents
      tags:
      - Message History Events
      parameters:
      - $ref: '#/components/parameters/UserAgent'
      - $ref: '#/components/parameters/Authorization'
      - name: Version
        in: path
        required: true
        description: 'Graph API version to use for this request. Determines the API behavior and available features.

          '
        schema:
          type: string
          pattern: ^v[0-9]+\.[0-9]+$
        example: v23.0
      - name: Message-History-ID
        in: path
        required: true
        description: 'Your WhatsApp Business Message History ID. This ID is provided when you retrieve

          message history and can be found through message history APIs.

          '
        schema:
          type: string
          pattern: ^[0-9]+$
        example: '1234567890123456'
      - name: status_filter
        in: query
        required: false
        description: 'Filter results by specific delivery status. When provided,

          only events with this delivery status will be returned.

          '
        schema:
          $ref: '#/components/schemas/WhatsAppMessageDeliveryStatus'
        example: DELIVERED
      - name: fields
        in: query
        required: false
        description: 'Comma-separated list of fields to include in the response. If not specified,

          default fields will be returned (cursor, node{id,delivery_status,occurrence_timestamp}).

          Available fields: cursor, node{id,delivery_status,error_description,occurrence_timestamp,status_timestamp,application}

          '
        schema:
          type: string
        example: cursor,node{id,delivery_status,occurrence_timestamp,application}
      - name: limit
        in: query
        required: false
        description: 'Maximum number of message history events to return per page.

          Default is 25, maximum is 100.

          '
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
        example: 25
      - name: after
        in: query
        required: false
        description: 'Cursor for pagination. Use this to get the next page of results.

          This value comes from the `paging.cursors.after` field in previous responses.

          '
        schema:
          type: string
        example: MTAxNTExOTQ1MjAwNzI5NDE=
      - name: before
        in: query
        required: false
        description: 'Cursor for pagination. Use this to get the previous page of results.

          This value comes from the `paging.cursors.before` field in previous responses.

          '
        schema:
          type: string
        example: MAZDZD
      responses:
        '200':
          description: Successfully retrieved WhatsApp message history events
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageHistoryEventsResponse'
              examples:
                message_history_events:
                  summary: Message history events with delivery status occurrences
                  value:
                    data:
                    - cursor: MTAxNTExOTQ1MjAwNzI5NDE=
                      node:
                        id: '2345678901234567'
                        delivery_status: SENT
                        occurrence_timestamp: 1640995200
                        status_timestamp: 1640995205
                        application:
                          id: '9876543210987654'
                          name: WhatsApp Business API Client
                    - cursor: MTAxNTExOTQ1MjAwNzI5NDI=
                      node:
                        id: '3456789012345678'
                        delivery_status: DELIVERED
                        occurrence_timestamp: 1640995260
                        status_timestamp: 1640995265
                        application:
                          id: '9876543210987654'
                          name: WhatsApp Business API Client
                    - cursor: MTAxNTExOTQ1MjAwNzI5NDM=
                      node:
                        id: '4567890123456789'
                        delivery_status: READ
                        occurrence_timestamp: 1640995320
                        status_timestamp: 1640995325
                        application:
                          id: '9876543210987654'
                          name: WhatsApp Business API Client
                    paging:
                      cursors:
                        after: MTAxNTExOTQ1MjAwNzI5NDM=
                        before: MTAxNTExOTQ1MjAwNzI5NDE=
                      next: https://graph.facebook.com/v23.0/1234567890123456/events?after=MTAxNTExOTQ1MjAwNzI5NDM
                filtered_by_status:
                  summary: Message history events filtered by delivery status
                  value:
                    data:
                    - cursor: MTAxNTExOTQ1MjAwNzI5NDI=
                      node:
                        id: '3456789012345678'
                        delivery_status: DELIVERED
                        occurrence_timestamp: 1640995260
                        status_timestamp: 1640995265
                        application:
                          id: '9876543210987654'
                          name: WhatsApp Business API Client
                    paging:
                      cursors:
                        after: MTAxNTExOTQ1MjAwNzI5NDI=
                        before: MTAxNTExOTQ1MjAwNzI5NDI=
        '400':
          description: Bad Request - Invalid parameters or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphAPIError'
              example:
                error:
                  message: 'Invalid parameter: status_filter must be a valid delivery status'
                  type: OAuthException
                  code: 100
                  fbtrace_id: AXsgnV2Cm3ZMGF3dF_cfYIn
        '401':
          description: Unauthorized - Invalid or missing access token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphAPIError'
              example:
                error:
                  message: Invalid OAuth access token
                  type: OAuthException
                  code: 190
                  error_subcode: 463
                  fbtrace_id: AXsgnV2Cm3ZMGF3dF_cfYIn
        '403':
          description: Forbidden - Insufficient permissions or access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphAPIError'
              example:
                error:
                  message: Your app doesn't have permission to access message history events for this resource
                  type: OAuthException
                  code: 200
                  error_subcode: 1349174
                  fbtrace_id: AXsgnV2Cm3ZMGF3dF_cfYIn
                  error_user_title: Permission Denied
                  error_user_msg: Your app doesn't have permission to access this resource
        '404':
          description: Not Found - Message History ID does not exist or is not accessible
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphAPIError'
              example:
                error:
                  message: WhatsApp Business Message History not found
                  type: GraphMethodException
                  code: 803
                  fbtrace_id: AXsgnV2Cm3ZMGF3dF_cfYIn
        '422':
          description: Unprocessable Entity - Request parameters are valid but cannot be processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphAPIError'
              example:
                error:
                  message: The requested fields are not available for this message history
                  type: GraphMethodException
                  code: 100
                  fbtrace_id: AXsgnV2Cm3ZMGF3dF_cfYIn
        '429':
          description: Too Many Requests - Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphAPIError'
              example:
                error:
                  message: Application request limit reached
                  type: OAuthException
                  code: 4
                  error_subcode: 2446079
                  fbtrace_id: AXsgnV2Cm3ZMGF3dF_cfYIn
                  is_transient: true
        '500':
          description: Internal Server Error - Unexpected server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphAPIError'
              example:
                error:
                  message: An unexpected error occurred. Please retry your request
                  type: GraphMethodException
                  code: 2
                  fbtrace_id: AXsgnV2Cm3ZMGF3dF_cfYIn
                  is_transient: true
      security:
      - bearerAuth: []
components:
  parameters:
    Authorization:
      name: Authorization
      in: header
      description: 'Bearer token for API authentication. This should be a valid access token obtained through the appropriate OAuth flow or system user token.

        '
      required: true
      schema:
        type: string
        pattern: ^Bearer\s+[A-Za-z0-9\-_.]+.*$
        example: Bearer EAABwzLixnjYBOzYmNMJJGfHq9DgNh...
    UserAgent:
      name: User-Agent
      in: header
      description: The user agent string identifying the client software making the request.
      required: false
      schema:
        type: string
        default: Meta-Business-Messaging-OpenAPI/1.0.0;spec=2025-10-21
        pattern: ^[a-zA-Z0-9\-_]+\/[0-9]+\.[0-9]+\.[0-9]+(;[a-zA-Z0-9\-=\.]+)?(\s+[a-zA-Z0-9\-_]+\/[0-9\-\.]+)?$
        example: Meta-Business-Messaging-OpenAPI/1.0.0;spec=2025-10-21
  schemas:
    GraphAPIError:
      type: object
      description: Standard Graph API error response
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          - type
          - code
          properties:
            message:
              type: string
              description: Human-readable error message
              example: Invalid parameter
            type:
              type: string
              description: Error category type
              example: OAuthException
            code:
              type: integer
              description: Numeric error code
              example: 100
            error_subcode:
              type: integer
              description: More specific error subcode when available
              example: 33
            fbtrace_id:
              type: string
              description: Unique identifier for debugging and support requests with Meta
              example: AXsgnV2Cm3ZMGF3dF_cfYIn
            is_transient:
              type: boolean
              description: Indicates whether this error is temporary and the request should be retried
              example: false
            error_user_title:
              type: string
              description: User-friendly error title for display purposes
              example: Permission Denied
            error_user_msg:
              type: string
              description: User-friendly error message for display purposes
              example: Your app doesn't have permission to access this resource
    WhatsAppMessageHistoryEventsEdge:
      type: object
      description: Edge containing message delivery status occurrence with pagination cursor
      required:
      - node
      properties:
        cursor:
          type: string
          description: Pagination cursor for this edge
          example: MTAxNTExOTQ1MjAwNzI5NDE=
        node:
          $ref: '#/components/schemas/WhatsAppBusinessMessageDeliveryStatusOccurrence'
    MessageHistoryEventsResponse:
      type: object
      description: Paginated response containing message history events
      properties:
        data:
          type: array
          description: Array of message history event edges
          items:
            $ref: '#/components/schemas/WhatsAppMessageHistoryEventsEdge'
        paging:
          $ref: '#/components/schemas/PaginationInfo'
    WhatsAppMessageDeliveryStatus:
      type: string
      description: Message delivery status
      enum:
      - SENT
      - DELIVERED
      - READ
      - FAILED
      - DELETED
      example: DELIVERED
    ApplicationNode:
      type: object
      description: Meta application that owns the Multi-Partner Solution
      properties:
        id:
          type: string
          description: Unique identifier for the Meta application
          example: '9876543210987654'
        name:
          type: string
          description: Name of the Meta application
          example: Solution Partner App
    WhatsAppBusinessMessageDeliveryStatusOccurrence:
      type: object
      description: Message delivery status occurrence with detailed event information
      required:
      - id
      - delivery_status
      - occurrence_timestamp
      properties:
        id:
          type: string
          description: Unique identifier for the message delivery status occurrence
          example: '2345678901234567'
        delivery_status:
          $ref: '#/components/schemas/WhatsAppMessageDeliveryStatus'
        error_description:
          type: string
          description: Error description if the delivery encountered an error
          example: Message delivery failed due to invalid phone number
        occurrence_timestamp:
          type: integer
          format: int64
          description: Unix timestamp when the delivery status occurrence happened
          example: 1640995200
        status_timestamp:
          type: integer
          format: int64
          description: Unix timestamp when the status was recorded
          example: 1640995205
        application:
          $ref: '#/components/schemas/ApplicationNode'
    PaginationInfo:
      type: object
      description: Pagination information for navigating through results
      properties:
        cursors:
          type: object
          description: Pagination cursors for navigation
          properties:
            before:
              type: string
              description: Cursor for the previous page of results
              example: MAZDZD
            after:
              type: string
              description: Cursor for the next page of results
              example: MTAxNTExOTQ1MjAwNzI5NDE=
        previous:
          type: string
          format: uri
          description: URL for the previous page of results
          example: https://graph.facebook.com/v23.0/1234567890123456/message_history?before=MAZDZD
        next:
          type: string
          format: uri
          description: URL for the next page of results
          example: https://graph.facebook.com/v23.0/1234567890123456/message_history?after=MTAxNTExOTQ1MjAwNzI5NDE=
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'System user access token with whatsapp_business_management permission. Format: Bearer YOUR_SYSTEM_USER_ACCESS_TOKEN

        '