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
  • 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)

Any questions? Contact us.