Internal API Documentation ​
Internal API endpoints for system operations, bounce processing, and server-to-server communications. These endpoints are typically used by internal services and infrastructure components.
Register Bounce Email ​
POST/api.php (legacy)API Usage Notes
- No authentication required
- This endpoint is designed for internal bounce processing systems
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: internal.bounce.register |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| EmailMessage | String | Yes | Raw bounce email message content (RFC 822 format) |
| MailFrom | String | No | MAIL FROM envelope address (default: localhost) |
| PowerMTABounceCategory | String | No | PowerMTA bounce category classification |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "internal.bounce.register",
"EmailMessage": "From: MAILER-DAEMON@example.com\r\nTo: sender@example.com\r\n...",
"MailFrom": "bounce@example.com",
"PowerMTABounceCategory": "bad-mailbox"
}'{
"Success": true,
"ErrorCode": 0,
"ErrorText": ""
}{
"Success": false,
"ErrorCode": 0,
"ErrorText": "Bounce processing error"
}0: Success or processing completedRegister Server-to-Server Conversion Postback ​
POST/api.php (legacy)API Usage Notes
- No authentication required
- This endpoint is designed for server-to-server conversion tracking
- Tracks conversions from external systems and updates campaign/autoresponder statistics
- The OCRID may also be a journey identifier, minted for clicks in journeys with S2S postback tracking on. Its conversion is credited to the journey, the Send Email action and the email gateway queue row (
RelJourneyID,RelActionID,RelQueueID,AttributionSourcegateway), and journey identifiers are always signed - Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: internal.s2spostback.register |
| SessionID | String | No | Session ID obtained from login |
| APIKey | String | No | API key for authentication |
| OCRID | String | Yes | Encrypted conversion tracking ID containing user, campaign, subscriber, and list information |
| Channel | String | No | Conversion channel name (e.g., "purchase", "signup") |
| Value | Number | No | Conversion value amount |
| Unit | String | No | Conversion value unit (e.g., "USD", "points") |
curl -X POST https://example.com/api.php \
-H "Content-Type: application/json" \
-d '{
"Command": "internal.s2spostback.register",
"OCRID": "encrypted_tracking_id_string",
"Channel": "purchase",
"Value": 49.99,
"Unit": "USD"
}'{
"Success": true,
"ocrid": "encrypted_tracking_id_string",
"ErrorCode": 0,
"ErrorText": ""
}{
"Success": false,
"ocrid": "encrypted_tracking_id_string",
"ErrorCode": 2,
"ErrorText": "user is invalid"
}0: Success
1: OCRID parameter is missing
2: User is invalid or not found
3: Campaign or autoresponder must be valid (both cannot be invalid)
6: OCRID signature is invalid
7: Conversion value is not a number within the accepted range
8: Conversion could not be recorded
9: Journey, action or queue record does not match the identifierNotify the Reviewer of a Submitted Account Review New in v6.0.6 ​
POST/api.php (legacy)Emails the alert address (ALERT_RECIPIENT_EMAIL) the answers an account gave in the account review questionnaire of the new user interface, with a link to the account, through the install's system email settings. The new user interface calls it when a customer first submits the questionnaire, and at most once a day after that. See Reviewing New Accounts.
API Usage Notes
- Authentication required: Admin API Key
- Required privileges:
User.Edit - Only the new user interface's own container may call it. A call from any other address is refused with error 4.
- Not available to admin agent keys
- One notice per account per 24 hours. A call inside that window sends nothing and returns
Sent: false. - Rate limit: 60 requests per 60 seconds
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: admin.accountreview.notify |
| AdminAPIKey | String | Yes | Admin API key |
| UserID | Integer | Yes | The account that submitted its answers |
| Answers | String | Yes | A JSON-encoded list of at most 50 objects, each with a string label (at most 255 characters) and a string value (at most 5,000 characters). An empty list [] is accepted. Labels and values are plain text: they are HTML-escaped into the email |
curl -X POST https://example.com/api.php \
--data-urlencode "Command=admin.accountreview.notify" \
--data-urlencode "AdminAPIKey=your-admin-api-key" \
--data-urlencode "UserID=42" \
--data-urlencode 'Answers=[{"label":"Company or organization name","value":"Acme Inc."},{"label":"Industry","value":"Ecommerce and retail"}]'{
"Success": true,
"ErrorCode": 0,
"Sent": true
}{
"Success": false,
"ErrorCode": 4,
"ErrorText": "This command is only available to the new user interface"
}0: Success. Sent is false when a notice for this account went out in the last 24 hours
1: UserID missing or not a positive integer
2: User not found
3: Answers missing or not a valid list of label and value pairs
4: Not called from the new user interface
5: The notification email could not be sent
5003: The account is outside the user groups this admin may accessPull Approved Accounts for the Approval Email New in v6.0.6 ​
POST/api.php (legacy)Returns the accounts that moved from Untrusted to Trusted since the last call, oldest first, and removes them from the queue. user.update queues every such change. The new user interface calls it every minute and emails the accounts that submitted a review application. See Reviewing New Accounts.
API Usage Notes
- Authentication required: Admin API Key
- Required privileges:
User.Edit - Only the new user interface's own container may call it, because a returned entry is gone. A call from any other address is refused with error 4.
- Not available to admin agent keys
- Rate limit: 60 requests per 60 seconds
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: admin.accountreview.approvals.pull |
| AdminAPIKey | String | Yes | Admin API key |
| Limit | Integer | No | How many entries to return, from 1 to 200. Default 50 |
curl -X POST https://example.com/api.php \
--data-urlencode "Command=admin.accountreview.approvals.pull" \
--data-urlencode "AdminAPIKey=your-admin-api-key" \
--data-urlencode "Limit=100"{
"Success": true,
"ErrorCode": 0,
"Approvals": [
{
"UserID": 42,
"ApprovedAt": 1794571200
}
]
}{
"Success": false,
"ErrorCode": 1,
"ErrorText": "Limit must be a whole number from 1 to 200"
}0: Success. ApprovedAt is a Unix timestamp
1: Limit is not a whole number from 1 to 200
4: Not called from the new user interface
5: The approval queue could not be readGet the Account Review Queue ​
POST/api.phpNew in v6.0.8Returns the accounts that wait for review (reputation not Trusted), oldest signup first, with the signals staff decide on. The staff Account reviews screen reads it. See Reviewing New Accounts.
API Usage Notes
- Authentication required: Admin API Key, or a staff session
- Required privileges:
User.Edit - A sub-admin limited to user groups sees the accounts of those groups only
- Not available to admin agent keys
- Rate limit: 120 requests per 60 seconds
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: admin.accountreview.queue.get |
| AdminAPIKey | String | Yes | Admin API key |
| UserIDs | String | No | JSON list of at most 50,000 user IDs. Only these accounts are returned |
| ExcludeUserIDs | String | No | JSON list of at most 50,000 user IDs to leave out |
| AnyLevel | Boolean | No | 1 also returns Trusted accounts. Needs UserIDs |
| Keyword | String | No | Matches name, company, email address, website and signup IP |
| UserGroupID | Integer | No | Only accounts of this user group |
| Country | String | No | Only accounts with this country code |
| SignedUpAfter, SignedUpBefore | String | No | YYYY-MM-DD HH:MM:SS |
| RecordsFrom | Integer | No | Default 0 |
| RecordsPerRequest | Integer | No | 1 to 100, default 25 |
curl -X POST https://example.com/api.php \
--data-urlencode "Command=admin.accountreview.queue.get" \
--data-urlencode "AdminAPIKey=your-admin-api-key" \
--data-urlencode "RecordsPerRequest=25"{
"Success": true,
"ErrorCode": 0,
"Accounts": [
{
"UserID": 42,
"RelUserGroupID": 5,
"GroupName": "Starter",
"EmailAddress": "owner@example.com",
"CompanyName": "Acme Inc.",
"AccountStatus": "Enabled",
"ReputationLevel": "Untrusted",
"UserSince": "2026-11-20 10:00:00",
"SignUpIPAddress": "203.0.113.24",
"SignUpCountryCode": "US",
"SenderDomains": [
{ "Domain": "example.com", "Status": "Enabled", "CreatedAt": "2026-11-21 09:00:00", "LastVerifiedAt": "2026-11-21 09:05:00" }
],
"SignupScreening": { "Outcome": "passed", "Score": 5, "Threshold": 50, "FiredRules": [], "CreatedAt": "2026-11-20 10:00:01" },
"BlockedSendAt": null
}
],
"TotalAccounts": 1
}{
"Success": false,
"ErrorCode": 1,
"ErrorText": "UserIDs must hold positive user ids only"
}0: Success
1: A parameter is invalid
2: The review queue could not be readSignUpCountryCode is empty unless the install has the PHP geoip extension. SignupScreening is null when the account was not screened. BlockedSendAt is the Unix time of the account's first refused send, or null.
Pull Account Review Events ​
POST/api.phpNew in v6.0.8Returns the review events recorded since the last call, oldest first, and removes them from the queue. An event is recorded at most once per account, and only while the account waits for review. The new user interface calls it every minute for the operator webhook and the signup email.
API Usage Notes
- Authentication required: Admin API Key
- Required privileges:
User.Edit - Only the new user interface's own container may call it, because a returned entry is gone. A call from any other address is refused with error 4.
- Not available to admin agent keys
- Rate limit: 60 requests per 60 seconds
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: admin.accountreview.events.pull |
| AdminAPIKey | String | Yes | Admin API key |
| Limit | Integer | No | How many entries to return, from 1 to 200. Default 50 |
curl -X POST https://example.com/api.php \
--data-urlencode "Command=admin.accountreview.events.pull" \
--data-urlencode "AdminAPIKey=your-admin-api-key" \
--data-urlencode "Limit=100"{
"Success": true,
"ErrorCode": 0,
"Events": [
{ "UserID": 42, "Event": "domain_verified", "At": 1795600000, "Details": { "Domain": "example.com" } }
]
}{
"Success": false,
"ErrorCode": 1,
"ErrorText": "Limit must be a whole number from 1 to 200"
}0: Success. Event is signup, plan_changed, domain_verified or blocked_send. At is a Unix timestamp
1: Limit is not a whole number from 1 to 200
4: Not called from the new user interface
5: The event queue could not be readClaim Operator Webhook Events ​
POST/api.phpNew in v6.0.8Hands out the operator webhook events Octeth recorded (user.signed_up, user.login, user.deleted, user.suspended, user.reactivated, user.account_flagged), oldest first, under a claim token. A claimed event is hidden from other calls for 10 minutes. If it is not acknowledged with admin.operatorevents.ack by then, it is handed out again with the same EventID. Events older than 7 days are deleted unread. The new user interface calls it every minute and delivers the events through the operator webhook.
API Usage Notes
- Authentication required: Admin API Key
- Required privileges:
Settings - Only the new user interface's own container may call it. A call from any other address is refused with error 4.
- Not available to admin agent keys
- Rate limit: 120 requests per 60 seconds
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: admin.operatorevents.claim |
| AdminAPIKey | String | Yes | Admin API key |
| Limit | Integer | No | How many events to return, from 1 to 200. Default 100 |
curl -X POST https://example.com/api.php \
--data-urlencode "Command=admin.operatorevents.claim" \
--data-urlencode "AdminAPIKey=your-admin-api-key" \
--data-urlencode "Limit=100"{
"Success": true,
"ErrorCode": 0,
"Token": "3f2a9c0e5b7d41f8a6c2e9b0d4f1a7c3",
"Events": [
{ "EventID": "01JD8Z6K3W8B4N5Q2R7T1V0X9Y", "EventType": "user.login", "UserID": 42, "OccurredAt": 1795600000, "Data": { "user_id": 42, "method": "sso" } }
]
}{
"Success": false,
"ErrorCode": 1,
"ErrorText": "Limit must be a whole number from 1 to 200"
}0: Success. OccurredAt is a Unix timestamp. Data is the event's webhook data
1: Limit is not a whole number from 1 to 200
4: Not called from the new user interface
5: The events could not be readAcknowledge Operator Webhook Events ​
POST/api.phpNew in v6.0.8Deletes events claimed with admin.operatorevents.claim once they are stored. Only events still held by the token are deleted, so an event that timed out and was claimed again by a later call stays for that call.
API Usage Notes
- Authentication required: Admin API Key
- Required privileges:
Settings - Only the new user interface's own container may call it. A call from any other address is refused with error 4.
- Not available to admin agent keys
- Rate limit: 120 requests per 60 seconds
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: admin.operatorevents.ack |
| AdminAPIKey | String | Yes | Admin API key |
| Token | String | Yes | The token admin.operatorevents.claim returned |
| EventIDs | String or Array | Yes | 1 to 200 event IDs from that claim, comma-separated |
curl -X POST https://example.com/api.php \
--data-urlencode "Command=admin.operatorevents.ack" \
--data-urlencode "AdminAPIKey=your-admin-api-key" \
--data-urlencode "Token=3f2a9c0e5b7d41f8a6c2e9b0d4f1a7c3" \
--data-urlencode "EventIDs=01JD8Z6K3W8B4N5Q2R7T1V0X9Y"{
"Success": true,
"ErrorCode": 0,
"Deleted": 1
}{
"Success": false,
"ErrorCode": 2,
"ErrorText": "EventIDs must list 1 to 200 event ids"
}0: Success
1: Token is missing or invalid
2: EventIDs is missing, holds an invalid ID, or lists more than 200
4: Not called from the new user interface
5: The events could not be deletedSet Operator Webhook Event Types ​
POST/api.phpNew in v6.0.8Stores which operator webhook event types Octeth records. The new user interface sends the types ticked on its Webhooks page when the page is saved, and an empty list while the webhook is off. Unknown types are ignored, and an empty value stops all recording.
API Usage Notes
- Authentication required: Admin API Key
- Required privileges:
Settings - Only the new user interface's own container may call it. A call from any other address is refused with error 4.
- Not available to admin agent keys
- Rate limit: 120 requests per 60 seconds
- Legacy endpoint access via
/api.phponly (no v1 REST alias configured)
Request Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Command | String | Yes | API command: admin.operatorevents.types.set |
| AdminAPIKey | String | Yes | Admin API key |
| Types | String or Array | No | Comma-separated event types: user.signed_up, user.login, user.deleted, user.suspended, user.reactivated, user.account_flagged |
curl -X POST https://example.com/api.php \
--data-urlencode "Command=admin.operatorevents.types.set" \
--data-urlencode "AdminAPIKey=your-admin-api-key" \
--data-urlencode "Types=user.signed_up,user.login"{
"Success": true,
"ErrorCode": 0,
"Types": ["user.signed_up", "user.login"]
}{
"Success": false,
"ErrorCode": 4,
"ErrorText": "This command is only available to the new user interface"
}0: Success. Types lists the event types now recorded
1: Types is not a list
4: Not called from the new user interface
5: The setting could not be stored
