Possible responses for Sending/Delivery API endpoint.
This document lists every possible JSON response returned by our Sending/Delivery API, including success and error cases, along with the conditions that trigger each response.
| Response | Condition |
|---|---|
|
No API key provided via GET, headers, or server variables. |
|
API key is provided but not found in either user_appkey_meta or user_appkey tables. |
|
API key is valid but user_accounts.id does not exist. |
|
is_enabled = 0 for the user account, regardless of expiry date. |
|
expiry_date is set and earlier than today. |
|
A template_id is provided but:
|
|
No message and no template_id provided. |
|
User's credits are less than the required cost per message (currently 1). |
|
All checks pass, message successfully queued, credits deducted, and log recorded. |
user_message_credits table.