Create or Update a Subscriber

Create a new subscriber or update an existing one in a specific list. This unified endpoint handles both creation and update operations based on the email provided.

πŸ” Create or Update a Subscriber

If the subscriber exists, their details will be updated. If not, a new subscriber will be created.


πŸ”Ή HTTP Request

Step 1 (Search):

GET API-URL/lists/LIST-UNIQUE-ID/subscribers/search-by-email

Step 2 (Update if exists):

PUT API-URL/lists/LIST-UNIQUE-ID/subscribers/SUBSCRIBER-UNIQUE-ID

Step 3 (Create if new):

POST API-URL/lists/LIST-UNIQUE-ID/subscribers

πŸ”Έ URL Segments

Segment
Required
Description

LIST-UNIQUE-ID

Yes

List unique identifier

SUBSCRIBER-UNIQUE-ID

Yes

Subscriber UID if found via email search


πŸ”Ž GET/PUT/POST Parameters

Parameter
Type
Required
Description

EMAIL

string

Yes

Email address used to identify subscriber

data

array

Yes

Fields to update or insert {name => value}


πŸ” Authorization Header


πŸ’» PHP Example


πŸ“¦ Sample JSON Response