Creating an Audience
Usecreate_audience with a list of phone numbers and optional contact names:
Phone numbers must use E.164 format:
+ followed by country code and number. Example: +916366821717Listing Audiences
list() returns all audiences with their campaign associations:
Viewing Members
get_members() returns a paginated list of contacts in the audience:
Adding Members
add_contacts() appends new contacts to an existing audience:
Deleting an Audience
delete() removes the audience and all its members:
SDK Reference
| Method | Description |
|---|---|
create(name, phone_numbers, names) | Create a new audience |
list() | List all audiences |
get(id) | Get a single audience |
get_members(id, page, offset) | Paginated member list |
add_contacts(id, phone_numbers, names) | Append contacts |
delete(id) | Remove an audience |
Tips
What phone number format should I use?
What phone number format should I use?
E.164 format is required:
+ followed by country code and number with no spaces or dashes. Example: +14155551234 for US, +916366821717 for India.Can I update existing member data?
Can I update existing member data?
Currently, you can add new members but not update existing ones. To change a contact’s info, delete and recreate the audience or add the corrected record (duplicates are skipped).
How many members can an audience have?
How many members can an audience have?
Audiences can scale to thousands of contacts. For very large lists, consider splitting into segments for easier management.
Why was my member skipped?
Why was my member skipped?
Members with duplicate phone numbers within the same audience are skipped. Check that each phone number is unique.

