POST
/
v1
/
subscriber_list
/
{list_id}
/
subscriber
/
add
curl --request POST \
  --url https://hub.suprsend.com/v1/subscriber_list/{list_id}/subscriber/add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "distinct_ids": [
    "_distinct_id1_"
  ]
}'
{
  "success": true,
  "affected_count": 0
}

Authorizations

Authorization
string
header
required

Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.

Path Parameters

list_id
string
default:_list_id_
required

Unique string idenitifier of the list to which user needs to be updated

Body

application/json
distinct_ids
string[]

Array of subscriber_ids, uniquely identifying the subscribers to be added to the list.

Response

201
application/json
201
success
boolean
Example:

true

affected_count
integer
Example:

2