---
updatedAt: 2026-10-30T08:42:32.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Add a new contact

Add a new contact. POST /api/ext/v3/contacts.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `contactsv3:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Contacts",
      "description": "Create, list, update, and look up contacts across channels."
    }
  ],
  "paths": {
    "/api/ext/v3/contacts": {
      "post": {
        "tags": [
          "Contacts"
        ],
        "summary": "Add a new contact",
        "operationId": "Contacts_AddContact",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddContactRequest"
              },
              "example": {
                "whatsapp_number": "1234567890",
                "name": "John Doe",
                "custom_params": [
                  {
                    "name": "age",
                    "value": "30"
                  },
                  {
                    "name": "city",
                    "value": "New York"
                  }
                ]
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddContactRequest"
              },
              "example": {
                "whatsapp_number": "1234567890",
                "name": "John Doe",
                "custom_params": [
                  {
                    "name": "age",
                    "value": "30"
                  },
                  {
                    "name": "city",
                    "value": "New York"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddContactRequest"
              },
              "example": {
                "whatsapp_number": "1234567890",
                "name": "John Doe",
                "custom_params": [
                  {
                    "name": "age",
                    "value": "30"
                  },
                  {
                    "name": "city",
                    "value": "New York"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddContactRequest"
              },
              "example": {
                "whatsapp_number": "1234567890",
                "name": "John Doe",
                "custom_params": [
                  {
                    "name": "age",
                    "value": "30"
                  },
                  {
                    "name": "city",
                    "value": "New York"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created contact.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactDto"
                },
                "example": {
                  "id": "507f1f77bcf86cd799439011",
                  "wa_id": "1234567890",
                  "name": "John Doe",
                  "phone": "+1234567890",
                  "photo": "https://example.com/photos/johndoe.jpg",
                  "created": "2024-01-15T10:30:00Z",
                  "last_updated": "2024-02-10T14:45:00Z",
                  "contact_status": "active",
                  "source": "manual",
                  "channel_id": "channel_123",
                  "ig_phone_source": "profile",
                  "mg_phone_source": "profile",
                  "opted_in": true,
                  "allow_broadcast": true,
                  "allow_sms": false,
                  "teams": [
                    "Team A",
                    "Team B"
                  ],
                  "segments": [],
                  "custom_params": [
                    {
                      "name": "customer_tier",
                      "value": "gold"
                    },
                    {
                      "name": "preferred_language",
                      "value": "en"
                    }
                  ],
                  "channel_type": "whatsapp",
                  "display_name": "John D.",
                  "contact_link": {
                    "whats_app_contact_id": "507f191e810c19729de860ec",
                    "instagram_contact_id": "507f191e810c19729de860ed",
                    "messenger_contact_id": "507f191e810c19729de860ee"
                  },
                  "is_broadcast_limit_reached": false
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "The request is unauthorized."
          },
          "403": {
            "description": "The request is forbidden. Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenRequestResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Either the rate limit has been exceeded or usage limits have been reached."
          },
          "500": {
            "description": "Unexpected error occurred. Please try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnexpectedErrorResponse"
                }
              }
            }
          }
        },
        "description": "Add a new contact. POST /api/ext/v3/contacts.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `contactsv3:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "contactsv3:write"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AddContactRequest": {
        "required": [
          "name",
          "whatsapp_number"
        ],
        "type": "object",
        "properties": {
          "whatsapp_number": {
            "type": "string",
            "description": "The WhatsApp number of the contact to be added."
          },
          "name": {
            "type": "string",
            "description": "The name of the contact."
          },
          "custom_params": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomParamDto"
            },
            "description": "Optional list of custom parameters associated with the contact.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for adding a new contact."
      },
      "ContactDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the contact.",
            "nullable": true
          },
          "wa_id": {
            "type": "string",
            "description": "WhatsApp identifier for the contact.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The contact's name.",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "The contact's phone number.",
            "nullable": true
          },
          "photo": {
            "type": "string",
            "description": "URL or path to the contact's photo.",
            "nullable": true
          },
          "created": {
            "type": "string",
            "description": "The date and time when the contact was created.",
            "format": "date-time"
          },
          "last_updated": {
            "type": "string",
            "description": "The date and time when the contact was last updated.",
            "format": "date-time"
          },
          "contact_status": {
            "type": "string",
            "description": "The current status of the contact.",
            "nullable": true
          },
          "source": {
            "type": "string",
            "description": "The source where the contact originated from.",
            "nullable": true
          },
          "channel_id": {
            "type": "string",
            "description": "The identifier of the channel associated with the contact.",
            "nullable": true
          },
          "ig_phone_source": {
            "type": "string",
            "description": "Instagram phone source information.",
            "nullable": true
          },
          "mg_phone_source": {
            "type": "string",
            "description": "Messenger phone source information.",
            "nullable": true
          },
          "opted_in": {
            "type": "boolean",
            "description": "Indicates whether the contact has opted in for communications."
          },
          "allow_broadcast": {
            "type": "boolean",
            "description": "Indicates whether the contact allows broadcast messages."
          },
          "allow_sms": {
            "type": "boolean",
            "description": "Indicates whether the contact allows SMS messages."
          },
          "teams": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of team associated with the contact.",
            "nullable": true
          },
          "segments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of segments the contact belongs to.",
            "nullable": true
          },
          "custom_params": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomParamDto"
            },
            "description": "List of custom parameters associated with the contact.",
            "nullable": true
          },
          "channel_type": {
            "type": "string",
            "description": "The type of channel (e.g., whatsapp, instagram, messenger).",
            "nullable": true
          },
          "display_name": {
            "type": "string",
            "description": "The display name for the contact.",
            "nullable": true
          },
          "contact_link": {
            "$ref": "#/components/schemas/ContactLinkDto"
          },
          "is_broadcast_limit_reached": {
            "type": "boolean",
            "description": "Indicates whether the broadcast limit has been reached for this contact.",
            "nullable": true
          },
          "instagram_conversation_id": {
            "type": "string",
            "nullable": true,
            "description": "The associated Instagram conversation identifier, if available."
          },
          "messenger_conversation_id": {
            "type": "string",
            "nullable": true,
            "description": "The associated Messenger conversation identifier, if available."
          }
        },
        "additionalProperties": false,
        "description": "Represents a contact object."
      },
      "ContactLinkDto": {
        "type": "object",
        "properties": {
          "whats_app_contact_id": {
            "type": "string",
            "description": "The contact identifier for WhatsApp.",
            "nullable": true
          },
          "instagram_contact_id": {
            "type": "string",
            "description": "The contact identifier for Instagram.",
            "nullable": true
          },
          "messenger_contact_id": {
            "type": "string",
            "description": "The contact identifier for Messenger.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents linked contact information across different messaging platforms."
      },
      "CustomParamDto": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the custom parameter."
          },
          "value": {
            "type": "string",
            "description": "The value of the custom parameter."
          }
        },
        "additionalProperties": false,
        "description": "Custom parameter key-value pair."
      },
      "ForbiddenRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a forbidden request, containing error details."
      },
      "InvalidRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a bad request, containing error details."
      },
      "UnexpectedErrorResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents an unexpected error."
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```