Create a Subscriber
Create a new subscriber in a specific list by submitting their email and any additional custom fields. A confirmation email will be triggered based on the list configuration.
π Create a Subscriber
Add a subscriber to your list with custom field data such as email, first name, and last name.
πΉ HTTP Request
POST API-URL/lists/LIST-UNIQUE-ID/subscribersπΈ URL Segments
Segment
Required
Description
LIST-UNIQUE-ID
Yes
List unique identifier.
π€ POST Parameters
Parameter
Type
Required
Description
data
array
Yes
Associative array with custom fields. EMAIL is mandatory.
π Authorization Header
X-API-KEY: your-api-key-hereπ» PHP Example
// ADD SUBSCRIBER
$response = $endpoint->create('LIST-UNIQUE-ID', [
'EMAIL' => '[email protected]', // the confirmation email will be sent!!! Use valid email address
'FNAME' => 'Linda',
'LNAME' => 'Smith'
]);
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';