POST
/
v1
/
subscriber_list
/
{list_id}
/
version
/
{version_id}
/
subscriber
/
add
curl --request POST \
  --url https://hub.suprsend.com/v1/subscriber_list/{list_id}/version/{version_id}/subscriber/add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "distinct_ids": [
    "user1"
  ]
}'
{
  "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

version_id
string
default:__version_id__
required

Unique string idenitifier of the draft version 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