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

# Document / Contact / Localisation

> Envoyez un document, un contact ou une localisation



## OpenAPI

````yaml api-reference/openapi.json POST /sessions/{sessionId}/messages/rich
openapi: 3.1.0
info:
  title: WaaConnect API
  description: >-
    API WhatsApp multi-sessions de WaaConnect. Toutes les routes de messagerie
    sont préfixées par /sessions/:sessionId/ et nécessitent le header x-api-key.
  version: 1.0.0
servers:
  - url: https://api.waaconnect.com/v1
security:
  - apiKey: []
paths:
  /sessions/{sessionId}/messages/rich:
    post:
      tags:
        - Messages
      summary: Document, contact ou localisation
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - to
              properties:
                to:
                  type: string
                isGroup:
                  type: boolean
                documentUrl:
                  type: string
                fileName:
                  type: string
                mimetype:
                  type: string
                contactName:
                  type: string
                contactPhone:
                  type: string
                latitude:
                  type: number
                longitude:
                  type: number
                locationName:
                  type: string
                locationAddress:
                  type: string
            examples:
              Document:
                value:
                  to: '22997000000'
                  documentUrl: https://example.com/docs/facture.pdf
                  fileName: facture.pdf
                  mimetype: application/pdf
              Contact:
                value:
                  to: '22997000000'
                  contactName: Aicha Sales
                  contactPhone: '22996000000'
              Localisation:
                value:
                  to: '22997000000'
                  latitude: 6.3703
                  longitude: 2.3912
                  locationName: Agence Cotonou
                  locationAddress: Boulevard Saint-Michel, Cotonou
      responses:
        '200':
          description: Message envoyé
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  id:
                    type: string
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````