Skip to main content
POST
/
audience
/
{id}
/
members
Add audience members
curl --request POST \
  --url https://atoms-api.smallest.ai/api/v1/audience/{id}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "members": [
    {
      "phoneNumber": "+1234567890",
      "name": "John Doe",
      "email": "john@example.com"
    }
  ]
}'
{
  "status": true,
  "data": [
    {
      "message": "5 members added successfully",
      "data": {
        "added": 5,
        "skipped": 2
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the audience

Example:

"60d0fe4f5311236168a109ca"

Body

application/json
members
object[]
required

Array of member objects with dynamic structure based on audience configuration

Member data with keys matching the audience's CSV structure. Must include the phone number column.

Response

Members added successfully

status
boolean
Example:

true

data
object[]
I