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

# Send Facebook Message

> Send a Facebook Messenger DM. The route auto-detects whether to use the Meta Graph API or GoHighLevel based on the source of the last inbound Facebook message from this contact. Message text supports `{{contact.*}}`/`{{company.*}}` variables.



## OpenAPI

````yaml POST /contact/send/facebook/
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /contact/send/facebook/:
    post:
      tags:
        - contact
      summary: Send Facebook Message to Contact
      description: >-
        Send a Facebook Messenger DM. The route auto-detects whether to use the
        Meta Graph API or GoHighLevel based on the source of the last inbound
        Facebook message from this contact. Message text supports
        `{{contact.*}}`/`{{company.*}}` variables.
      operationId: contact_send_facebook_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendFacebookRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SendFacebookRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SendFacebookRequestRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendFacebookResponse'
          description: ''
        '400':
          description: Missing field, contact lacks PSID/conversation, or invalid state.
        '404':
          description: Contact, Meta integration, or GHL integration not found.
        '500':
          description: Provider send failed.
      security:
        - jwtAuth: []
        - {}
components:
  schemas:
    SendFacebookRequestRequest:
      type: object
      properties:
        contact_id:
          type: string
          format: uuid
        message:
          type: string
          minLength: 1
      required:
        - contact_id
        - message
    SendFacebookResponse:
      type: object
      properties:
        message_id:
          type: string
          nullable: true
          description: Provider message ID.
        thread_message_id:
          type: string
          format: uuid
        source:
          $ref: '#/components/schemas/SourceEnum'
        status:
          type: string
      required:
        - message_id
        - source
        - status
        - thread_message_id
    SourceEnum:
      enum:
        - meta
        - ghl
      type: string
      description: |-
        * `meta` - meta
        * `ghl` - ghl
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````