Audience
Add audience members
Changed onAdd new members to an existing audience.
Each member object must include a key matching the audience's phoneNumberColumnName. If it's missing, the API returns 400: "Each member must have a <phoneNumberColumnName> field". Adding members that would exceed the audience limit also returns 400.
Note: if the audience belongs to a different organization, the API returns 404 (not 403).
post/audience/{id}/members
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/audience/{id}/members
- AuthHTTP bearer
Path parameters
idstring required
Example:60d0fe4f5311236168a109ca
The unique identifier of the audience
Request body
Example request
{
"members": [
{
"phoneNumber": "+1234567890",
"name": "John Doe",
"email": "john@example.com"
}
]
}Response
Members added successfully
Example response
{
"status": true,
"data": [
{
"message": "5 members added successfully",
"data": {
"added": 5,
"skipped": 2
}
}
]
}Changes
- breaking
removed the media type
application/jsonfor the response with the status - info
removed the non-success response with the status
- breaking