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

Response

200
application/json

Members added successfully

The response is of type object.