Download OpenAPI specification:Download
API for managing email unsubscription
Retrieve a list of all unsubscribed email addresses with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
string Filter by email address | |
| company_namespace | Array of strings Company namespace for filtering |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "marketing",
- "newsletters"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Add an email address to the unsubscribe list
| email required | string <email> Email address to unsubscribe |
| reason | string Reason for unsubscribing |
| unsubscribe_types | Array of strings Default: ["all"] Types of emails to unsubscribe from |
| company_namespace | Array of strings Company namespace |
| user_agent | string User agent of the request |
| ip_address | string IP address of the request |
{- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "all"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string"
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "marketing",
- "newsletters"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific unsubscribe record by its ID
| id required | string Unsubscribe record ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "email": "user@example.com",
- "reason": "User requested unsubscribe",
- "unsubscribe_types": [
- "marketing",
- "newsletters"
], - "company_namespace": [
- "string"
], - "user_agent": "string",
- "ip_address": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Remove multiple email addresses from the unsubscribe list
| ids required | Array of strings Array of unsubscribe record IDs to remove |
{- "ids": [
- "string"
]
}{- "success": true
}Check if an email address is in the unsubscribe list
| email required | string <email> Email address to check |
{- "email": "user@example.com"
}{- "success": true,
- "data": {
- "is_unsubscribed": true,
- "unsubscribe_date": "2019-08-24T14:15:22Z"
}
}