Common errors
Sender number is not active
Sender number is not active
Error response:What it means: The sender number you specified is not in a state that allows sending. It may be pending OTP confirmation, rejected, or suspended.How to resolve:
- List your sender numbers and check the
statusfield for the number you are using. - If the status is
pending_verification, the OTP has not been entered yet. Ask the number owner to complete OTP verification in the TGO Business dashboard. - If the status is
rejected, the number cannot be used. Register a different sender number. - If the status is
suspended, contact your account administrator.
Account not verified
Account not verified
Error response:(Translation: The number owner must be verified inside TGO Connect before using the sending API.)What it means: The sender number’s OTP verification is complete, but the TGO Connect account linked to this number has not been verified. These are two separate requirements — passing OTP ownership confirmation is not enough.How to resolve:The number owner must verify their TGO Connect account independently. No new OTP is needed, and no action is required on the TGO Business side. Once verification is complete, the sender number becomes ready automatically.See Account Verification for a detailed explanation of both steps.
API key missing scope
API key missing scope
What happens: The API returns a
How to resolve:
403 Forbidden or permission-related error when you attempt an operation your key is not authorized for.What it means: Your API key does not have the required scope for the endpoint you are calling. Each operation requires a specific scope:| Operation | Required scope |
|---|---|
| Send messages | messages.send |
| Read message logs | messages.read |
| Look up contacts | contacts.lookup |
| Read usage data | usage.read |
- In the TGO Business dashboard, navigate to your API key settings.
- Check which scopes are assigned to the key you are using.
- Either add the required scope to the existing key, or create a new key with the correct scope (or
scope: *for full access). - Update your integration to use the new key if you created a replacement.
Recipient cannot receive messages
Recipient cannot receive messages
What happens: Your message request fails or the message is not delivered because the recipient’s phone number is not reachable through TGO Connect.What it means: The recipient either does not have a TGO Connect account, has not verified their phone number, or is otherwise not reachable.How to resolve:Use the contact lookup endpoint before sending to check whether the recipient can receive messages:Check the response fields:
exists: whether the phone number is registered in TGO Connectcan_receive: whether the number can receive messagesreason_code:"ok"if reachable; other values indicate why sending would fail
can_receive is true. This endpoint requires the contacts.lookup scope.Unauthorized (401)
Unauthorized (401)
HTTP status code reference
| Status code | Meaning |
|---|---|
401 Unauthorized | API key is missing, invalid, or revoked. |
403 Forbidden | API key lacks the required scope for this operation. |
422 Unprocessable Entity | Request body is invalid. Check required fields and field values. |
204 No Content | Operation succeeded with no response body (e.g., revoking a resource). |