Introduction

The Contacts category of the Sendflows API provides various endpoints to manage subscribers and perform operations related to subscriber management in the context of a mailing list. This category includes operations such as retrieving subscribers, creating new subscribers, updating subscriber information, adding tags to subscribers, finding subscribers by email, subscribing or unsubscribing subscribers, and deleting subscribers. This document provides detailed information on each API endpoint, including their functions, HTTP methods, and required parameters.

API Integration

To integrate with the Sendflows API in your application, you'll need to include the API token in each request as a parameter. The API token can be found in the "My Account" page within Sendflows.

For each API request, make sure to replace YOUR_API_TOKEN with your actual API token.

Examples

<?php
$apiToken = 'YOUR_API_TOKEN';
$endpoint = 'API_ENDPOINT'; // Replace with the actual API endpoint

// Make an API request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $endpoint . '?api_token=' . $apiToken);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

// Handle the API response
if ($response) {
// Process the response
} else {
// Handle error
}
?>