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

# Send Message

> Send a message



## OpenAPI

````yaml POST /sendMessage
openapi: 3.1.0
info:
  title: Pingmee API
  description: A complete guide to Pingmee micro service architecture.
  version: 1.0.0
servers:
  - url: https://api.pingmee.co.il
security:
  - cookieAuth: []
    ApiKeyAuth: []
paths:
  /sendMessage:
    post:
      description: Send a message
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - sender
                - receiver
                - participantsIdentifiers
                - message
                - type
                - messagePlatform
                - initiator
              properties:
                sender:
                  type: string
                  description: Sender identifier
                receiver:
                  type: string
                  description: Receiver identifier
                participantsIdentifiers:
                  type: string
                  description: Conversation participants identifiers
                message:
                  type: string
                  description: Message content
                type:
                  type: string
                  enum:
                    - default
                  default: default
                initiator:
                  type: string
                  enum:
                    - person
                  default: person
                messagePlatform:
                  type: string
                  enum:
                    - instagram
                    - facebookMessenger
                    - whatsapp
                  default: whatsapp
                  description: Messaging platform
                context:
                  type: object
                  description: Reply to an existing WhatsApp message
                  properties:
                    from:
                      type: string
                      description: Original sender phone number Id
                    id:
                      type: string
                      description: Original message ID
                  additionalProperties: false
                attachmentBase64:
                  type: object
                  description: Base64 encoded media attachment
                  properties:
                    resourceId:
                      type: string
                      description: Uploaded media resource ID
                    fileName:
                      type: string
                      description: Original file name
                    fileMimeType:
                      type: string
                      description: MIME type
                    fileSize:
                      type: number
                      description: File size in bytes
                    fileType:
                      type: string
                      description: Attachment type
                  additionalProperties: false
              additionalProperties: false
      responses:
        '200':
          description: Message sent successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - message_generated_id
                properties:
                  message_generated_id:
                    type: string
                    description: Platform-generated message ID
                  sentMessage:
                    type: object
                    description: Returned only when initiator is bot or ai
                    properties:
                      message:
                        type: string
                      whatsappMessageResponse:
                        type: object
                        description: Raw platform response
                        additionalProperties: false
                    required:
                      - message
                      - whatsappMessageResponse
                    additionalProperties: false
                additionalProperties: false
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: header
      name: Cookie
      description: Personal access token from Pingmee Settings → Developer Tools
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Business API key from Pingmee Settings → Developer Tools

````