JSON (Basic Contact)
Multipart Form Data (Extended Contact)
If you want to upload an avatar image, assign groups, or set status, you must send the request asmultipart/form-data. Example:
📝 Field Requirements
| 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). |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the workspace.
Body
application/json
The WhatsApp phone number of the contact
Example:
"+14155550123"
Maximum length:
50Example:
"John Doe"
Example:
Available options:
male, female, other Example:
"male"