---
title: "Send message"
description: "Send one message (service message or template message) via platform for Meta Graph API"
openapi: "/openapi/omni-api.yaml POST /meta/{api_version}/{business_phone_number_id}/messages"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

`POST https://web.otpcod.ru/api/v1/meta/{api_version}/{business_phone_number_id}/messages`

Send one message (service message or template message) via platform for Meta Graph API

## Authentication

- `BasicAuth` — http basic AND `BearerAuth` — apiKey in header: `Authorization` AND `X-Api-Key` — apiKey in header: `X-Api-Key`

## Path parameters

- `api_version` (string, required) — API version
- `business_phone_number_id` (string, required) — Business phone number ID

## Request body

- Content type: `application/json`
  - request body (object)
    - `interactive` — Совпадает с форматом Meta (используются только кнопки)
      - (allOf)
        - value (object)
          - `action` — Required
            - (allOf)
              - value: … (nested further)
          - `body` — Optional for type product. Required for other message types
            - (allOf)
              - value: … (nested further)
          - `footer` — Optional
            - (allOf)
              - value: … (nested further)
          - `header` — Required for type product_list
            - (allOf)
              - value: … (nested further)
          - `type` (string) — list | button | product | product_list | location_request_message
    - `messaging_product` (string)
    - `recipient_type` (string)
    - `template` — Совпадает с форматом Meta
      - (allOf)
        - value (object)
          - `components` (array)
            - items: … (nested further)
          - `language` (object)
            - code: … (nested further)
            - policy: … (nested further)
          - `name` (string)
          - `namespace` (string)
    - `text` (object)
      - `body` (string)
      - `preview_url` (boolean)
    - `to` (string)
    - `type` (string)

## Response 202

Accepted
  - response (object)
    - `contacts` (object)
      - `input` (string)
      - `wa_id` (string)
    - `messages` (array)
      - `items` (object)
        - `id` (string)
    - `messaging_product` (string)

## Response 400

Bad Request
  - response (object)
    - `code` (string)
    - `error_data` (object)
      - `details` (string)
      - `messaging_product` (string)
    - `fbtrace_id` (string)
    - `message` (string)
    - `type` (string, one of: OAuthException, InvalidParameterException, APIException)

## Response 401

Unauthorized
  - response (object)
    - `code` (string)
    - `error_data` (object)
      - `details` (string)
      - `messaging_product` (string)
    - `fbtrace_id` (string)
    - `message` (string)
    - `type` (string, one of: OAuthException, InvalidParameterException, APIException)

## Response 500

Internal Server Error
  - response (object)
    - `code` (string)
    - `error_data` (object)
      - `details` (string)
      - `messaging_product` (string)
    - `fbtrace_id` (string)
    - `message` (string)
    - `type` (string, one of: OAuthException, InvalidParameterException, APIException)


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://iba-platform.jamdesk.app/api-specs.zip
