Subscriber API
Subscriber Assign Custom Fields
Set one or more custom field values on a subscriber via the ChatSyncs API, using a JSON object of field name/value pairs. Use when a developer asks how to sync CRM data into a subscriber’s custom fields.
POST
Assign Custom Fields
Sets custom field values on a subscriber. See
Subscriber Manager’s Custom Fields for what
a custom field is and the available types (Text, Number, Date, Email, Phone).
The
The custom_fields JSON format
custom_fields is a single JSON object — each key is an existing custom field’s name, and
each value is what you want to set it to, matching that field’s type:
| Field type | Example key | Example value |
|---|---|---|
| Text | "city" | "Bangalore" |
| Number | "age" | 28 (no quotes) |
| Date | "date_of_birth" | "1998-05-20" (as text, YYYY-MM-DD) |
"email" | "rahul@example.com" | |
| Phone | "phone" | "919999999999" (as text, digits only) |
The field must already exist — check Custom Fields List
for valid names, or create one first in Subscriber Manager → Manage → Manage Custom Fields.
You only need to include the fields you’re updating — any field you leave out is unaffected.
Body
application/x-www-form-urlencoded
Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.
Example:
"API-KEY"
The WhatsApp account's phone number ID. Where to find it.
Example:
"PHONE-NUMBER-ID"
The subscriber's phone number, with country code, digits only.
Example:
"PHONE-NUMBER"
A JSON object of custom field names and values.
Example:
"{\"custom_field_name1\":\"value1\"}"
Assign Custom Fields

