Skip to content

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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: internal.bounce.register
SessionIDStringNoSession ID obtained from login
APIKeyStringNoAPI key for authentication
EmailMessageStringYesRaw bounce email message content (RFC 822 format)
MailFromStringNoMAIL FROM envelope address (default: localhost)
PowerMTABounceCategoryStringNoPowerMTA bounce category classification
bash
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"
  }'
json
{
  "Success": true,
  "ErrorCode": 0,
  "ErrorText": ""
}
json
{
  "Success": false,
  "ErrorCode": 0,
  "ErrorText": "Bounce processing error"
}
txt
0: Success or processing completed

Register 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, AttributionSource gateway), and journey identifiers are always signed
  • Legacy endpoint access via /api.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: internal.s2spostback.register
SessionIDStringNoSession ID obtained from login
APIKeyStringNoAPI key for authentication
OCRIDStringYesEncrypted conversion tracking ID containing user, campaign, subscriber, and list information
ChannelStringNoConversion channel name (e.g., "purchase", "signup")
ValueNumberNoConversion value amount
UnitStringNoConversion value unit (e.g., "USD", "points")
bash
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"
  }'
json
{
  "Success": true,
  "ocrid": "encrypted_tracking_id_string",
  "ErrorCode": 0,
  "ErrorText": ""
}
json
{
  "Success": false,
  "ocrid": "encrypted_tracking_id_string",
  "ErrorCode": 2,
  "ErrorText": "user is invalid"
}
txt
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 identifier

Notify 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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: admin.accountreview.notify
AdminAPIKeyStringYesAdmin API key
UserIDIntegerYesThe account that submitted its answers
AnswersStringYesA 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
bash
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"}]'
json
{
  "Success": true,
  "ErrorCode": 0,
  "Sent": true
}
json
{
  "Success": false,
  "ErrorCode": 4,
  "ErrorText": "This command is only available to the new user interface"
}
txt
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 access

Pull 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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: admin.accountreview.approvals.pull
AdminAPIKeyStringYesAdmin API key
LimitIntegerNoHow many entries to return, from 1 to 200. Default 50
bash
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"
json
{
  "Success": true,
  "ErrorCode": 0,
  "Approvals": [
    {
      "UserID": 42,
      "ApprovedAt": 1794571200
    }
  ]
}
json
{
  "Success": false,
  "ErrorCode": 1,
  "ErrorText": "Limit must be a whole number from 1 to 200"
}
txt
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 read

Get the Account Review Queue ​

POST /api.phpNew in v6.0.8

Returns 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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: admin.accountreview.queue.get
AdminAPIKeyStringYesAdmin API key
UserIDsStringNoJSON list of at most 50,000 user IDs. Only these accounts are returned
ExcludeUserIDsStringNoJSON list of at most 50,000 user IDs to leave out
AnyLevelBooleanNo1 also returns Trusted accounts. Needs UserIDs
KeywordStringNoMatches name, company, email address, website and signup IP
UserGroupIDIntegerNoOnly accounts of this user group
CountryStringNoOnly accounts with this country code
SignedUpAfter, SignedUpBeforeStringNoYYYY-MM-DD HH:MM:SS
RecordsFromIntegerNoDefault 0
RecordsPerRequestIntegerNo1 to 100, default 25
bash
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"
json
{
  "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
}
json
{
  "Success": false,
  "ErrorCode": 1,
  "ErrorText": "UserIDs must hold positive user ids only"
}
txt
0: Success
1: A parameter is invalid
2: The review queue could not be read

SignUpCountryCode 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.8

Returns 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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: admin.accountreview.events.pull
AdminAPIKeyStringYesAdmin API key
LimitIntegerNoHow many entries to return, from 1 to 200. Default 50
bash
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"
json
{
  "Success": true,
  "ErrorCode": 0,
  "Events": [
    { "UserID": 42, "Event": "domain_verified", "At": 1795600000, "Details": { "Domain": "example.com" } }
  ]
}
json
{
  "Success": false,
  "ErrorCode": 1,
  "ErrorText": "Limit must be a whole number from 1 to 200"
}
txt
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 read

Claim Operator Webhook Events ​

POST /api.phpNew in v6.0.8

Hands 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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: admin.operatorevents.claim
AdminAPIKeyStringYesAdmin API key
LimitIntegerNoHow many events to return, from 1 to 200. Default 100
bash
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"
json
{
  "Success": true,
  "ErrorCode": 0,
  "Token": "3f2a9c0e5b7d41f8a6c2e9b0d4f1a7c3",
  "Events": [
    { "EventID": "01JD8Z6K3W8B4N5Q2R7T1V0X9Y", "EventType": "user.login", "UserID": 42, "OccurredAt": 1795600000, "Data": { "user_id": 42, "method": "sso" } }
  ]
}
json
{
  "Success": false,
  "ErrorCode": 1,
  "ErrorText": "Limit must be a whole number from 1 to 200"
}
txt
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 read

Acknowledge Operator Webhook Events ​

POST /api.phpNew in v6.0.8

Deletes 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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: admin.operatorevents.ack
AdminAPIKeyStringYesAdmin API key
TokenStringYesThe token admin.operatorevents.claim returned
EventIDsString or ArrayYes1 to 200 event IDs from that claim, comma-separated
bash
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"
json
{
  "Success": true,
  "ErrorCode": 0,
  "Deleted": 1
}
json
{
  "Success": false,
  "ErrorCode": 2,
  "ErrorText": "EventIDs must list 1 to 200 event ids"
}
txt
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 deleted

Set Operator Webhook Event Types ​

POST /api.phpNew in v6.0.8

Stores 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.php only (no v1 REST alias configured)

Request Body Parameters:

ParameterTypeRequiredDescription
CommandStringYesAPI command: admin.operatorevents.types.set
AdminAPIKeyStringYesAdmin API key
TypesString or ArrayNoComma-separated event types: user.signed_up, user.login, user.deleted, user.suspended, user.reactivated, user.account_flagged
bash
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"
json
{
  "Success": true,
  "ErrorCode": 0,
  "Types": ["user.signed_up", "user.login"]
}
json
{
  "Success": false,
  "ErrorCode": 4,
  "ErrorText": "This command is only available to the new user interface"
}
txt
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

Any questions? Contact us.