Loading...
Loading...
Manage your contacts programmatically. Create, update, list and delete contacts via the API.
Required permissions: readContacts for GET requests,writeContacts for POST, PUT, DELETE requests.
/api/v1/contactsList all contacts with pagination and filtering
| page | Page number (default: 1) |
| limit | Items per page (default: 20, max: 100) |
| Filter by email (partial match) | |
| tag | Filter by tag |
| unsubscribed | Filter by subscription status (true/false) |
curl -X GET "https://yourapp.com/api/v1/contacts?page=1&limit=20&tag=newsletter" \ -H "Authorization: Bearer ntfn_your_api_key"
{
"success": true,
"contacts": [
{
"id": "507f1f77bcf86cd799439011",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"tags": ["newsletter", "customer"],
"customFields": { "company": "Acme Inc" },
"unsubscribed": false,
"createdAt": "2024-01-15T10:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 150,
"pages": 8
}
}/api/v1/contactsCreate a new contact
| email * | Contact email address |
| firstName | First name |
| lastName | Last name |
| tags | Array of tags |
| customFields | Object with custom field values |
curl -X POST "https://yourapp.com/api/v1/contacts" \
-H "Authorization: Bearer ntfn_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"email": "newuser@example.com",
"firstName": "Jane",
"lastName": "Smith",
"tags": ["lead", "webinar"],
"customFields": {
"company": "Tech Corp",
"source": "website"
}
}'/api/v1/contactsUpdate an existing contact by ID or email
| id or email * | Contact identifier |
| firstName | Updated first name |
| lastName | Updated last name |
| tags | Replace all tags |
| customFields | Merge with existing custom fields |
curl -X PUT "https://yourapp.com/api/v1/contacts" \
-H "Authorization: Bearer ntfn_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"tags": ["customer", "premium"],
"customFields": { "plan": "enterprise" }
}'/api/v1/contactsDelete a contact by ID or email
| id or email * | Contact identifier |
curl -X DELETE "https://yourapp.com/api/v1/contacts?email=user@example.com" \ -H "Authorization: Bearer ntfn_your_api_key"