Create a new contact in the workspace.
multipart/form-data. Example:
| Field | Type | Required | Notes |
|---|---|---|---|
number | string | Yes | WhatsApp phone number (must be unique in workspace). |
name | string (max 50) | No | Contact’s display name. Defaults to Unknown if not provided. |
email | string (email) | No | Contact’s email address. |
gender | enum(male,female,other) | No | Gender of contact. |
status | boolean | No | Defaults to true. Only available in form-data requests. |
avatar | file (image, ≤2MB) | No | Upload contact avatar (form-data only). |
contact_groups | array of integers | No | Group IDs to assign contact into (form-data only, workspace scoped). |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the workspace.
The WhatsApp phone number of the contact
"+14155550123"
50"John Doe"
male, female, other "male"