> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polymorfa.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send a message, mark read, or send a typing indicator (Meta Cloud API-compatible)

> **Protocols:** Linked Device API · Meta Cloud API · Polymorfa Hybrid Link

<Badge color="green" icon="laptop">Linked Device API</Badge> <Badge color="blue" icon="meta" iconType="brands">Meta Cloud API</Badge> <Badge color="purple" icon="shuffle">Polymorfa Hybrid Link</Badge>


## OpenAPI

````yaml /api-reference/openapi.graph.json post /{version}/{phoneNumberId}/messages
openapi: 3.0.3
info:
  title: Polymorfa Graph API
  version: 1.0.0
  description: Meta Cloud API-compatible facade.
servers:
  - url: https://api.polymorfa.com
security: []
paths:
  /{version}/{phoneNumberId}/messages:
    post:
      tags:
        - Graph API
      summary: >-
        Send a message, mark read, or send a typing indicator (Meta Cloud
        API-compatible)
      description: >-
        **Protocols:** Linked Device API · Meta Cloud API · Polymorfa Hybrid
        Link
      operationId: graphSendMessage
      parameters:
        - schema:
            type: string
            example: v21.0
          required: true
          name: version
          in: path
        - schema:
            type: string
            example: '123456789012345'
          required: true
          name: phoneNumberId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GraphSendMessageRequest'
      responses:
        '200':
          description: Message sent, or status update accepted
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/GraphSendMessageResponse'
                  - $ref: '#/components/schemas/GraphSuccessResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphError'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphError'
        '403':
          description: Permission error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphError'
        '404':
          description: Object does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphError'
      security:
        - BearerAuth: []
components:
  schemas:
    GraphSendMessageRequest:
      type: object
      properties:
        messaging_product:
          type: string
          example: whatsapp
        recipient_type:
          type: string
        to:
          type: string
          example: '15551234567'
        type:
          type: string
          enum:
            - text
            - image
            - video
            - document
            - audio
            - sticker
            - location
            - contacts
            - reaction
            - interactive
            - template
        text:
          type: object
          properties:
            body:
              type: string
            preview_url:
              type: boolean
        image:
          type: object
          properties:
            id:
              type: string
            link:
              type: string
            caption:
              type: string
            filename:
              type: string
            voice:
              type: boolean
        video:
          type: object
          properties:
            id:
              type: string
            link:
              type: string
            caption:
              type: string
            filename:
              type: string
            voice:
              type: boolean
        document:
          type: object
          properties:
            id:
              type: string
            link:
              type: string
            caption:
              type: string
            filename:
              type: string
            voice:
              type: boolean
        audio:
          type: object
          properties:
            id:
              type: string
            link:
              type: string
            caption:
              type: string
            filename:
              type: string
            voice:
              type: boolean
        sticker:
          type: object
          properties:
            id:
              type: string
            link:
              type: string
            caption:
              type: string
            filename:
              type: string
            voice:
              type: boolean
        location:
          type: object
          properties:
            latitude:
              type: number
            longitude:
              type: number
            name:
              type: string
            address:
              type: string
        contacts:
          type: array
          items:
            nullable: true
        reaction:
          type: object
          properties:
            message_id:
              type: string
            emoji:
              type: string
        interactive:
          nullable: true
        template:
          nullable: true
        context:
          type: object
          properties:
            message_id:
              type: string
          required:
            - message_id
        status:
          type: string
          example: read
        message_id:
          type: string
        typing_indicator:
          nullable: true
      required:
        - messaging_product
    GraphSendMessageResponse:
      type: object
      properties:
        messaging_product:
          type: string
          example: whatsapp
        contacts:
          type: array
          items:
            type: object
            properties:
              input:
                type: string
              wa_id:
                type: string
            required:
              - input
              - wa_id
        messages:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
            required:
              - id
      required:
        - messaging_product
        - contacts
        - messages
    GraphSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
      required:
        - success
    GraphError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: number
            error_subcode:
              type: number
            error_data:
              nullable: true
            fbtrace_id:
              type: string
          required:
            - message
            - type
            - code
            - fbtrace_id
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Polymorfa organization key (titan_ prefix) or project token (titan_pt_
        prefix). Client tokens are not accepted by Graph operations.

````