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

# Send contacts message

> Sends a contact message to a phone number. Requires that the recipient has messaged the business in the last 24 hours.



## OpenAPI

````yaml POST /messages/contacts
openapi: 3.0.0
info:
  title: Cogfy Messenger Public API
  version: 1.0.0
  description: API for interacting with the Cogfy Messenger platform
servers:
  - url: https://messenger-public-api.cogfy.com
    description: Production server
  - url: http://localhost:53981
    description: Local server
security:
  - ApiKeyAuth: []
tags: []
paths:
  /messages/contacts:
    post:
      tags:
        - Messages
      summary: Send a contact message
      description: >-
        Sends a contact message to a phone number. Requires that the recipient
        has messaged the business in the last 24 hours.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - from
                - to
                - contacts
              properties:
                from:
                  type: string
                to:
                  type: string
                contacts:
                  type: array
                  minItems: 1
                  items:
                    type: object
                    required:
                      - name
                    properties:
                      name:
                        type: object
                        required:
                          - formatted_name
                        properties:
                          formatted_name:
                            type: string
                          first_name:
                            type: string
                          last_name:
                            type: string
                          middle_name:
                            type: string
                          suffix:
                            type: string
                          prefix:
                            type: string
                      phones:
                        type: array
                        items:
                          type: object
                          required:
                            - phone
                          properties:
                            phone:
                              type: string
                            type:
                              type: string
                            wa_id:
                              type: string
                      addresses:
                        type: array
                        items:
                          type: object
                          properties:
                            street:
                              type: string
                            city:
                              type: string
                            state:
                              type: string
                            zip:
                              type: string
                            country:
                              type: string
                            country_code:
                              type: string
                            type:
                              type: string
                      birthday:
                        type: string
                      emails:
                        type: array
                        items:
                          type: object
                          properties:
                            email:
                              type: string
                            type:
                              type: string
                      org:
                        type: object
                        properties:
                          company:
                            type: string
                          department:
                            type: string
                          title:
                            type: string
                      urls:
                        type: array
                        items:
                          type: object
                          properties:
                            url:
                              type: string
                            type:
                              type: string
      responses:
        '200':
          description: Audio message sent successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-key

````