List API Documentation ​
List management endpoints for creating, updating, and managing email subscriber lists and their integration settings.
Create a List ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Create - Legacy endpoint access via
/api.phponly (no v1 REST alias configured) - The endpoint is additive and backwards-compatible. Callers passing only
SubscriberListNamecontinue to receive the original response shape (noConfirmationEmailIDfield present).
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.create |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListName | String | Yes | Name of the subscriber list to create |
| Description | String | No | Optional human-readable description for the list |
| OptInMode | String | No | Single (default) or Double. Auto-promoted to Double when ConfirmationEmail is supplied or when the user group has ForceOptInList enabled. |
| SenderName | String | No | List-level default sender name |
| SenderEmailAddress | String | No | List-level default sender email address |
| SenderCompany | String | No | List-level default sender company |
| SenderAddress | String | No | List-level default sender postal address |
| ConfirmationEmail | Object | No | Optional confirmation-email block. When supplied, the handler atomically creates the email row, links it to the list via RelOptInConfirmationEmailID, and returns the new ConfirmationEmailID in the response. OptInMode is auto-promoted to Double. See sub-fields below. Sending this key with an empty object/array opts you into the bundled flow and surfaces a missing-required-field error — it does NOT silently fall back to the legacy single-parameter behavior. |
ConfirmationEmail sub-fields:
| Sub-field | Type | Required When Present | Description |
|---|---|---|---|
| Subject | String | Yes | Email subject line |
| FromName | String | Yes | Sender name |
| FromEmail | String | Yes | Sender email address |
| ContentType | String | Yes | One of HTML, Plain, or Both |
| HTMLContent | String | Yes when ContentType is HTML or Both | HTML body |
| PlainContent | String | Yes when ContentType is Plain or Both | Plain-text body |
| ReplyToName | String | No | Reply-to display name |
| ReplyToEmail | String | No | Reply-to email address |
| PreHeaderText | String | No | Inbox preview text |
| EmailName | String | No | Internal email label. Defaults to Confirmation email: {ListID} |
| Mode | String | No | One of Editor, Stripo, Unlayer, Empty, Template, Import. Defaults to Empty. |
| RelTemplateID | Integer | Required when Mode is Template | Existing email-template ID to base the confirmation email on. |
Atomicity: When the bundled path is used and any step fails (validation, email creation, link update), the handler rolls back: it deletes the new email row, deletes the new list row, and drops the dynamic oempro_subscribers_<ListID> table. The caller sees an error response with no orphaned rows.
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.create",
"SessionID": "your-session-id",
"SubscriberListName": "My New List",
"Description": "Customers who signed up via the spring 2026 promotion"
}'curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.create",
"SessionID": "your-session-id",
"SubscriberListName": "Newsletter — Double Opt-In",
"Description": "Subscribers who must confirm via email before receiving campaigns",
"OptInMode": "Double",
"SenderName": "Acme Marketing",
"SenderEmailAddress": "marketing@acme.example",
"SenderCompany": "Acme Inc.",
"SenderAddress": "123 Main St, Anytown",
"ConfirmationEmail": {
"Subject": "Please confirm your subscription",
"FromName": "Acme Marketing",
"FromEmail": "marketing@acme.example",
"ContentType": "Both",
"HTMLContent": "<p>Hi, click <a href=\"%Link:Confirm%\">here</a> to confirm.</p>",
"PlainContent": "Hi, click %Link:Confirm% to confirm your subscription.",
"PreHeaderText": "Confirm your newsletter signup",
"Mode": "Editor"
}
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123
}{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 124,
"ConfirmationEmailID": 567
}{
"Success": false,
"ErrorCode": [1, 3]
}0: Success
1: Missing subscriber list name
3: User has exceeded maximum number of subscriber lists allowed by their user group
20: Invalid optinmode (must be Single or Double)
21: Missing required confirmationemail sub-field (subject, fromname, fromemail, or contenttype)
22: Invalid confirmationemail.contenttype (must be HTML, Plain, or Both)
23: confirmationemail.htmlcontent is required when contenttype is HTML or Both
24: confirmationemail.plaincontent is required when contenttype is Plain or Both
25: Invalid confirmationemail.mode (must be Editor, Stripo, Unlayer, Empty, Template, or Import)
26: confirmationemail.reltemplateid is required when confirmationemail.mode is Template
27: confirmationemail.fromemail is on the administrator's forbidden From addresses list. Checked before the list is created, so nothing is written. Added in v6.0.2
28: SenderEmailAddress is on the administrator's forbidden From addresses list. Checked before the list is created, so nothing is written. Added in v6.0.2
30: Confirmation email creation failed; list and email were rolled backGet a List ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.get |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | ID of the list to retrieve |
| GetStats | Boolean | No | Whether to include statistics (default: false) |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.get",
"SessionID": "your-session-id",
"ListID": 123,
"GetStats": true
}'{
"Success": true,
"ErrorCode": 0,
"List": {
"ListID": 123,
"Name": "My List",
"RelOwnerUserID": 1,
"EventListTrackerID": "abc123",
"EventUserTrackerID": "xyz789",
"EventTrackerVariables": {},
"EventTrackerJS": "...",
"EventTrackerProperties": [],
"LastEventTrackedAt": "2024-01-15 10:30:00"
}
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: Missing list IDResponse notes:
List.Optionsis returned as a decoded JSON object (not a JSON string).- When
Options.ClickBankINSis present (#1897), the at-rest-encrypted secret is redacted on the way out: the encrypted blob is removed and replaced withSecretKeyMasked—"********"when a secret is set,""when not set. Update vialist.updatewithSecretKey: "__unchanged__"to preserve the existing value.
Update a List ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Update - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.update |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the list to update |
| Name | String | No | New name for the list |
| Description | String | No | Description for the list. Pass an empty string to clear it. |
| SenderName | String | No | Default sender name for campaigns |
| SenderEmailAddress | String | No | Default sender email address |
| SenderCompany | String | No | Sender company name |
| SenderAddress | String | No | Sender physical address |
| OptInMode | String | No | Opt-in mode: "Single" or "Double" |
| OptInConfirmationEmailID | Integer | No | Email ID for double opt-in confirmation |
| OptOutAddToSuppressionList | String | No | Add to list suppression list on unsubscribe: "Yes" or "No" |
| OptOutAddToGlobalSuppressionList | String | No | Add to global suppression list on unsubscribe: "Yes" or "No" |
| HideInSubscriberArea | String | No | Hide list in subscriber area: "true" or "false" |
| SendServiceIntegrationFailedNotification | String | No | Send integration failure notifications: "true" or "false" |
| SendActivityNotification | String | No | Send activity notifications: "true" or "false" |
| SubscriptionConfirmationPendingPageURL | String | No | URL for confirmation pending page |
| SubscriptionConfirmedPageURL | String | No | URL for subscription confirmed page |
| SubscriptionErrorPageURL | String | No | URL for subscription error page |
| UnsubscriptionConfirmedPageURL | String | No | URL for unsubscription confirmed page |
| UnsubscriptionErrorPageURL | String | No | URL for unsubscription error page |
| ReqByEmailSearchToAddress | String | No | Email address for subscription by email requests |
| ReqByEmailSubscriptionCommand | String | No | Command word for email subscription requests |
| ReqByEmailUnsubscriptionCommand | String | No | Command word for email unsubscription requests |
| SyncStatus | String | No | Changed in v6.0.8 Legacy MySQL sync status: "Enabled" or "Disabled". Still accepted, but has no effect: the legacy sync was replaced by List Sync. This and the other Sync parameters below only write inert columns |
| SyncPeriod | String | No | Synchronization period |
| SyncSendReportEmail | String | No | Send sync report emails: "Yes" or "No" |
| SyncMySQLHost | String | No | MySQL host for data synchronization |
| SyncMySQLPort | Integer | No | MySQL port for data synchronization |
| SyncMySQLUsername | String | No | MySQL username for sync |
| SyncMySQLPassword | String | No | Changed in v6.0.8 Accepted but no longer stored. The column is always blank |
| SyncMySQLDBName | String | No | MySQL database name for sync |
| SyncMySQLQuery | String | No | SQL query for data synchronization |
| SyncFieldMapping | String | No | Field mapping configuration for sync |
| OptOutScope | String | No | Unsubscription scope: "This list" or "All lists" |
| OptOutSubscribeTo | Integer | No | List ID to subscribe to on unsubscription |
| OptOutUnsubscribeFrom | Integer | No | List ID to unsubscribe from on unsubscription |
| OptInSubscribeTo | Integer | No | List ID to subscribe to on subscription |
| OptInUnsubscribeFrom | Integer | No | List ID to unsubscribe from on subscription |
| Options | Object | No | Additional list options (JSON object). Supported keys: DoNotSendEmailCampaignIfRecipientIsEnrolledInJourneyOrAutoresponder (Boolean), PlainEmailHeader (String), PlainEmailFooter (String), HTMLEmailHeader (String), HTMLEmailFooter (String), ClickBankINS (Object — see below). Inner keys are matched case-insensitively, but values are always persisted under the canonical CamelCase keys shown here. Partial updates merge with the row's existing Options — keys you don't include in the payload are preserved. Email header/footer options override user-level settings for emails sent to this list. |
| Options.ClickBankINS | Object | No | ClickBank INS (Instant Notification Service) integration config for this list (#1897). Supported sub-keys: Enabled (Boolean), SecretKey (String — exactly 8 chars, or sentinel __unchanged__ to preserve the existing encrypted secret, or empty string to clear), TriggerAutomation (Boolean — fires autoresponders/journeys/web-service hooks on ClickBank-sourced subscribers), TransactionTypeActions (Object — map of ClickBank txn type to action; allowed types: SALE, BILL, RFND, CGBK, INSF, CANCEL-REBILL, UNCANCEL-REBILL, TEST; allowed actions: subscribe, unsubscribe, ignore), FieldMapping (Object — map of ClickBank source field to target; each entry is { "type": "builtin", "target": "EmailAddress" } for the email built-in or { "type": "customfield", "target": <CustomFieldID> } for a per-list custom field; allowed source keys: email, firstName, lastName, receipt, productTitle, itemNo, accountAmount, currency, phone, country, city, state, zip, address, affiliate, transactionType, lastTransactionAt). The secret is encrypted at rest via the Crypto class and never returned by list.get (use __unchanged__ on update to keep the existing value). |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.update",
"SessionID": "your-session-id",
"SubscriberListID": 123,
"Name": "Updated List Name",
"OptInMode": "Double",
"SenderName": "My Company",
"SenderEmailAddress": "sender@example.com"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"List": {
"ListID": 123,
"Name": "Updated List Name",
"OptInMode": "Double",
"SenderName": "My Company",
"SenderEmailAddress": "sender@example.com"
}
}{
"Success": false,
"ErrorCode": [1, 2, 3, 4]
}0: Success
1: Missing subscriber list ID
2: Invalid subscriber list ID
3: Invalid opt-in mode
4: Invalid opt-out scope
5: Invalid send notification setting
6: Invalid hide in subscriber area setting
8: Missing sync configuration parameters
9: Invalid email address format for ReqByEmailSearchToAddress
10: Invalid suppression list option
11: Nothing to update
20: ClickBank secret key encryption failed
21: ClickBank secret key must be exactly 8 characters
22: ClickBank transaction-type action must be one of: subscribe, unsubscribe, ignore
23: Invalid subscriber list id for <FieldName> (v6.0.0)
24: Invalid email id for <FieldName> (v6.0.0)
25: SenderEmailAddress is on the administrator's forbidden From addresses list. The list is not changed. Sending back the address the list already stores is not refused. Added in v6.0.2Behavior change (v6.0.0): the behaviour columns are validated
OptInSubscribeTo, OptInUnsubscribeFrom, OptOutSubscribeTo and OptOutUnsubscribeFrom used to accept a list id belonging to another account and store it, and OptInConfirmationEmailID used to accept another account's email id. The stored id was then dereferenced with no owner filter, and the subscribe path is reachable from the unauthenticated subscriber.subscribe, so a foreign list id could be used to inject addresses into another account's list.
All five are now validated against the caller before the update runs, so a refused call leaves every column unchanged. ErrorCode 23 covers the four list ids and ErrorCode 24 covers the confirmation email id. Both are also returned when the value is present but is not a digits-only id.
These five columns are integers, so the value that is validated is now also the value that is stored: the endpoint writes the canonical integer rather than the raw request string. 0 and an empty string still clear the field, which is the documented way to turn a behaviour off, and an id the caller owns is stored exactly as before.
:::
Archive a List ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Update - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Marks a list as archived by setting its ArchivedAt timestamp. Archived lists are hidden from lists.get by default (use Archived=true or Archived=all to retrieve them). Idempotent: re-archiving a list keeps the original ArchivedAt timestamp untouched.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.archive |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the list to archive |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.archive",
"SessionID": "your-session-id",
"SubscriberListID": 123
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": ""
}{
"Success": false,
"ErrorCode": [2],
"ErrorText": ["Invalid subscriber list id"]
}0: Success
1: Missing subscriber list id
2: Invalid subscriber list id (not found or not owned by the authenticated user)Unarchive a List ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Update - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Clears the ArchivedAt timestamp on a list, restoring it to active state.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.unarchive |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the list to unarchive |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.unarchive",
"SessionID": "your-session-id",
"SubscriberListID": 123
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": ""
}{
"Success": false,
"ErrorCode": [2],
"ErrorText": ["Invalid subscriber list id"]
}0: Success
1: Missing subscriber list id
2: Invalid subscriber list id (not found or not owned by the authenticated user)Clone a List ​
POST/api/v1/list.cloneAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Create - Legacy endpoint access via
/api.phpis also supported
Duplicates an existing subscriber list, including its full custom-field schema. The new list is seeded from every settings column on the source row except identity, denormalized counters, and the confirmation-email link.
What is cloned
- All list configuration columns (sender info, sync settings, opt-out behavior, redirection URLs, etc.).
- All custom fields on the source list, with the complete column set (including
Option1–Option5,MergeTagAlias, andMeta). SetIncludeCustomFields=falseto skip custom-field replication.
What is not cloned
ListID,CreatedOn,LastActivityAt,ArchivedAt(auto-managed).ActiveSubscriberCount,SegmentCount(denormalized counters; the new list starts empty).RelOptInConfirmationEmailID(left unset on the new list — calllist.updateafterwards if you need to attach a confirmation email).- Subscribers (the new list's subscriber table is created empty).
OptInMode is carried over from the source list. If the user's group has ForceOptInList=Enabled, OptInMode is overridden to Double, matching list.create.
Atomicity
If any custom-field replication fails, the new list is deleted (along with its dynamic subscribers and tags tables) and ErrorCode: [4] is returned. When IncludeCustomFields=false, the call degenerates to a single list creation with no rollback path.
Plug-in hook
Plugins::HookListener('Action', 'List.Create.Post', ...) fires for the new list with the same payload shape as list.create.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.clone |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the source list to clone |
| Name | String | Yes | Name for the new (cloned) list |
| IncludeCustomFields | Boolean | No | Replicate the source list's custom fields. Default: true |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.clone",
"SessionID": "your-session-id",
"SubscriberListID": 123,
"Name": "My cloned list",
"IncludeCustomFields": true
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 456,
"CustomFieldsCloned": 7
}{
"Success": false,
"ErrorCode": [2],
"ErrorText": ["Invalid subscriber list id"]
}0: Success
1: Missing source subscriber list id
2: Missing new list name (or invalid source list — not found or not owned by the authenticated user)
3: Subscriber list quota exceeded (LimitLists group setting)
4: Failed to clone the list (e.g. custom-field replication failed; the new list has been rolled back)Get All Lists ​
GET/api/v1/lists.getAPI Usage Notes
- Authentication required: User API Key. Admin authentication is also accepted with
Access=adminandUserID(see Admin usage below) - Required permissions:
Lists.Get - v1 REST alias:
GET /api/v1/lists.get. Legacy access via/api.phpis also supported
Returns the authenticated user's subscriber lists with full per-row metadata. Supports pagination, free-text search across Name and Description, and filtering by archive state.
Admin usage (v5.9.6, #2775)
This command also accepts admin authentication. Pass AdminAPIKey (or an admin SessionID), Access=admin, and UserID naming the account to act on; the response is exactly what that account's own API key would receive. Without Access=admin the call is treated as a user call, so existing integrations are unaffected. UserID is ignored under user authentication. Admin-only error codes: 5001 UserID missing or invalid, 5002 user not found, 5003 user outside the user groups a restricted sub-admin may access. Requires the User.Edit privilege when ADMIN_API_ENFORCE_PRIVILEGES is on.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: lists.get |
| UserID | Integer | Admin only | Account to act on when calling with admin authentication and Access=admin. Ignored under user authentication (v5.9.6, #2775) |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| RecordsPerRequest | Integer | No | Number of records per page (default: 0 = all) |
| RecordsFrom | Integer | No | Starting record offset (default: 0) |
| OrderField | String | No | Field to order by (default: ListID). Possible values: ListID, Name, CreatedOn, ArchivedAt, ActiveSubscriberCount, SegmentCount, LastActivityAt. Any other value falls back to the default. |
| OrderType | String | No | Sort direction: ASC or DESC (default: ASC). Any other value falls back to the default. |
| Search | String | No | Case-insensitive substring match against Name and Description. Empty string disables the filter. |
| Archived | String | No | Archive-state filter (default: false). Possible values: false (only active lists), true (only archived lists), all (no filter). |
Response Shape
Each row returned in Lists includes every column from oempro_subscriber_lists (ListID, Name, Description, OptInMode, CreatedOn, ArchivedAt, ActiveSubscriberCount, SegmentCount, LastActivityAt, sender fields, sync fields, opt-in/opt-out URLs, etc.) plus the following computed fields:
| Field | Type | Description |
|---|---|---|
SubscriberCount | Integer | Active subscribers (Subscribed, non-Hard-bounced). 5-minute Redis cache. Identical to ActiveSubscriberCount for sort consistency, kept for backwards compatibility. |
ActiveSubscriberCount | Integer | Denormalized active subscriber count (column on the list row). Maintained via write-through on Subscribers::GetActiveTotal cache miss. Eventually consistent within the 5-minute Redis cache TTL. Sortable. |
SegmentCount | Integer | Denormalized segment count. Maintained atomically by Segments::Create / Segments::Delete. Sortable. |
LastActivityAt | String | null | Most recent list activity timestamp (subscription, unsubscription, import, bounce, send). Maintained at the Statistics::UpdateListActivityStatistics chokepoint. Null until the first activity. Sortable. |
EncryptedSaltedListID | String | md5(MD5_SALT . ListID) – useful for read-only public links. |
SyncLastDateTime | String | Localized "Never" placeholder substituted when the underlying value is 0000-00-00 00:00:00. |
EventListTrackerID | String | Hashids-encoded list ID for the website event tracker. |
EventUserTrackerID | String | Hashids-encoded user ID for the website event tracker. |
EventTrackerVariables | Object | Configuration object for the website event tracker JS. |
EventTrackerJS | String | Pre-rendered <script>…</script> block for the website event tracker. |
Options | Object | null | Decoded JSON of list-level options (e.g. PlainEmailHeader, HTMLEmailFooter, DoNotSendEmailCampaignIfRecipientIsEnrolledInJourneyOrAutoresponder). Returned as a decoded object, matching the list.get response. |
TotalListCount reflects the filtered total (i.e. it respects Search and Archived), so paginated callers can use it as the basis for page counts.
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "lists.get",
"SessionID": "your-session-id",
"RecordsPerRequest": 20,
"RecordsFrom": 0,
"OrderField": "Name",
"OrderType": "ASC",
"Search": "newsletter",
"Archived": "false"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"TotalListCount": 5,
"Lists": [
{
"ListID": 123,
"Name": "Spring Newsletter",
"Description": "Customers from the spring 2026 promotion",
"ArchivedAt": null,
"RelOwnerUserID": 1,
"OptInMode": "Single",
"CreatedOn": "2026-04-01 09:12:33",
"SubscriberCount": 12345,
"Options": {
"DoNotSendEmailCampaignIfRecipientIsEnrolledInJourneyOrAutoresponder": false
},
"EncryptedSaltedListID": "abc123...",
"EventListTrackerID": "xyz789",
"EventUserTrackerID": "def456",
"EventTrackerVariables": {},
"EventTrackerJS": "..."
}
]
}{
"Success": false,
"ErrorCode": []
}0: SuccessMigration note: prior to v5.9.1 the Options field was returned as a raw JSON-encoded string. It is now returned as a decoded object/array, matching list.get. Callers that parsed the string client-side must remove that step.
Get Per-List Statistics ​
GET/api/v1/lists.statsAPI Usage Notes
- Authentication required: User API Key. Admin authentication is also accepted with
Access=adminandUserID(see Admin usage below) - Required permissions:
Lists.Get - v1 REST alias:
GET /api/v1/lists.stats. Legacy access via/api.phpis also supported
Returns aggregate per-list statistics over a configurable lookback window. Designed for the "Lists browse" page stat strip and per-row metrics — one round-trip across oempro_subscriber_lists joined with the pre-aggregated oempro_stats_list_daily_aggregated (opens / clicks / forwards / browser-views) and oempro_stats_activity (sent / subscriptions / unsubscriptions / imports / hard bounces) sources. Archived lists are excluded.
Admin usage (v5.9.6, #2775)
This command also accepts admin authentication. Pass AdminAPIKey (or an admin SessionID), Access=admin, and UserID naming the account to act on; the response is exactly what that account's own API key would receive. Without Access=admin the call is treated as a user call, so existing integrations are unaffected. UserID is ignored under user authentication. Admin-only error codes: 5001 UserID missing or invalid, 5002 user not found, 5003 user outside the user groups a restricted sub-admin may access. Requires the User.Edit privilege when ADMIN_API_ENFORCE_PRIVILEGES is on.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: lists.stats |
| UserID | Integer | Admin only | Account to act on when calling with admin authentication and Access=admin. Ignored under user authentication (v5.9.6, #2775) |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| Days | Integer | No | Lookback window in days. Default 30. Clamped to [1, 365]. |
| ListIDs | String | No | Optional comma-separated list of ListID values to scope the response to. |
Per-row response shape
| Field | Type | Description |
|---|---|---|
ListID | Integer | List identifier |
Name | String | List name |
ActiveSubscriberCount | Integer | Denormalized active subscriber count (PR #1910 phase 2a) |
SegmentCount | Integer | Denormalized segment count |
LastActivityAt | String|null | Most recent recorded list activity timestamp |
UniqueOpens | Integer | Sum of UniqueOpens over the window |
UniqueClicks | Integer | Sum of UniqueClicks over the window |
UniqueForwards | Integer | Sum of UniqueForwards over the window (added in v5.9.1, issue #1960) |
UniqueBrowserViews | Integer | Sum of UniqueBrowserViews over the window (added in v5.9.1, issue #1960) |
TotalSent | Integer | Sum of TotalSentEmail over the window |
NetGrowth | Integer | subscriptions + imports - unsubscriptions - hard_bounces over the window |
OpenRate | Float|null | UniqueOpens / TotalSent (industry-standard convention). null when TotalSent == 0. |
ClickRate | Float|null | UniqueClicks / TotalSent. null when TotalSent == 0. |
ForwardRate | Float|null | UniqueForwards / TotalSent. null when TotalSent == 0. |
BrowserViewRate | Float|null | UniqueBrowserViews / TotalSent. null when TotalSent == 0. |
CTOR | Float|null | Click-To-Open Rate: UniqueClicks / UniqueOpens. null when UniqueOpens == 0. Measures engagement among openers — the denominator is opens, not sends. |
Top-level fields
Days— the actual window applied (echoed back after clamping).TotalListCount— number of lists included in the response.WeightedAvgOpenRate— subscriber-weighted average ofOpenRateacross the response set, weighted byActiveSubscriberCount * TotalSent.nullwhen no list in the response had any sends in the window.WeightedAvgClickRate— subscriber-weighted average ofClickRate. Same weighting basis as open rate.nullwhen no sends. (Added in v5.9.1, issue #1960.)WeightedAvgCTOR— subscriber-weighted average ofCTOR. Different denominator basis: weighted byActiveSubscriberCount * UniqueOpens(lists with zero opens are skipped, not zero-weighted).nullwhen no opens. (Added in v5.9.1, issue #1960.)WeightedAvgForwardRate— subscriber-weighted average ofForwardRate. Same weighting basis as open rate. (Added in v5.9.1, issue #1960.)WeightedAvgBrowserViewRate— subscriber-weighted average ofBrowserViewRate. Same weighting basis as open rate. (Added in v5.9.1, issue #1960.)Lists— array of per-list stat rows.
Migration note (v5.9.1): the per-row ClickRate started returning meaningful non-zero values in v5.9.1 alongside the new metrics. Prior to this release the underlying UniqueClicks daily aggregate was never populated, so ClickRate was always 0. Consumers that special-cased the zero value should remove that workaround.
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "lists.stats",
"SessionID": "your-session-id",
"Days": 30
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"Days": 30,
"TotalListCount": 2,
"WeightedAvgOpenRate": 0.21,
"WeightedAvgClickRate": 0.027,
"WeightedAvgCTOR": 0.146,
"WeightedAvgForwardRate": 0.001,
"WeightedAvgBrowserViewRate": 0.012,
"Lists": [
{
"ListID": 11,
"Name": "Buyers List",
"ActiveSubscriberCount": 1250,
"SegmentCount": 5,
"LastActivityAt": "2026-04-29 14:33:01",
"UniqueOpens": 312,
"UniqueClicks": 41,
"UniqueForwards": 2,
"UniqueBrowserViews": 14,
"TotalSent": 1250,
"NetGrowth": 18,
"OpenRate": 0.2496,
"ClickRate": 0.0328,
"ForwardRate": 0.0016,
"BrowserViewRate": 0.0112,
"CTOR": 0.1314
},
{
"ListID": 313,
"Name": "MOCK DATA",
"ActiveSubscriberCount": 1000,
"SegmentCount": 0,
"LastActivityAt": "2026-04-30 20:00:43",
"UniqueOpens": 0,
"UniqueClicks": 0,
"UniqueForwards": 0,
"UniqueBrowserViews": 0,
"TotalSent": 0,
"NetGrowth": -1,
"OpenRate": null,
"ClickRate": null,
"ForwardRate": null,
"BrowserViewRate": null,
"CTOR": null
}
]
}{
"Success": false,
"ErrorCode": []
}0: SuccessGet List Activity Series ​
GET/api/v1/list.getactivityseriesAPI Usage Notes
- Authentication required: User API Key. Admin authentication is also accepted with
Access=adminandUserID(see Admin usage below) - Required permissions:
List.Get - v1 REST alias:
GET /api/v1/list.getactivityseries. Legacy access via/api.phpis also supported
Returns a daily series of subscription / unsubscription activity for a single list over a configurable lookback window. Designed for the Reports tab → Overview growth chart and the per-list "net growth" KPI. Reads pre-aggregated rows from oempro_stats_activity (one row per list / owner / day) and gap-fills missing dates with zeros so the consumer always receives exactly Days ordered entries ending today.
Admin usage (v5.9.6, #2775)
This command also accepts admin authentication. Pass AdminAPIKey (or an admin SessionID), Access=admin, and UserID naming the account to act on; the response is exactly what that account's own API key would receive. Without Access=admin the call is treated as a user call, so existing integrations are unaffected. UserID is ignored under user authentication. Admin-only error codes: 5001 UserID missing or invalid, 5002 user not found, 5003 user outside the user groups a restricted sub-admin may access. Requires the User.Edit privilege when ADMIN_API_ENFORCE_PRIVILEGES is on.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getactivityseries |
| UserID | Integer | Admin only | Account to act on when calling with admin authentication and Access=admin. Ignored under user authentication (v5.9.6, #2775) |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
| Days | Integer | No | Lookback window in days. Default 30. Clamped to [1, 365]. Values <= 0 fall back to the default. |
Per-day entry shape (one entry per element in Series)
| Field | Type | Description |
|---|---|---|
Date | String | Calendar date in YYYY-MM-DD format (UTC). |
Subscriptions | Integer | New subscriptions added on that day (oempro_stats_activity.TotalSubscriptions). |
Unsubscriptions | Integer | Unsubscriptions on that day (TotalUnsubscriptions). |
Imports | Integer | Subscribers added via import (TotalImport). |
SoftBounces | Integer | Soft bounces (TotalSoftBounce). Returned for completeness but not included in NetGrowth. |
HardBounces | Integer | Hard bounces (TotalHardBounce). |
NetGrowth | Integer | Subscriptions + Imports - Unsubscriptions - HardBounces for the day. Same formula as lists.stats. |
Top-level fields
ListID— the list the series describes (echoed back).Days— the actual window applied after clamping.Series— array of exactlyDaysdaily entries, ascending byDate, ending on today.
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getactivityseries",
"SessionID": "your-session-id",
"ListID": 123,
"Days": 30
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"Days": 30,
"Series": [
{
"Date": "2026-04-10",
"Subscriptions": 42,
"Unsubscriptions": 5,
"Imports": 0,
"SoftBounces": 1,
"HardBounces": 2,
"NetGrowth": 35
},
{
"Date": "2026-04-11",
"Subscriptions": 0,
"Unsubscriptions": 0,
"Imports": 0,
"SoftBounces": 0,
"HardBounces": 0,
"NetGrowth": 0
}
]
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is missing, non-numeric, or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Get Subscriber Status Breakdown ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns per-status subscriber counts for a single list in one round trip — designed for the Reports tab → Overview composition donut. Replaces the legacy six-call workaround of invoking subscribers.get repeatedly with different subscribersegment values.
Each subscriber in the per-list shard is placed in exactly one in-shard bucket via the precedence ladder below. Two additional buckets (Complained, Suppressed) are sourced from oempro_suppression_list. The endpoint is backed by a 5-minute Redis cache (subscriber_status_breakdown_<ListID>) — bucket counts may lag real-time changes by up to that window, matching the staleness budget of the existing per-list counters (GetActiveTotal, GetOptInPendingTotal).
Bucketing rules (in-shard, disjoint partition):
| Shard row state | Bucket |
|---|---|
Subscribed + Not Bounced | Active |
Subscribed + Soft | SoftBounced |
Subscribed + Hard | HardBounced |
Unsubscribed + (any BounceType) | Unsubscribed |
Opt-In Pending + (any BounceType) | OptInPending |
Opt-Out Pending + (any BounceType) | excluded (deprecated status, intentionally not counted) |
Suppression buckets (from oempro_suppression_list, scoped by RelListID):
| Source | Bucket |
|---|---|
SuppressionSource = 'SPAM complaint' | Complained |
Any SuppressionSource for the list | Suppressed |
Complained is a subset of Suppressed
A 'SPAM complaint' suppression row is counted once in Complained and once in Suppressed (and therefore twice in Total). This is intentional — Suppressed is the full size of the suppression list and Complained is the subset attributable to spam complaints, so a donut/stacked-bar visual can break out the share without losing the total. If you need a non-overlapping count, use Suppressed - Complained for "suppressed for reasons other than spam complaints."
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getsubscriberstatusbreakdown |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
Response shape
ListID— the list the breakdown describes (echoed back).Counts— object with the seven buckets below, all integers.Total— arithmetic sum of all sevenCountsvalues. This is not equal toCOUNT(*)of the per-list shard: it pulls inComplainedandSuppressedfromoempro_suppression_list, excludes any deprecatedOpt-Out Pendingrows, and (becauseComplainedis a subset ofSuppressed) double-counts every spam-complaint suppression row.
Counts fields
| Field | Type | Description |
|---|---|---|
Active | Integer | Subscribed and not bounced. |
OptInPending | Integer | Awaiting double opt-in confirmation. |
SoftBounced | Integer | Currently subscribed but with a soft bounce flag. |
HardBounced | Integer | Currently subscribed but with a hard bounce flag. |
Unsubscribed | Integer | All rows with SubscriptionStatus = Unsubscribed, regardless of bounce status. |
Complained | Integer | Suppression entries for this list with SuppressionSource = 'SPAM complaint'. Subset of Suppressed. |
Suppressed | Integer | All suppression entries for this list (any SuppressionSource, including 'SPAM complaint' — the same rows are also counted in Complained). |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getsubscriberstatusbreakdown",
"SessionID": "your-session-id",
"ListID": 123
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"Counts": {
"Active": 12345,
"OptInPending": 67,
"SoftBounced": 23,
"HardBounced": 89,
"Unsubscribed": 412,
"Complained": 8,
"Suppressed": 154
},
"Total": 13098
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is missing, non-numeric, or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Get Bounce Trend ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns a weekly trend of hard-bounce, soft-bounce, and spam-complaint percentages for a single list. Designed for the bounce-trend bar chart on the Reports tab → Overview. Reads bounce numerators and the sent denominator from oempro_stats_activity (already split per-list — multi-list campaigns do not bias attribution) and complaint counts from oempro_fbl_reports. Backed by a 5-minute Redis cache keyed by (ListID, UserID, Weeks).
Week buckets are ISO-8601 Monday-start. The most recent entry covers Monday-of-this-week through today inclusive (current partial week is shown so the chart never lags); older entries cover full Mon–Sun weeks. The series is gap-filled to exactly Weeks entries.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getbouncetrend |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
| Weeks | Integer | No | Lookback window in weeks. Default 6. Clamped to [1, 26]. Values <= 0 fall back to the default. |
Per-week entry shape (one entry per element in Series)
| Field | Type | Description |
|---|---|---|
WeekStart | String | Monday of the week, in YYYY-MM-DD format (ISO-8601 weekday 1). |
TotalSent | Integer | Sum of oempro_stats_activity.TotalSentEmail over the week (denominator for all three percentages). |
HardBounces | Integer | Sum of oempro_stats_activity.TotalHardBounce over the week. |
SoftBounces | Integer | Sum of oempro_stats_activity.TotalSoftBounce over the week. |
Complaints | Integer | COUNT(*) of oempro_fbl_reports rows for the list in the week. |
HardBouncePct | Float|null | HardBounces * 100 / TotalSent, rounded to 2 decimals. Percent number (e.g. 0.42 = 0.42 %). null when TotalSent == 0. |
SoftBouncePct | Float|null | SoftBounces * 100 / TotalSent, rounded to 2 decimals. null when TotalSent == 0. |
ComplaintPct | Float|null | Complaints * 100 / TotalSent, rounded to 2 decimals. null when TotalSent == 0. |
Pct vs Rate convention
The *Pct fields here are percent numbers (0.42 means 0.42 %), distinct from the *Rate fields on lists.stats which are fractions in [0, 1] (0.0042 would mean 0.42 %). Both follow their respective field-name conventions.
Top-level fields
ListID— the list the trend describes (echoed back).Weeks— the actual window applied after clamping.Series— array of exactlyWeeksweekly entries, ascending byWeekStart, ending on the Monday of the current week.
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getbouncetrend",
"SessionID": "your-session-id",
"ListID": 123,
"Weeks": 6
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"Weeks": 6,
"Series": [
{
"WeekStart": "2026-04-06",
"TotalSent": 12500,
"HardBounces": 53,
"SoftBounces": 22,
"Complaints": 4,
"HardBouncePct": 0.42,
"SoftBouncePct": 0.18,
"ComplaintPct": 0.03
},
{
"WeekStart": "2026-04-13",
"TotalSent": 0,
"HardBounces": 0,
"SoftBounces": 0,
"Complaints": 0,
"HardBouncePct": null,
"SoftBouncePct": null,
"ComplaintPct": null
}
]
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is missing, non-numeric, or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Get Engagement Tiers ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns RFM-style engagement tier counts for a single list — six mutually-exclusive buckets (Champions, Engaged, Passive, Lapsed, Dormant, NeverEngaged) over the list's deliverable subscribers (SubscriptionStatus='Subscribed' AND BounceType='Not Bounced'). Designed for the Reports tab → Engagement panel. Reads recency signal from oempro_subscriber_lastactivities (per-subscriber LastEmailOpenedAt / LastLinkClickedAt, maintained in real time by the open/click ingestion path) joined to the per-list shard. Backed by a 5-minute Redis cache keyed by (ListID, all five overrides) so custom-cutoff calls do not collide with default-cutoff cache.
The default tier cutoffs match the issue spec:
| Tier | Default rule |
|---|---|
| Champions | Opened and clicked in the last 14 days |
| Engaged | Opened in the last 30 days, but not a Champion |
| Passive | Last open between 30 and 60 days ago |
| Lapsed | Last open between 60 and 120 days ago |
| Dormant | Last open more than 120 days ago |
| NeverEngaged | Never opened, joined more than 30 days ago |
Each cutoff can be overridden per request. Out-of-range values fall back to their per-key default; an ordering violation (e.g. ChampionDays > EngagedDays) restores the entire override set to defaults rather than producing tier predicates that overlap or invert. The actual values applied — after clamping and the monotonicity guard — are echoed back in the Overrides field so the caller can detect when a request was clamped.
Excluded subscribers
Recent never-openers (joined less than NeverEngagedJoinedDays days ago, never opened) are intentionally excluded from every tier — they have not yet had time to register engagement signal. The Total field reflects only counted rows, so callers can reconcile against lists.stats.ActiveSubscriberCount to derive the excluded count. Hard-bounced, soft-bounced, unsubscribed, and Opt-In Pending subscribers are also excluded regardless of recent activity.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getengagementtiers |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
| ChampionDays | Integer | No | Champion lookback in days. Default 14. Clamped to [1, 365]. Out-of-range or non-numeric values fall back to the default. |
| EngagedDays | Integer | No | Engaged lookback in days. Default 30. Clamped to [1, 365]. Must be >= ChampionDays after clamping or all overrides revert to defaults. |
| PassiveEndDays | Integer | No | Upper bound (in days ago) for the Passive bucket. Default 60. Clamped to [1, 730]. Must be >= EngagedDays after clamping or overrides revert. |
| LapsedEndDays | Integer | No | Upper bound (in days ago) for the Lapsed bucket. Default 120. Clamped to [1, 1825]. Must be >= PassiveEndDays after clamping or overrides revert. |
| NeverEngagedJoinedDays | Integer | No | Minimum age (in days) of subscription before a never-opener can be classified as NeverEngaged. Default 30. Clamped to [1, 365]. |
Top-level response fields:
| Field | Type | Description |
|---|---|---|
ListID | Integer | The list the tiers describe (echoed back). |
AsOf | String | ISO-8601 timestamp (UTC) of when the underlying counts were computed. Frozen for the lifetime of the cache entry, so two calls within the cache TTL share an AsOf. |
Overrides | Object | The cutoffs actually used after clamping and the monotonicity guard. Compare against the request to detect clamped values. |
Tiers | Object | Tier counts as a strict partition (each subscriber lands in exactly one bucket). |
Total | Integer | Sum of the six tier counts. Excludes recent never-openers and ineligible (bounced/unsubscribed/opt-in-pending) subscribers. |
Tiers object shape:
| Field | Type | Description |
|---|---|---|
Champions | Integer | Opened and clicked within the last ChampionDays days. |
Engaged | Integer | Opened within the last EngagedDays days, but not a Champion. |
Passive | Integer | Last open between EngagedDays and PassiveEndDays days ago. |
Lapsed | Integer | Last open between PassiveEndDays and LapsedEndDays days ago. |
Dormant | Integer | Has at least one open on record, but the last one was more than LapsedEndDays days ago. |
NeverEngaged | Integer | Never opened, and joined more than NeverEngagedJoinedDays days ago. |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getengagementtiers",
"SessionID": "your-session-id",
"ListID": 123
}'curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getengagementtiers",
"SessionID": "your-session-id",
"ListID": 123,
"ChampionDays": 7,
"EngagedDays": 21,
"PassiveEndDays": 45,
"LapsedEndDays": 90,
"NeverEngagedJoinedDays": 14
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"AsOf": "2026-05-09T14:32:01+00:00",
"Overrides": {
"ChampionDays": 14,
"EngagedDays": 30,
"PassiveEndDays": 60,
"LapsedEndDays": 120,
"NeverEngagedJoinedDays": 30
},
"Tiers": {
"Champions": 1234,
"Engaged": 4567,
"Passive": 890,
"Lapsed": 234,
"Dormant": 56,
"NeverEngaged": 78
},
"Total": 7059
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is missing, non-numeric, or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Get Send Time Heatmap ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns a 7×24 grid of event counts (opens or clicks) for a single list, grouped by Monday-first day-of-week and hour-of-day, over the last Days days. Designed for the Reports tab → Engagement send-time heatmap. Reads from oempro_stats_open (when Event="open") or oempro_stats_link (when Event="click"), both of which expose a generated stored DOW column (OpenDatew / ClickDatew) and a covering index (idx_list_owner_datew_covering) so the WHERE filter and GROUP BY are answered from the index leaves alone — HOUR(OpenDate) / HOUR(ClickDate) is computed on the fly without extra row lookups. Backed by a 5-minute Redis cache keyed by (ListID, UserID, Days, Event).
Day-of-week ordering
The Grid response uses Monday-first ordering: Grid[0] is Monday, Grid[6] is Sunday. This matches the ISO-8601 weekday convention used elsewhere in Octeth's per-list reporting (e.g. List.GetBounceTrend week buckets). Hours are 0..23 in the application timezone (UTC in the default Docker deployment); transform to the viewer's local timezone client-side.
Event values
Event is strictly validated. An unrecognized value (e.g. "opens", "clicked") returns a validation-error envelope rather than silently falling back to "open", so a typo never returns the wrong dataset. Currently supported: open, click.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getsendtimeheatmap |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
| Days | Integer | No | Lookback window in days. Default 90. Clamped to [1, 365]. Out-of-range or non-numeric values fall back to the default. |
| Event | String | No | Event to bucket. Default open. Possible values: open, click. Unrecognized values return a validation-error envelope. |
| TimeZone | String | No | Time zone the weekdays and hours are bucketed in. Possible values: server (the server clock, UTC on a standard installation) and account (the account's time zone setting, the zone campaign scheduling uses; a team member session uses the account owner's zone). When omitted, the grid is in the server clock and the response has no TimeZone field, exactly as before. An empty or unrecognized account time zone falls back to the server clock. Unrecognized values return a validation-error envelope (v6.0.6, #3948). |
Top-level response fields:
| Field | Type | Description |
|---|---|---|
ListID | Integer | The list the grid describes (echoed back). |
Days | Integer | The lookback window actually used (after clamping). Compare against the request to detect clamped values. |
Event | String | The event actually used (after lowercase normalization). |
AsOf | String | ISO-8601 timestamp (UTC) of when the underlying counts were computed. Frozen for the lifetime of the cache entry, so two calls within the cache TTL share an AsOf. |
Grid | Array | 7×24 array of integers. Grid[d][h] is the count of events on day d (Monday=0..Sunday=6) at hour h (0..23) in the zone named by TimeZone, or in the server clock (UTC on a standard installation) when TimeZone was not requested. Empty buckets are 0, never missing from the response. |
TimeZone | String | Returned only when the TimeZone request parameter is given. The IANA name of the zone the grid is in, for example America/New_York or UTC. |
With TimeZone=account, each hour is converted to the account's local time on its own date, so a window that crosses a daylight saving change counts both sides by local wall-clock hour. In a zone with a half-hour or 45-minute offset (for example India or Newfoundland), each server hour is counted in the local hour its start falls in: 14:00 UTC is 19:30 in Kolkata and is counted at hour 19.
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getsendtimeheatmap",
"SessionID": "your-session-id",
"ListID": 123
}'curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getsendtimeheatmap",
"SessionID": "your-session-id",
"ListID": 123,
"Days": 30,
"Event": "click"
}'curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getsendtimeheatmap",
"SessionID": "your-session-id",
"ListID": 123,
"TimeZone": "account"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"Days": 90,
"Event": "open",
"AsOf": "2026-05-09T14:32:01+00:00",
"Grid": [
[12, 8, 5, 3, 2, 1, 1, 4, 18, 42, 67, 81, 79, 65, 58, 49, 41, 33, 27, 22, 18, 14, 11, 9],
[45, 32, 18, 9, 5, 4, 6, 12, 38, 71, 102, 118, 110, 95, 84, 73, 62, 50, 41, 34, 27, 22, 17, 12],
[40, 28, 16, 8, 4, 3, 5, 11, 35, 68, 98, 113, 105, 90, 80, 70, 59, 47, 39, 32, 26, 21, 16, 11],
[38, 26, 15, 7, 4, 3, 5, 11, 34, 65, 94, 109, 102, 87, 77, 67, 56, 45, 37, 31, 25, 20, 15, 10],
[35, 24, 14, 7, 3, 3, 4, 10, 31, 60, 87, 100, 94, 80, 71, 62, 52, 42, 35, 28, 23, 18, 14, 10],
[22, 15, 9, 5, 3, 2, 3, 6, 19, 38, 56, 65, 60, 51, 45, 39, 33, 27, 22, 18, 14, 11, 9, 7],
[10, 7, 4, 3, 1, 1, 1, 3, 9, 20, 30, 36, 33, 28, 24, 20, 17, 14, 11, 9, 7, 6, 4, 3]
]
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
1: ListID is missing (returned in the ErrorCode array as [1] by the required-field validator)
2: Unsupported Event value (returned in the ErrorCode array as [2]; the offending field name is also surfaced in ErrorText). Allowed values: open, click
3: Unsupported TimeZone value (returned in the ErrorCode array as [3]; the offending field name is also surfaced in ErrorText). Allowed values: server, account
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is non-numeric or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Delete Lists ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Delete - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: lists.delete |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| Lists | String | Yes | Comma-separated list of list IDs to delete |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "lists.delete",
"SessionID": "your-session-id",
"Lists": "123,456,789"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": ""
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: List IDs are missingGet List Assets ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Retrieves comprehensive list information including all related assets: segments, custom fields, subscriber tags, and autoresponders.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.assets |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | ID of the list to retrieve assets for |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.assets",
"SessionID": "your-session-id",
"ListID": 123
}'{
"Success": true,
"ErrorCode": 0,
"List": {
"ListID": 123,
"Name": "My List"
},
"Segments": {
"Success": true,
"Segments": []
},
"CustomFields": {
"Success": true,
"CustomFields": []
},
"SubscriberTags": {
"Success": true,
"Tags": []
},
"AutoResponders": {
"Success": true,
"AutoResponders": []
}
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: Missing list IDAdd Integration URL ​
POST/api.phpDEPRECATION WARNING
This endpoint is deprecated and will be removed in a future Octeth release. Please migrate to the webhook-based integration system available through the Email Gateway API endpoints.
API Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Update - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: listintegration.addurl |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the list for integration |
| URL | String | Yes | Integration webhook URL |
| Event | String | Yes | Event type to trigger webhook |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "listintegration.addurl",
"SessionID": "your-session-id",
"SubscriberListID": 123,
"URL": "https://example.com/webhook",
"Event": "Subscribe"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"WebServiceIntegrationID": 456,
"EventType": "Subscribe",
"ServiceURL": "https://example.com/webhook"
}{
"Success": false,
"ErrorCode": [1, 2, 3, 4]
}0: Success
1: Missing subscriber list ID
2: Missing URL
3: Missing event type
4: Invalid subscriber list IDDelete Integration URLs ​
POST/api.phpDEPRECATION WARNING
This endpoint is deprecated and will be removed in a future Octeth release. Please migrate to the webhook-based integration system available through the Email Gateway API endpoints.
API Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Update - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: listintegration.deleteurls |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| URLs | String | Yes | Comma-separated list of web service integration IDs |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "listintegration.deleteurls",
"SessionID": "your-session-id",
"URLs": "456,789,012"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": ""
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: Web service integration URL IDs are missingGet Integration URLs ​
POST/api.phpDEPRECATION WARNING
This endpoint is deprecated and will be removed in a future Octeth release. Please migrate to the webhook-based integration system available through the Email Gateway API endpoints.
API Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: listintegration.geturls |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the list to get integration URLs for |
| Event | String | No | Filter by specific event type |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "listintegration.geturls",
"SessionID": "your-session-id",
"SubscriberListID": 123,
"Event": "Subscribe"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"URLs": [
{
"WebServiceIntegrationID": 456,
"RelListID": 123,
"EventType": "Subscribe",
"ServiceURL": "https://example.com/webhook"
}
]
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: Missing subscriber list IDTest Integration URL ​
POST/api.phpDEPRECATION WARNING
This endpoint is deprecated and will be removed in a future Octeth release. Please migrate to the webhook-based integration system available through the Email Gateway API endpoints.
API Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Update - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: listintegration.testurl |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| URL | String | Yes | Integration webhook URL to test |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "listintegration.testurl",
"SessionID": "your-session-id",
"URL": "https://example.com/webhook"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": ""
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: URL is missingGenerate Subscription Form HTML ​
POST/api.phpDEPRECATION WARNING
This endpoint is deprecated and will be removed in a future Octeth release. Modern integration methods should use direct API calls via the subscriber.create endpoint or use embedded JavaScript-based subscription forms.
API Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: listintegration.generatesubscriptionformhtmlcode |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the list for the subscription form. Must be a positive integer and a list you own. |
| CustomFields | String | No | Comma-separated custom field IDs to include in form |
| EmailAddressString | String | No | Label text for email address field |
| SubscribeButtonString | String | No | Text for subscribe button |
| HTMLSpecialChars | String | No | Apply htmlspecialchars encoding (default: "true") |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "listintegration.generatesubscriptionformhtmlcode",
"SessionID": "your-session-id",
"SubscriberListID": 123,
"CustomFields": "1,2,3",
"EmailAddressString": "Your Email",
"SubscribeButtonString": "Join Now"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"HTMLCode": [
"<form action="https://example.com/subscribe.php" method="post">",
"<input type="text" name="FormValue_Fields[EmailAddress]">",
"..."
]
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: Missing subscriber list ID
2: Invalid subscriber list id (must be a positive integer)
3: Invalid subscriber list id (list not found or not owned by you)Generate Unsubscription Form HTML ​
POST/api.phpDEPRECATION WARNING
This endpoint is deprecated and will be removed in a future Octeth release. Modern integration methods should use direct API calls via the subscriber.unsubscribe endpoint or use embedded JavaScript-based unsubscription forms.
API Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: listintegration.generateunsubscriptionformhtmlcode |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SubscriberListID | Integer | Yes | ID of the list for the unsubscription form |
| UnsubscribeButtonString | String | No | Text for unsubscribe button |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "listintegration.generateunsubscriptionformhtmlcode",
"SessionID": "your-session-id",
"SubscriberListID": 123,
"UnsubscribeButtonString": "Opt Out"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"HTMLCode": [
"<form action="https://example.com/unsubscribe.php" method="post">",
"<input type="text" name="FormValue_EmailAddress">",
"..."
]
}{
"Success": false,
"ErrorCode": [1]
}0: Success
1: Missing subscriber list IDGet Tenure Distribution ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns a tenure-bucketed snapshot of subscriber counts for a single list — six mutually-exclusive buckets keyed off SubscriptionDate over the list's deliverable subscribers (SubscriptionStatus='Subscribed' AND BounceType='Not Bounced'). Designed for the Reports tab → Engagement (net new) panel. Reads from the per-list shard oempro_subscribers_<ListID>, whose SubscriptionDate column is backed by the composite index idx_subscription_date_id (SubscriptionDate, SubscriberID) (added 2025-10-25). Backed by a 5-minute Redis cache keyed by ListID.
The bucket boundaries are fixed:
| Bucket | Range |
|---|---|
0_30d | Subscribed within the last 30 days |
1_3mo | Subscribed between 30 and 90 days ago |
3_6mo | Subscribed between 90 and 180 days ago |
6_12mo | Subscribed between 180 and 365 days ago |
1_2y | Subscribed between 365 and 730 days ago |
2y_plus | Subscribed more than 730 days ago |
Boundary semantics & excluded subscribers
Boundaries are right-open — a subscriber whose SubscriptionDate lands exactly on a cutoff (e.g. exactly 30 days ago to the second) falls into the older bucket. This matches the >= newer / < older convention list.getengagementtiers uses, so each subscriber lands in exactly one bucket and Total equals the sum of the six bucket counts. Hard-bounced, soft-bounced, unsubscribed, and Opt-In Pending subscribers are excluded from every bucket regardless of subscription date — Total reflects deliverable subscribers only and can be reconciled against lists.stats.ActiveSubscriberCount.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.gettenuredistribution |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
Top-level response fields:
| Field | Type | Description |
|---|---|---|
ListID | Integer | The list the distribution describes (echoed back). |
AsOf | String | ISO-8601 timestamp (UTC) of when the underlying counts were computed. Frozen for the lifetime of the cache entry, so two calls within the cache TTL share an AsOf. |
Buckets | Object | The six tenure buckets as a strict partition (each deliverable subscriber lands in exactly one bucket). |
Total | Integer | Sum of the six bucket counts. Excludes ineligible (bounced/unsubscribed/opt-in-pending) subscribers. |
Buckets object shape:
| Field | Type | Description |
|---|---|---|
0_30d | Integer | Deliverable subscribers who joined within the last 30 days. |
1_3mo | Integer | Deliverable subscribers who joined between 30 and 90 days ago. |
3_6mo | Integer | Deliverable subscribers who joined between 90 and 180 days ago. |
6_12mo | Integer | Deliverable subscribers who joined between 180 and 365 days ago. |
1_2y | Integer | Deliverable subscribers who joined between 365 and 730 days ago. |
2y_plus | Integer | Deliverable subscribers who joined more than 730 days ago. |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.gettenuredistribution",
"SessionID": "your-session-id",
"ListID": 123
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"AsOf": "2026-05-09T14:32:01+00:00",
"Buckets": {
"0_30d": 234,
"1_3mo": 567,
"3_6mo": 890,
"6_12mo": 1234,
"1_2y": 2345,
"2y_plus": 3456
},
"Total": 8726
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
1: Missing subscriber list ID
99997: Subscriber list does not exist or is not owned by the authenticated userGet ESP Breakdown ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns the domain-level distribution of subscribers, openers, clickers, or opt-outs for a single list. One call per sub-tab in the Reports tab → ESP breakdown view, replacing four separate legacy /app/user/list/espbreakdown/<id> page-side calls into Statistics::RetrieveDomainBreakdownForAList. Results are scoped to the list's deliverable subscribers (SubscriptionStatus='Subscribed' AND BounceType='Not Bounced') and counted as COUNT(DISTINCT RelSubscriberID) so a single contact who opens or clicks repeatedly contributes to its domain bucket exactly once. Backed by a 5-minute Redis cache keyed by (ListID, UserID, Event, Top).
The data source switches per Event:
| Event | Source |
|---|---|
subscribers | Per-list shard oempro_subscribers_<ListID> only — no stats join |
opens | oempro_stats_open JOIN oempro_subscribers_<ListID> on SubscriberID |
clicks | oempro_stats_link JOIN oempro_subscribers_<ListID> on SubscriberID |
unsubscriptions | oempro_stats_unsubscription JOIN oempro_subscribers_<ListID> on SubscriberID |
Top-N collapsing
Domains beyond rank Top are summed into a single Other bucket appended to the end of Domains. The Other bucket is omitted entirely when its count is zero (i.e. when the named-domain list already covers every contributor). Top is clamped to [1, 1000]; missing, non-numeric, or non-positive values silently fall back to the default 30.
Event values
Event is required and strictly validated. Unlike list.getsendtimeheatmap, missing or unrecognized values (e.g. "open" singular, "opened") return a validation-error envelope rather than silently defaulting, so a caller never receives the wrong dataset on a typo. Allowed values: subscribers, opens, clicks, unsubscriptions.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getespbreakdown |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
| Event | String | Yes | Which event to break down by domain. Possible values: subscribers, opens, clicks, unsubscriptions. Missing or unrecognized values return a validation-error envelope. |
| Top | Integer | No | Number of top-ranking domains to keep before collapsing the tail into Other. Default 30. Clamped to [1, 1000]. Out-of-range or non-numeric values fall back to the default. |
Top-level response fields:
| Field | Type | Description |
|---|---|---|
ListID | Integer | The list the breakdown describes (echoed back). |
Event | String | The event actually used (after lowercase normalization). |
Top | Integer | The top-N cutoff actually used (after clamping). Compare against the request to detect clamped values. |
AsOf | String | ISO-8601 timestamp (UTC) of when the underlying counts were computed. Frozen for the lifetime of the cache entry, so two calls within the cache TTL share an AsOf. |
Total | Integer | Sum of all Count values across Domains (including Other if present). |
Domains | Array | Numerically-indexed list of {Domain, Count, Pct} objects, sorted by Count descending. The Other bucket (when present) is always the last element. |
Domains[] object shape:
| Field | Type | Description |
|---|---|---|
Domain | String | Email domain (e.g. gmail.com), or the literal string Other for the collapsed tail bucket. |
Count | Integer | COUNT(DISTINCT RelSubscriberID) for that domain after the eligibility filter. |
Pct | Number|null | round(Count * 100 / Total, 2) as a percentage. null when Total is zero (matches the OpenRate / ClickRate convention used elsewhere). |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getespbreakdown",
"SessionID": "your-session-id",
"ListID": 123,
"Event": "opens"
}'curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getespbreakdown",
"SessionID": "your-session-id",
"ListID": 123,
"Event": "subscribers",
"Top": 10
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"Event": "opens",
"Top": 30,
"AsOf": "2026-05-09T14:32:01+00:00",
"Total": 9700,
"Domains": [
{ "Domain": "gmail.com", "Count": 5000, "Pct": 51.55 },
{ "Domain": "outlook.com", "Count": 3200, "Pct": 32.99 },
{ "Domain": "yahoo.com", "Count": 1500, "Pct": 15.46 }
]
}{
"Success": false,
"ErrorCode": [2],
"ErrorText": "Unsupported Event value. Allowed: subscribers, opens, clicks, unsubscriptions"
}0: Success
1: ListID is missing (returned in the ErrorCode array as [1] by the required-field validator)
2: Unsupported Event value (returned in the ErrorCode array as [2]; the offending field name is also surfaced in ErrorText). Allowed values: subscribers, opens, clicks, unsubscriptions
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is non-numeric or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Get CTR Retention Matrix ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns a per-campaign clicker cohort matrix for a single list. For each of the list's most-recently sent campaigns, the response reports the number of distinct subscribers who clicked at least once (BaseClickers) and the percentage of those same subscribers who also clicked each subsequent campaign in the chronological pool (Retention). One call powers the Reports tab → CTR retention view, replacing the legacy /app/user/list/ctrretention/<id> page-side call into Statistics::CTRRetentionByCohort. Results are scoped to campaigns the authenticated user owns and counted as COUNT(DISTINCT RelSubscriberID) so a contact who clicks a single campaign multiple times still contributes to the cohort exactly once. Backed by a 5-minute Redis cache keyed by (ListID, UserID, LastNCampaigns, CohortDepth).
Retention shape
Retention[0] is always 100.0 (the campaign vs. itself) when BaseClickers > 0, and 0.0 when BaseClickers == 0. Subsequent values are clicker-overlap percentages rounded to one decimal place — the share of BaseClickers who also clicked the campaign at that subsequent position. Each row's Retention array is trimmed to min(CohortDepth, n - rowIndex), so newer rows have shorter arrays (the newest campaign's Retention is just [100.0] because no subsequent campaigns exist yet). Iterate by count($row['Retention']) rather than assuming a fixed length.
Defense-in-depth
Every SQL clause that touches oempro_stats_link and oempro_campaigns is scoped by RelOwnerUserID so a click row owned by a different tenant pointing at the same (ListID, CampaignID) cannot leak into another user's matrix. The user-facing tenant guard is Lists::RetrieveList; this is the SQL-level fallback.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getctrretentionmatrix |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
| LastNCampaigns | Integer | No | How many of the list's most-recently sent campaigns to include as rows. Default 10, clamped to [1, 50]. Missing / non-numeric / non-positive collapses to the default. |
| CohortDepth | Integer | No | How many campaigns (including each row's own campaign at index 0) the Retention array tracks at most. Default 7, clamped to [1, 50]. Missing / non-numeric / non-positive collapses to the default. |
Top-level response fields:
| Field | Type | Description |
|---|---|---|
ListID | Integer | The list the matrix describes (echoed back). |
LastNCampaigns | Integer | The clamped value the model actually used. Echo this rather than the raw input — LastNCampaigns: 9999 will return 50. |
CohortDepth | Integer | The clamped value the model actually used. |
AsOf | String | ISO-8601 timestamp (UTC) of when the underlying counts were computed. Frozen for the lifetime of the cache entry, so two calls within the cache TTL share an AsOf. |
Campaigns | Array | Per-campaign rows in chronological ascending order (oldest first) by SendProcessStartedOn. Empty array when the list has no Sent campaigns. |
Campaigns[] row shape:
| Field | Type | Description |
|---|---|---|
CampaignID | Integer | The row's campaign. |
CampaignName | String | Campaign name as stored in oempro_campaigns. |
SentAt | String | SendProcessStartedOn value (YYYY-MM-DD HH:MM:SS, application timezone). |
BaseClickers | Integer | Distinct subscribers who clicked at least one link in this campaign. The denominator for every percentage in Retention. |
Retention | Array | Floats, length min(CohortDepth, n - rowIndex). Retention[0] is 100.0 when BaseClickers > 0, else 0.0. Retention[i] for i > 0 is cohort_overlap_count / BaseClickers * 100. |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getctrretentionmatrix",
"SessionID": "your-session-id",
"ListID": 123,
"LastNCampaigns": 10,
"CohortDepth": 7
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"LastNCampaigns": 10,
"CohortDepth": 7,
"AsOf": "2026-05-09T14:32:01+00:00",
"Campaigns": [
{
"CampaignID": 4567,
"CampaignName": "April Newsletter",
"SentAt": "2026-04-01 10:00:00",
"BaseClickers": 2500,
"Retention": [100.0, 72.0, 48.0, 31.0, 22.0, 15.0, 10.0]
},
{
"CampaignID": 4571,
"CampaignName": "April Promo",
"SentAt": "2026-04-08 10:00:00",
"BaseClickers": 1800,
"Retention": [100.0, 65.0, 41.0, 28.0, 19.0, 12.0]
}
]
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
1: ListID is missing (returned in the ErrorCode array as [1] by the required-field validator)
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is non-numeric or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Get Source Breakdown ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns the acquisition-source distribution for a single list — total counts grouped by SubscriptionSource plus a 12-month rolling time series keyed by month and source. Designed for the Reports tab → Sources panel introduced by issue #1965. Counts cover the entire row population (provenance is independent of deliverability — bounced and unsubscribed rows still came from somewhere). The series filters rows whose SubscriptionDate falls inside the last 12 months. Backed by a 5-minute Redis cache keyed by ListID.
Source values are the SubscriptionSource ENUM:
| Bucket | Set by |
|---|---|
CSVImport | All bulk import paths (CSV file, MySQL query, Mailchimp/ActiveCampaign/Drip pulls). The provider name lives in SubscriptionSourceRef. |
API | subscriber.create, subscriber.subscribe (when no integration context), Journey "Subscribe to list" action. |
Webhook | Wufoo integration, Campaign Monitor migrator, List Sync (SubscriptionSourceRef list_sync). The integration id lives in SubscriptionSourceRef. |
Manual | Admin/user "Add subscriber" UI in the dashboard. |
Other | Free-text custom source — the label lives in SubscriptionSourceRef. |
Unknown | Default for backfilled historical rows and any unspecified writes. |
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.getsourcebreakdown |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | Subscriber list to query. Must be owned by the authenticated user. |
Top-level response fields:
| Field | Type | Description |
|---|---|---|
ListID | Integer | The list the breakdown describes (echoed back). |
AsOf | String | ISO-8601 timestamp (UTC) of when the underlying counts were computed. Frozen for the lifetime of the cache entry, so two calls within the cache TTL share an AsOf. |
Buckets | Object | One integer per SubscriptionSource ENUM value — every value is present even when the count is 0, so clients can render a stable bucket list. |
Total | Integer | Sum of every bucket count. Covers the entire row population (no deliverability filter). |
Series | Array | 12-month rolling time series. One entry per (Month, SubscriptionSource) pair that has at least one row. Sorted by Month ASC then SubscriptionSource ASC. |
OtherRefs | Array | Top 10 SubscriptionSourceRef values within the Other bucket, sorted by Count DESC then Ref ASC. Empty array when Buckets.Other is 0. See entry shape below. |
Buckets object shape:
| Field | Type | Description |
|---|---|---|
CSVImport | Integer | Subscribers acquired through the bulk import pipeline. |
API | Integer | Subscribers acquired through programmatic API calls. |
Webhook | Integer | Subscribers acquired through push integrations / scheduled pulls. |
Manual | Integer | Subscribers manually added via the admin/user UI. |
Other | Integer | Subscribers tagged with a free-text custom source (label in SubscriptionSourceRef). |
Unknown | Integer | Backfilled historical rows or rows whose source wasn't supplied at insert time. |
Series entry shape:
| Field | Type | Description |
|---|---|---|
Month | String | YYYY-MM bucket; covers the last 12 months including the current month-to-date. |
SubscriptionSource | String | One of the Buckets keys. |
Count | Integer | New subscriber rows in that month with that source. |
OtherRefs entry shape:
| Field | Type | Description |
|---|---|---|
Ref | String | The SubscriptionSourceRef label as stored on the row. Empty string ("") is a valid value (the column is VARCHAR(64) NOT NULL DEFAULT '') and is returned verbatim — clients typically render it as "(no label)". Empty refs are not aggregated with non-empty refs. |
Count | Integer | Number of Other-source rows on the list with that exact Ref value. |
The list is capped at the top 10 entries by Count DESC. Ties on Count break by Ref ASC so two calls with the same underlying data return byte-identical responses (the 5-minute Redis cache relies on this). The rank-11+ tail is silently dropped — there is no "Other" sentinel entry. When Buckets.Other is 0, the array is [] and no query is issued.
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "list.getsourcebreakdown",
"SessionID": "your-session-id",
"ListID": 123
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"ListID": 123,
"AsOf": "2026-05-09T14:32:01+00:00",
"Buckets": {
"CSVImport": 5230,
"API": 1840,
"Webhook": 210,
"Manual": 45,
"Other": 12,
"Unknown": 8861
},
"Total": 16198,
"Series": [
{ "Month": "2025-06", "SubscriptionSource": "API", "Count": 120 },
{ "Month": "2025-06", "SubscriptionSource": "CSVImport", "Count": 450 },
{ "Month": "2025-07", "SubscriptionSource": "API", "Count": 95 },
{ "Month": "2025-07", "SubscriptionSource": "Webhook", "Count": 12 }
],
"OtherRefs": [
{ "Ref": "podcast-listeners", "Count": 142 },
{ "Ref": "trade-show-2026", "Count": 89 },
{ "Ref": "", "Count": 31 }
]
}{
"Success": false,
"ErrorCode": 99997,
"ErrorText": "Subscriber list does not exist or is not owned by the authenticated user"
}0: Success
1: ListID is missing (returned in the ErrorCode array as [1] by the required-field validator)
99997: Subscriber list does not exist or is not owned by the authenticated user (also returned when ListID is non-numeric or non-positive)
99998: Authentication failure or session expired
99999: User does not have the required permission (List.Get)Get Lists Overview (Lists + Custom Fields + Segments + Subscriber Tags) ​
POST/api.phpAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Get - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Returns all of the authenticated user's subscriber lists in a single response and, optionally, each list's custom fields, segments, and subscriber tags — eliminating the 1 + N (or 1 + 2N) round-trips (lists.get followed by per-list customfields.get, segments.get, and subscriber.tags.get) that a Decision-node / journey-trigger picker would otherwise make. Regardless of how many lists the account has, the endpoint issues a bounded number of queries (≈1 lists + 1 custom fields + 1 segments + 1 subscriber tags).
Only the authenticated user's own lists, fields, segments, and tags are returned (ownership is enforced via RelOwnerUserID for lists and UserID for tags). The response is intentionally lightweight: heavy blob columns (SegmentRules, SegmentRulesJson, FieldOptions raw string, Option1..5, raw Meta), per-segment subscriber counts, and per-tag subscriber counts are omitted. Choice-type custom fields carry a parsed Options array when custom fields are requested. Each custom field additionally includes ValidationMethod and — derived from its Meta blob — SQLDataType plus SQLDataTypeValues: both are null for plain fields, while SQLDataType is enum / set (with SQLDataTypeValues listing the allowed values) for choice drop-downs and a raw SQL type for custom-typed fields. Together with ValidationMethod (e.g. Numbers marks a numeric Single line field stored as DOUBLE), this is enough to derive a field's data type and validation operators from lists.overview alone, with no per-list customfields.get fan-out. The raw Meta blob itself is never exposed. Global (account-level, RelListID=0) custom fields are merged into every list's CustomFields[] and receive the same metadata enrichment. Subscriber tags are always list-scoped (there is no global tag concept) and are emitted as {TagID, Tag} objects ordered by Tag ascending.
The CustomFields, Segments, and SubscriberTags keys are present on each list only when their corresponding IncludeCustomFields / IncludeSegments / IncludeSubscriberTags flag is enabled.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: lists.overview |
| SessionID | String | No | Session ID obtained from login (use either SessionID or APIKey) |
| APIKey | String | No | User API key for authentication (use either SessionID or APIKey) |
| IncludeCustomFields | Boolean | No | When true, each list carries a CustomFields[] array — each field with parsed Options for choice fields plus ValidationMethod, SQLDataType, and SQLDataTypeValues metadata. Default: false |
| IncludeSegments | Boolean | No | When true, each list carries a Segments[] array. Default: false |
| IncludeSubscriberTags | Boolean | No | When true, each list carries a SubscriberTags[] array of {TagID, Tag} objects (ordered by Tag ascending). Default: false |
| Archived | String | No | Archive filter. Possible values: active (default — active lists only), archived (archived only), all (no filter) |
| Search | String | No | Case-insensitive substring matched against list Name and Description |
| OrderField | String | No | Sort field. Possible values: ListID, Name, CreatedOn. Default: Name |
| OrderType | String | No | Sort direction: ASC or DESC. Default: ASC |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "Command=lists.overview" \
-d "APIKey=your-user-api-key" \
-d "IncludeCustomFields=true" \
-d "IncludeSegments=true" \
-d "IncludeSubscriberTags=true"{
"Success": true,
"ErrorCode": 0,
"ErrorText": "",
"TotalListCount": 2,
"Lists": [
{
"ListID": 12,
"Name": "Newsletter",
"CustomFields": [
{
"CustomFieldID": 3,
"RelListID": 12,
"FieldName": "First Name",
"FieldType": "Single line",
"ValidationMethod": "Disabled",
"MergeTagAlias": "FirstName",
"Options": [],
"SQLDataType": null,
"SQLDataTypeValues": null
},
{
"CustomFieldID": 8,
"RelListID": 12,
"FieldName": "Membership Tier",
"FieldType": "Drop down",
"ValidationMethod": "Enum",
"MergeTagAlias": "Tier",
"Options": [
{ "label": "Bronze", "value": "bronze", "is_selected": "false" },
{ "label": "Gold", "value": "gold", "is_selected": "false" }
],
"SQLDataType": "enum",
"SQLDataTypeValues": ["Bronze", "Gold"]
}
],
"Segments": [
{
"SegmentID": 7,
"RelListID": 12,
"SegmentName": "Active 30d",
"SegmentOperator": "and"
}
],
"SubscriberTags": [
{
"TagID": 4,
"Tag": "VIP"
},
{
"TagID": 9,
"Tag": "Webinar"
}
]
},
{
"ListID": 15,
"Name": "Customers",
"CustomFields": [],
"Segments": [],
"SubscriberTags": []
}
]
}{
"Success": false,
"ErrorCode": 99999,
"ErrorText": "User does not have the required permission (Lists.Get)"
}0: Success
99998: Authentication failure or session expired
99999: User does not have the required permission (Lists.Get)Get a List's SMS Settings ​
GET/api/v1/list.sms.settingsAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Get - Legacy endpoint access via
/api.phpis also supported
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sms.settings.get |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | ID of the subscriber list |
curl -X POST https://example.com/api/v1/list.sms.settings \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sms.settings.get",
"APIKey": "your-api-key",
"ListID": 124
}'{
"Success": true,
"SMSSettings": {
"ListID": 124,
"MobilePhoneNumber": 8,
"MobilePhoneNumberCarrier": "",
"SMSOnly": false,
"IsSMSCapable": true
}
}{
"Success": false,
"ErrorCode": [2],
"ErrorMessage": {
"Code": 2,
"Message": "Invalid ListID."
}
}0: Success
1: Missing ListID parameter
2: Invalid ListID (does not exist or does not belong to this account)Response fields:
| Field | Description |
|---|---|
| MobilePhoneNumber | Custom field ID holding the mobile number, or null when none is configured |
| MobilePhoneNumberCarrier | Optional carrier custom field value, or null |
| SMSOnly | Whether the list holds only phone-only contacts |
| IsSMSCapable | false when no phone field is configured. A list without one cannot be an SMS campaign audience at all |
Update a List's SMS Settings ​
POST/api/v1/list.sms.settingsAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
List.Update - Legacy endpoint access via
/api.phpis also supported
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sms.settings.update |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | ID of the subscriber list |
| MobilePhoneNumber | Integer | No | Custom field ID that holds the mobile phone number. The field must belong to this account and apply to this list. Cannot be changed once the list is SMS-only |
| MobilePhoneNumberCarrier | String | No | Optional carrier value |
| SMSOnly | Boolean | No | Mark the list as holding only phone-only contacts. See the warning below |
Marking a list SMS-only rebuilds its table
Setting SMSOnly to true is refused while the list holds any subscriber with a real email address, because such a contact could never be reached on an SMS-only list.
It also drops the list's ft_email FULLTEXT index, which is dead weight once every address is a placeholder nobody searches by words, and still costs on every insert. MySQL can only drop a FULLTEXT index with ALGORITHM=COPY, which holds the table for the duration, so the request is refused above 100,000 rows. Set the flag before loading contacts.
Turning the flag back off does not rebuild the index, because that would be a second copying rebuild on a table that may by then be large. Re-adding it is a deliberate operator action.
The mobile phone number field cannot be repointed while the list is SMS-only: every contact's address was derived from the field it currently names, and nothing would repair them.
curl -X POST https://example.com/api/v1/list.sms.settings \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sms.settings.update",
"APIKey": "your-api-key",
"ListID": 124,
"MobilePhoneNumber": 8,
"SMSOnly": true
}'{
"Success": true,
"SMSSettings": {
"ListID": 124,
"MobilePhoneNumber": 8,
"MobilePhoneNumberCarrier": "",
"SMSOnly": true,
"IsSMSCapable": true,
"FullTextIndexDropped": true
}
}{
"Success": false,
"Errors": [
{
"Code": 8,
"Message": "This list holds 5 subscriber(s) with a real email address, so it cannot be marked SMS-only. Remove or move them first."
}
],
"ErrorCode": 8
}0: Success
1: Missing ListID parameter
2: Invalid ListID (does not exist or does not belong to this account)
3: MobilePhoneNumber is not a custom field id
4: Invalid MobilePhoneNumber (field does not exist, is not owned by this account, or does not apply to this list)
5: The mobile phone number field cannot be changed on an SMS-only list
6: The subscriber table for this list does not exist
7: The subscriber list could not be inspected, so SMSOnly was not changed
8: The list holds subscribers with a real email address
9: The list is too large to rebuild (above 100,000 rows)
10: The SMSOnly flag could not be writtenList Sync ​
New in v6.0.8 A list sync keeps a list up to date from an external MySQL table orSELECT query on a schedule. Each run reads the source, adds rows that are new, updates rows that changed and, in full mode, can unsubscribe or delete subscribers whose rows left the source. The sync is one-way: nothing is written back to the source.These commands replace the legacy MySQL list sync (the Sync* parameters of list.update). See API Behavior Changes in v6.0.8 for what changed for existing integrations.
How a run treats your subscribers:
- A subscriber who is unsubscribed, hard bounced or suppressed (list, account or system-wide suppression, including domain and pattern entries) is skipped. A sync never resubscribes or rewrites such a subscriber, and a removal skips it too.
- New subscribers are added as
Subscribedwithout a confirmation email, also on a double opt-in list. - Autoresponders, journeys, web service integrations and the list's subscribe and unsubscribe behaviours run only when
TriggerActionsistrue. It isfalseby default. - The account's subscriber limit applies. Rows past the limit fail with the reason
subscriber_limit. - Only the custom fields named in
FieldMappingare written. Global custom fields are supported. - Removals (
RemovalBehaviorunsubscribeordelete) happen only in full mode, and only after a run read the whole source without an error. - After 5 failed runs in a row a sync is paused. Resume it with
list.sync.updateandStatusActive.
Every command needs the Lists.Sync permission, which is off for every user group by default. An administrator enables it on the user group (Sync lists from an external database). Groups that had the legacy List.ExternalMySQL permission get Lists.Sync on upgrade.
The source host is checked on every connection. Loopback, private, link-local, carrier-grade NAT, unique-local, multicast and reserved addresses, and Octeth's own containers, are refused unless the operator lists them in LIST_SYNC_ALLOWED_HOSTS. The connection runs in a read-only session and each statement is stopped after 60 seconds.
The connection is encrypted with TLS by default (TLS true). Octeth checks the server's certificate against the public certificate authorities, or against the sync's own CACertificate when one is set, and checks that it was issued for Host. A server that offers no TLS, a certificate Octeth cannot trust and a certificate for another host each fail the connection with ProbeErrorCode tls_failed and a message that names the cause, and the session must use TLS 1.2 or later. Set TLS to false only for a database on a trusted private network: the synced data and the password then travel unencrypted, and Octeth answers a server that asks for the password in clear text (mysql_clear_password). Syncs converted from the legacy MySQL sync start with TLS false, because the legacy sync never encrypted, and report TLSWarning true until TLS is turned on.
The sync object
list.sync.list, list.sync.get, list.sync.create, list.sync.update and list.sync.run return syncs in this shape. The password is never returned. Times are UTC, YYYY-MM-DD HH:MM:SS, or null.
| Field | Type | Description |
|---|---|---|
| SyncID | Integer | ID of the sync |
| ListID | Integer | The list the sync writes to |
| Name | String | Name of the sync |
| ConnectorType | String | Always mysql |
| Host, Port, Username, Database | String, Integer, String, String | The connection |
| HasPassword | Boolean | Whether a password is stored |
| TLS | Boolean | Whether the connection is encrypted and the server certificate verified |
| HasCACertificate | Boolean | Whether the sync has its own CA certificate. The certificate itself is never returned |
| TLSWarning | Boolean | true for a sync converted from the legacy MySQL sync that still connects without TLS |
| SourceType | String | table or query |
| SourceTable | String | The table, when SourceType is table |
| SourceQuery | String | The SELECT query, when SourceType is query |
| KeyType | String | email or id |
| KeyColumn | String | The source column that identifies a row |
| FieldMapping | Array | {"Source": column, "Target": "EmailAddress"} or {"Source": column, "Target": "CustomField7"} entries |
| Tags | Array | Tag IDs given to every subscriber the sync adds or updates |
| Mode | String | full or incremental |
| WatermarkColumn | String | The column incremental mode reads changes by |
| LastWatermark | String | The highest watermark value a successful incremental run has seen |
| RemovalBehavior | String | ignore, unsubscribe or delete |
| TriggerActions | Boolean | Whether autoresponders, journeys, web services and list behaviours run |
| IntervalMinutes | Integer | Minutes between runs |
| Status | String | Active, Failing (the last run failed) or Paused |
| ConsecutiveFailures | Integer | Failed runs in a row |
| LastError | String | The error of the last failed run, or empty |
| CreatedFrom | String | user, or legacy for a sync converted from the legacy MySQL sync |
| NextRunAt, LastRunAt, CreatedAt, UpdatedAt | String | Times of the sync |
| LastRun | Object | The latest run (see the run object), or null |
The run object
| Field | Type | Description |
|---|---|---|
| RunID | Integer | ID of the run |
| SyncID | Integer | The sync |
| Trigger | String | schedule or manual |
| Status | String | Running, Completed or Failed |
| StartedAt, FinishedAt | String | Times of the run. FinishedAt is null while it runs |
| RowsRead | Integer | Rows read from the source |
| Added, Updated, Unchanged | Integer | Subscribers added, updated, and left as they were |
| Removed | Integer | Subscribers unsubscribed or deleted by the removal behaviour |
| Skipped | Integer | Rows skipped because the subscriber is unsubscribed, hard bounced or suppressed |
| Failed | Integer | Rows that could not be written, for example an invalid email address or the subscriber limit |
| ErrorText | String | Why the run failed, or empty |
List Syncs New in v6.0.8 ​
GET/api/v1/list.sync.listAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 100 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Returns the account's list syncs, each with its latest run. Send ListID to return the syncs of one list only.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.list |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | No | Return only the syncs of this list |
curl -X POST https://example.com/api/v1/list.sync.list \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.list",
"APIKey": "your-api-key",
"ListID": 124
}'{
"Success": true,
"ErrorCode": 0,
"Syncs": [
{
"SyncID": 12,
"ListID": 124,
"Name": "Customers from the shop database",
"ConnectorType": "mysql",
"Host": "db.example.com",
"Port": 3306,
"Username": "octeth_reader",
"Database": "shop",
"HasPassword": true,
"SourceType": "table",
"SourceTable": "customers",
"SourceQuery": "",
"KeyType": "email",
"KeyColumn": "email",
"FieldMapping": [
{ "Source": "email", "Target": "EmailAddress" },
{ "Source": "first_name", "Target": "CustomField7" }
],
"Tags": [3],
"Mode": "full",
"WatermarkColumn": "",
"LastWatermark": "",
"RemovalBehavior": "unsubscribe",
"TriggerActions": false,
"IntervalMinutes": 1440,
"Status": "Active",
"ConsecutiveFailures": 0,
"LastError": "",
"CreatedFrom": "user",
"NextRunAt": "2026-11-27 09:00:00",
"LastRunAt": "2026-11-26 09:00:00",
"CreatedAt": "2026-11-20 14:12:05",
"UpdatedAt": "2026-11-26 09:01:42",
"LastRun": {
"RunID": 88,
"SyncID": 12,
"Trigger": "schedule",
"Status": "Completed",
"StartedAt": "2026-11-26 09:00:00",
"FinishedAt": "2026-11-26 09:01:42",
"RowsRead": 5120,
"Added": 14,
"Updated": 37,
"Unchanged": 5061,
"Removed": 2,
"Skipped": 6,
"Failed": 0,
"ErrorText": ""
}
}
]
}{
"Success": false,
"ErrorCode": 2,
"ErrorText": "List not found"
}0: Success
1: ListID is invalid
2: List not found (does not exist or does not belong to this account)Get a List Sync New in v6.0.8 ​
GET/api/v1/list.sync.getAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 100 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Returns one sync with its latest run. The response carries HasPassword, never the password.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.get |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SyncID | Integer | Yes | ID of the sync |
curl -X POST https://example.com/api/v1/list.sync.get \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.get",
"APIKey": "your-api-key",
"SyncID": 12
}'{
"Success": true,
"ErrorCode": 0,
"Sync": {
"SyncID": 12,
"ListID": 124,
"Name": "Customers from the shop database",
"ConnectorType": "mysql",
"Host": "db.example.com",
"Port": 3306,
"Username": "octeth_reader",
"Database": "shop",
"HasPassword": true,
"SourceType": "table",
"SourceTable": "customers",
"SourceQuery": "",
"KeyType": "email",
"KeyColumn": "email",
"FieldMapping": [
{ "Source": "email", "Target": "EmailAddress" },
{ "Source": "first_name", "Target": "CustomField7" }
],
"Tags": [3],
"Mode": "full",
"WatermarkColumn": "",
"LastWatermark": "",
"RemovalBehavior": "unsubscribe",
"TriggerActions": false,
"IntervalMinutes": 1440,
"Status": "Active",
"ConsecutiveFailures": 0,
"LastError": "",
"CreatedFrom": "user",
"NextRunAt": "2026-11-27 09:00:00",
"LastRunAt": "2026-11-26 09:00:00",
"CreatedAt": "2026-11-20 14:12:05",
"UpdatedAt": "2026-11-26 09:01:42",
"LastRun": null
}
}{
"Success": false,
"ErrorCode": 2,
"ErrorText": "Sync not found"
}0: Success
1: SyncID is missing or invalid
2: Sync not found (does not exist or does not belong to this account)Create a List Sync New in v6.0.8 ​
POST/api/v1/list.sync.createAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 100 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Creates a scheduled sync from a MySQL table or SELECT query into one of the account's lists. The new sync is due at once, so its first run starts within a minute. The password is stored encrypted and never returned. Test the connection and read the source's columns first with list.sync.test and list.sync.columns.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.create |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| ListID | Integer | Yes | ID of the list to sync into |
| Name | String | Yes | Name of the sync, at most 150 characters |
| ConnectorType | String | No | Source type. Possible values: mysql (default) |
| Host | String | Yes | Host name or IP address of the MySQL server, without a scheme or path |
| Port | Integer | No | Port of the MySQL server, 1 to 65535. Default 3306 |
| Username | String | Yes | MySQL user. Use a user that can only read the source |
| Password | String | Yes | MySQL password, at most 1024 characters. Stored encrypted |
| Database | String | Yes | Database name |
| TLS | Boolean | No | Encrypt the connection and verify the server's certificate and host name. Default true. false sends the data and the password unencrypted: use it only on a trusted private network |
| CACertificate | String | No | The CA certificate that signed the server's certificate, in PEM form (one or more certificates, at most 16 KB). Needed for a self-signed server or a managed database CA such as Amazon RDS, Google Cloud SQL or Azure. Without it, Octeth trusts the public certificate authorities. Ignored when TLS is false. Stored encrypted and never returned |
| SourceType | String | No | Possible values: table (default), query |
| SourceTable | String | Conditional | Required when SourceType is table. The table name, or database.table |
| SourceQuery | String | Conditional | Required when SourceType is query. One SELECT statement, at most 65,535 bytes |
| KeyType | String | No | What identifies a row. Possible values: email (default), id. With id, an email address that changes in the source renames the existing subscriber instead of adding a new one |
| KeyColumn | String | Yes | The source column that identifies a row. With KeyType email it must be the column mapped to EmailAddress |
| FieldMapping | Array or String | Yes | JSON array (or JSON string) of {"Source": "<column>", "Target": "<field>"} entries. Target is EmailAddress or CustomField followed by a custom field ID, such as CustomField7. Exactly one entry targets EmailAddress, and each target appears once. A custom field must belong to the list or be a global field of the account. Columns left out are not imported |
| Tags | Array | No | Tag IDs of the list (array, JSON array or comma-separated list, at most 50) given to every subscriber the sync adds or updates |
| Mode | String | No | Possible values: full (default, reads every row each run), incremental (reads only rows whose watermark is above the last value seen) |
| WatermarkColumn | String | Conditional | Required when Mode is incremental. A column that grows when a row changes, such as updated_at or an auto-increment ID |
| RemovalBehavior | String | No | What happens to subscribers whose row left the source. Possible values: ignore (default), unsubscribe (from this list only), delete (from this list). Applies in full mode only, because an incremental run cannot see removed rows |
| TriggerActions | Boolean | No | Run autoresponders, journeys, web service integrations and list behaviours for synced subscribers. Default false. With true, the first run enrolls every row of the source as a new subscriber |
| IntervalMinutes | Integer | No | Minutes between runs, 15 to 43200 (30 days). Default 1440 |
curl -X POST https://example.com/api/v1/list.sync.create \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.create",
"APIKey": "your-api-key",
"ListID": 124,
"Name": "Customers from the shop database",
"Host": "db.example.com",
"Port": 3306,
"Username": "octeth_reader",
"Password": "source-db-password",
"Database": "shop",
"SourceType": "query",
"SourceQuery": "SELECT id, email, first_name FROM customers WHERE active = 1",
"KeyType": "id",
"KeyColumn": "id",
"FieldMapping": [
{ "Source": "email", "Target": "EmailAddress" },
{ "Source": "first_name", "Target": "CustomField7" }
],
"Tags": [3],
"Mode": "full",
"RemovalBehavior": "unsubscribe",
"TriggerActions": false,
"IntervalMinutes": 60
}'{
"Success": true,
"ErrorCode": 0,
"SyncID": 12,
"Sync": {
"SyncID": 12,
"ListID": 124,
"Name": "Customers from the shop database",
"HasPassword": true,
"SourceType": "query",
"KeyType": "id",
"KeyColumn": "id",
"Mode": "full",
"RemovalBehavior": "unsubscribe",
"TriggerActions": false,
"IntervalMinutes": 60,
"Status": "Active",
"CreatedFrom": "user",
"NextRunAt": "2026-11-26 14:12:05",
"LastRun": null
}
}{
"Success": false,
"ErrorCode": 12,
"ErrorText": "FieldMapping must map exactly one column to EmailAddress"
}0: Success
1: ListID is missing or invalid
2: List not found (does not exist or does not belong to this account)
3: Name is missing or longer than 150 characters
4: ConnectorType is not mysql
5: Host, Port, Username or Database is missing or invalid
6: Password is missing
7: SourceType is not table or query
8: SourceTable or SourceQuery is missing for the SourceType
9: SourceQuery is not a single SELECT statement
10: KeyType is not email or id
11: KeyColumn is missing, or with KeyType email it is not the column mapped to EmailAddress
12: FieldMapping is invalid (wrong shape, no or several EmailAddress targets, or a target mapped twice)
13: A mapped custom field is not a field of this list or a global field of the account
14: Tags is invalid, or a tag does not exist on this list
15: Mode is not full or incremental
16: WatermarkColumn is missing for incremental mode
17: RemovalBehavior is not ignore, unsubscribe or delete
18: IntervalMinutes is not between 15 and 43200
19: TriggerActions is not true or false
20: The sync could not be saved
25: TLS is not true or false
26: CACertificate is not a PEM certificate, or is longer than 16 KBThe Sync object in the success response above is shortened. It has every field of the sync object.
Update a List Sync New in v6.0.8 ​
POST/api/v1/list.sync.updateAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 100 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Changes a sync, or pauses or resumes it. Send any parameter of list.sync.create except ListID: fields you leave out keep their stored value. A sync cannot move to another list.
- Password. Omitted or empty keeps the stored password, but only while
Host,PortandUsernameare unchanged,TLSis not turned off andCACertificateis unchanged. A stored password is never sent to another server, paired with another user or resent without encryption. Change any of these without sending the password and the call fails with error6. TurningTLSon keeps the stored password. - CA certificate. Omitted keeps the stored certificate, an empty value removes it, and a new one replaces it.
- Status.
Pausedstops scheduled runs.Activeresumes the sync: it resetsConsecutiveFailures, clearsLastErrorand makes the sync due at once. - Source and key changes. A change of
SourceType,SourceTable,SourceQuery,KeyTypeorKeyColumnclears what the sync remembers about each source row, so the next run matches rows to subscribers by email again and never treats the old rows as removed. A change of the source, key,ModeorWatermarkColumnalso resetsLastWatermark, and is refused with error24while a run is in progress.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.update |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SyncID | Integer | Yes | ID of the sync |
| Status | String | No | Possible values: Active (resume), Paused (pause) |
| Name | String | No | New name, at most 150 characters |
| ConnectorType | String | No | Possible values: mysql |
| Host | String | No | New MySQL host. Send Password with it |
| Port | Integer | No | New MySQL port, 1 to 65535. Send Password with it |
| Username | String | No | New MySQL user. Send Password with it |
| Password | String | No | New MySQL password. Omitted or empty keeps the stored one while Host, Port and Username are unchanged, TLS is not turned off and CACertificate is unchanged |
| Database | String | No | New database name |
| TLS | Boolean | No | Turn the encrypted connection on or off. Turning it off needs Password |
| CACertificate | String | No | A new CA certificate in PEM form, or an empty value to remove the stored one. Needs Password |
| SourceType | String | No | Possible values: table, query |
| SourceTable | String | No | The table, when SourceType is table |
| SourceQuery | String | No | One SELECT statement, when SourceType is query |
| KeyType | String | No | Possible values: email, id |
| KeyColumn | String | No | The source column that identifies a row |
| FieldMapping | Array or String | No | The whole mapping, which replaces the stored one. Same format as in list.sync.create |
| Tags | Array | No | The whole tag set, which replaces the stored one. An empty value removes every tag |
| Mode | String | No | Possible values: full, incremental |
| WatermarkColumn | String | No | Required when Mode is incremental |
| RemovalBehavior | String | No | Possible values: ignore, unsubscribe, delete |
| TriggerActions | Boolean | No | Run autoresponders, journeys, web service integrations and list behaviours for synced subscribers |
| IntervalMinutes | Integer | No | Minutes between runs, 15 to 43200 |
Send at least one config field or Status.
curl -X POST https://example.com/api/v1/list.sync.update \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.update",
"APIKey": "your-api-key",
"SyncID": 12,
"IntervalMinutes": 360,
"Status": "Active"
}'{
"Success": true,
"ErrorCode": 0,
"Sync": {
"SyncID": 12,
"ListID": 124,
"Name": "Customers from the shop database",
"IntervalMinutes": 360,
"Status": "Active",
"ConsecutiveFailures": 0,
"LastError": "",
"NextRunAt": "2026-11-26 15:30:00"
}
}{
"Success": false,
"ErrorCode": 6,
"ErrorText": "Send the password again: Host, Port, Username, TLS or CACertificate changed"
}0: Success
1: SyncID is missing or invalid
2: Sync not found (does not exist or does not belong to this account)
3: Name is missing or longer than 150 characters
4: ConnectorType is not mysql
5: Host, Port, Username or Database is missing or invalid
6: Password is missing, or Host, Port, Username, TLS or CACertificate changed and no password was sent
7: SourceType is not table or query
8: SourceTable or SourceQuery is missing for the SourceType
9: SourceQuery is not a single SELECT statement
10: KeyType is not email or id
11: KeyColumn is missing, or with KeyType email it is not the column mapped to EmailAddress
12: FieldMapping is invalid (wrong shape, no or several EmailAddress targets, or a target mapped twice)
13: A mapped custom field is not a field of this list or a global field of the account
14: Tags is invalid, or a tag does not exist on this list
15: Mode is not full or incremental
16: WatermarkColumn is missing for incremental mode
17: RemovalBehavior is not ignore, unsubscribe or delete
18: IntervalMinutes is not between 15 and 43200
19: TriggerActions is not true or false
20: The sync could not be saved
21: Status is not Active or Paused
22: ListID cannot change
23: Nothing to change (no config field and no Status sent)
24: A run is in progress (source, key, mode or watermark change)
25: TLS is not true or false
26: CACertificate is not a PEM certificate, or is longer than 16 KBThe Sync object in the success response above is shortened. It has every field of the sync object.
Delete a List Sync New in v6.0.8 ​
POST/api/v1/list.sync.deleteAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 100 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Deletes a sync with its run history. Subscribers it added stay on the list. A sync cannot be deleted while it runs: pause it, then delete it when the run has stopped.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.delete |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SyncID | Integer | Yes | ID of the sync |
curl -X POST https://example.com/api/v1/list.sync.delete \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.delete",
"APIKey": "your-api-key",
"SyncID": 12
}'{
"Success": true,
"ErrorCode": 0
}{
"Success": false,
"ErrorCode": 4,
"ErrorText": "A run is in progress. Pause the sync, then delete it when the run has stopped."
}0: Success
1: SyncID is missing or invalid
2: Sync not found (does not exist or does not belong to this account)
3: The sync could not be deleted
4: A run is in progressTest a List Sync Connection New in v6.0.8 ​
POST/api/v1/list.sync.testAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 10 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Connects to a MySQL server and, when you send source fields, checks the source too. Nothing is stored. The host is checked against the private-address rules and LIST_SYNC_ALLOWED_HOSTS as on every run.
Send SyncID to test a stored sync: its connection and source fill the fields you leave out. Its stored password is used only while Host, Port and Username are unchanged.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.test |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SyncID | Integer | No | A stored sync whose connection and source fill the fields not sent |
| ConnectorType | String | No | Possible values: mysql (default) |
| Host | String | Conditional | MySQL host. Required without SyncID |
| Port | Integer | No | MySQL port. Default 3306 |
| Username | String | Conditional | MySQL user. Required without SyncID |
| Password | String | Conditional | MySQL password. Required without SyncID, or when Host, Port or Username differs from the stored sync, TLS is turned off or CACertificate changes |
| Database | String | Conditional | Database name. Required without SyncID |
| TLS | Boolean | No | As in list.sync.create. Default true, or the stored sync's value with SyncID |
| CACertificate | String | No | As in list.sync.create. With SyncID, omitted uses the stored certificate |
| SourceType | String | No | table or query. Send a source field to check the source as well |
| SourceTable | String | No | The table to check |
| SourceQuery | String | No | The SELECT query to check |
curl -X POST https://example.com/api/v1/list.sync.test \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.test",
"APIKey": "your-api-key",
"Host": "db.example.com",
"Port": 3306,
"Username": "octeth_reader",
"Password": "source-db-password",
"Database": "shop"
}'{
"Success": true,
"ErrorCode": 0
}{
"Success": false,
"ErrorCode": 7,
"ErrorText": "This host is not allowed. Private, loopback and internal addresses are refused unless the administrator lists them in LIST_SYNC_ALLOWED_HOSTS.",
"ProbeErrorCode": "host_blocked"
}0: Success
1: SyncID is invalid
2: Sync not found (does not exist or does not belong to this account)
3: Host, Port, Username or Database is missing or invalid
4: Password is required
5: The source is missing or invalid
6: SourceQuery is not a single SELECT statement
7: The connection or source check failed (see ProbeErrorCode)
8: The sync service is not reachable
9: ConnectorType is not supported
10: TLS is not true or false
11: CACertificate is not a PEM certificate, or is longer than 16 KBWith error 7, ProbeErrorCode says what failed: host_blocked (the host is refused), query_rejected (the query is not a single read-only SELECT), connect_failed (the server could not be reached or refused the login), tls_failed (the server offers no TLS, its certificate is not trusted, or it was not issued for this host; ErrorText says which), query_failed (the table or query could not be read) or invalid. ErrorText never contains the password.
Get List Sync Source Columns New in v6.0.8 ​
POST/api/v1/list.sync.columnsAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 10 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Returns the columns of a source and up to five sample rows, to build FieldMapping. Nothing is stored. It takes the same parameters as list.sync.test, and the source is required.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.columns |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SyncID | Integer | No | A stored sync whose connection and source fill the fields not sent |
| ConnectorType | String | No | Possible values: mysql (default) |
| Host | String | Conditional | MySQL host. Required without SyncID |
| Port | Integer | No | MySQL port. Default 3306 |
| Username | String | Conditional | MySQL user. Required without SyncID |
| Password | String | Conditional | MySQL password. Required without SyncID, or when Host, Port or Username differs from the stored sync, TLS is turned off or CACertificate changes |
| Database | String | Conditional | Database name. Required without SyncID |
| TLS | Boolean | No | As in list.sync.create. Default true, or the stored sync's value with SyncID |
| CACertificate | String | No | As in list.sync.create. With SyncID, omitted uses the stored certificate |
| SourceType | String | Conditional | Possible values: table (default), query. Required without SyncID |
| SourceTable | String | Conditional | Required when SourceType is table |
| SourceQuery | String | Conditional | Required when SourceType is query. One SELECT statement |
curl -X POST https://example.com/api/v1/list.sync.columns \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.columns",
"APIKey": "your-api-key",
"Host": "db.example.com",
"Username": "octeth_reader",
"Password": "source-db-password",
"Database": "shop",
"SourceType": "table",
"SourceTable": "customers"
}'{
"Success": true,
"ErrorCode": 0,
"Columns": [
{ "Name": "id", "Type": "int" },
{ "Name": "email", "Type": "varchar" },
{ "Name": "first_name", "Type": "varchar" }
],
"Sample": [
{ "id": "1", "email": "jane@example.com", "first_name": "Jane" },
{ "id": "2", "email": "omar@example.com", "first_name": "Omar" }
]
}{
"Success": false,
"ErrorCode": 7,
"ErrorText": "The source query failed: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'shop.customer' doesn't exist",
"ProbeErrorCode": "query_failed"
}0: Success
1: SyncID is invalid
2: Sync not found (does not exist or does not belong to this account)
3: Host, Port, Username or Database is missing or invalid
4: Password is required
5: The source is missing or invalid
6: SourceQuery is not a single SELECT statement
7: The connection or source check failed (see ProbeErrorCode)
8: The sync service is not reachable
9: ConnectorType is not supported
10: TLS is not true or false
11: CACertificate is not a PEM certificate, or is longer than 16 KBRun a List Sync Now New in v6.0.8 ​
POST/api/v1/list.sync.runAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 100 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Makes a sync due now, so its next run starts within a minute. A sync that is running finishes that run first. A paused sync is refused: resume it with list.sync.update and Status Active, which also makes it due at once.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.run |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SyncID | Integer | Yes | ID of the sync |
curl -X POST https://example.com/api/v1/list.sync.run \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.run",
"APIKey": "your-api-key",
"SyncID": 12
}'{
"Success": true,
"ErrorCode": 0,
"Sync": {
"SyncID": 12,
"ListID": 124,
"Name": "Customers from the shop database",
"Status": "Active",
"NextRunAt": "2026-11-26 15:30:00"
}
}{
"Success": false,
"ErrorCode": 3,
"ErrorText": "The sync is paused. Resume it before running it."
}0: Success
1: SyncID is missing or invalid
2: Sync not found (does not exist or does not belong to this account)
3: The sync is paused
4: The sync could not be updatedThe Sync object in the success response above is shortened. It has every field of the sync object.
Get List Sync Run History New in v6.0.8 ​
GET/api/v1/list.sync.runsAPI Usage Notes
- Authentication required: User API Key
- Required permissions:
Lists.Sync - Rate limit: 100 requests per 60 seconds
- Legacy endpoint access via
/api.phpis also supported
Returns the runs of a sync, newest first, with what each run changed. Total is the number of runs the sync has.
A run whose added contacts were held for review by list import screening carries a Screening object: Status is held until an administrator releases it, then released, and Reason is the explanation to show the account. Campaigns to the list need approval while a run is held. Every other run has no Screening key.
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: list.sync.runs |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| SyncID | Integer | Yes | ID of the sync |
| Limit | Integer | No | Runs to return, 1 to 100. Default 20 |
| Offset | Integer | No | Runs to skip. Default 0 |
curl -X POST https://example.com/api/v1/list.sync.runs \
-H "Content-Type: application/json" \
-d '{
"Command": "list.sync.runs",
"APIKey": "your-api-key",
"SyncID": 12,
"Limit": 20,
"Offset": 0
}'{
"Success": true,
"ErrorCode": 0,
"Runs": [
{
"RunID": 88,
"SyncID": 12,
"Trigger": "schedule",
"Status": "Completed",
"StartedAt": "2026-11-26 09:00:00",
"FinishedAt": "2026-11-26 09:01:42",
"RowsRead": 5120,
"Added": 14,
"Updated": 37,
"Unchanged": 5061,
"Removed": 2,
"Skipped": 6,
"Failed": 0,
"ErrorText": "",
"Screening": {
"Status": "held",
"Reason": "Contacts this list sync added are waiting for a review by our team, and campaigns to the list need approval until then. Many addresses are shared role mailboxes such as info@ or sales@."
}
}
],
"Total": 42
}{
"Success": false,
"ErrorCode": 3,
"ErrorText": "Limit must be between 1 and 100"
}0: Success
1: SyncID is missing or invalid
2: Sync not found (does not exist or does not belong to this account)
3: Limit or Offset is invalid (Limit must be 1 to 100, Offset a non-negative integer)
