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

# Crée un contact

> Crée un contact ; 409 si son e-mail ou son numéro est connu



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/contacts
openapi: 3.1.0
info:
  title: API DexNotify
  version: '1'
  description: >-
    SMS, e-mail, WhatsApp, notifications push, contacts et campagnes, par une
    seule API. Authentification par clé API dans l’en-tête `x-api-key`.
servers:
  - url: https://api.dexnotify.com
    description: Production et staging
security:
  - api-key: []
tags:
  - name: SMS
  - name: E-mail
  - name: WhatsApp
  - name: Contacts
  - name: Listes de contacts
  - name: Campagnes
  - name: Modèles e-mail
  - name: Automatisations
  - name: Notifications push
  - name: Campagnes push
  - name: Journal des messages
  - name: In-app
  - name: Live Activities
  - name: Utilisateurs et appareils
  - name: Segments
  - name: Modèles push
  - name: Événements
  - name: Statistiques
paths:
  /api/v1/contacts:
    post:
      tags:
        - Contacts
      summary: Crée un contact ; 409 si son e-mail ou son numéro est connu
      operationId: ContactBaseController_create_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                firstName:
                  type: string
                  minLength: 1
                  maxLength: 120
                lastName:
                  type: string
                  minLength: 1
                  maxLength: 120
                name:
                  type: string
                  minLength: 1
                  maxLength: 120
                email:
                  type: string
                  maxLength: 254
                phone:
                  type: string
                address:
                  type: object
                  properties:
                    line:
                      type: string
                      minLength: 1
                      maxLength: 200
                    city:
                      type: string
                      minLength: 1
                      maxLength: 100
                    country:
                      type: string
                attributes:
                  default: {}
                  type: object
                  propertyNames:
                    type: string
                    pattern: ^[A-Za-z_][A-Za-z0-9_]{0,31}$
                  additionalProperties:
                    type: string
                    maxLength: 200
                tags:
                  default: []
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 40
                listIds:
                  default: []
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    pattern: ^[0-9a-fA-F]{24}$
                subscriptions:
                  default: {}
                  type: object
                  properties:
                    email:
                      type: string
                      enum:
                        - subscribed
                        - unsubscribed
                        - unknown
                    sms:
                      type: string
                      enum:
                        - subscribed
                        - unsubscribed
                        - unknown
      responses:
        '201':
          description: Contact créé
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Clé API du projet, créée dans le dashboard (Développeurs › Clés API et
        SDK). Une clé `dxn_prod_` vise la production, une clé `dxn_stag_` le
        staging.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.