> ## 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.

# Créer / mettre à jour un contact

> Upsert par JID — fournissez jid ou phone



## OpenAPI

````yaml api-reference/openapi.json POST /contacts
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:
  /contacts:
    post:
      tags:
        - Contacts
      summary: Créer un contact
      description: Crée ou met à jour un contact (upsert par JID). Fournissez jid ou phone.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                phone:
                  type: string
                  description: Sans +, converti en JID automatiquement
                jid:
                  type: string
                name:
                  type: string
                email:
                  type: string
                tags:
                  type: array
                  items:
                    type: string
                variables:
                  type: object
            example:
              phone: '22997000000'
              name: Aicha
              email: aicha@example.com
              tags:
                - vip
                - client
              variables:
                commande: CMD-001
                ville: Cotonou
      responses:
        '200':
          description: Contact créé/mis à jour
          content:
            application/json:
              example:
                id: cluid123
                jid: 22997000000@s.whatsapp.net
                phone: '22997000000'
                name: Aicha
                email: aicha@example.com
                tags:
                  - vip
                  - client
                variables:
                  commande: CMD-001
                isBlocked: false
                firstSeenAt: '2026-05-27T10:00:00.000Z'
                lastSeenAt: '2026-05-27T10:00:00.000Z'
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````