Request & Response Format

Request Format

All API requests must be sent as HTTP POST requests (unless specified otherwise) with JSON-formatted request bodies. The Content-Type header must be set to application/json.

Standard Request Structure:

{
    "owner_id": "your_owner_id",
    "token": "your_api_token",
    "smtp_user_name": "your_smtp_user",
    // Additional parameters specific to the endpoint
}

Response Format

API responses are returned in JSON format and follow a consistent structure across all endpoints.

Success Response Structure:

{
    "status": "success",
    "code": 200,
    "message": "Operation completed successfully",
    "data": {
        // Response data specific to the endpoint
    }
}
❗️

Important

Response Structure:

{
    "status": "error",
    "code": 400,
    "type": "validation_error",
    "message": "Detailed error description"
}

HTTP Status Codes

Status CodeMeaningDescription
200OKRequest successful, operation completed
400Bad RequestInvalid request parameters or format
401UnauthorizedInvalid or missing authentication credentials
403ForbiddenValid credentials but insufficient permissions
404Not FoundRequested resource does not exist
429Too Many RequestsRate limit exceeded, slow down requests

Did this page help you?