All Android Gateways & Telecom Nodes Operational
Textora REST API v1.0 • HTTPS Only

Developer API Reference

Full documentation for programmatic SMS dispatch, Android gateway telemetry, and OTP verification.

Base URL: https://textora.firewallitsolution.com/api/v1
Need an API Key?

Create a free account to generate live API keys and test with instant free credits.

Get API Key →

Authentication

Authenticate all API requests by providing your private API key in the standard Authorization HTTP request header.

Authorization: Bearer tx_live_usr_77f8e9d0c1b2a3456789abcdef012345
POST

/sms/send.php

Dispatches a single or multi-part SMS message. You can optionally route it through a specific self-number Android device or cloud gateway.

Field Type Required Description
recipient string YES Recipient phone number in E.164 format (e.g., +15552349012).
message string YES Text body of the SMS. Supports GSM-7 (160 chars) or Unicode (70 chars).
route_type string Optional self_device (default) or cloud_gateway.
device_id integer Optional ID of specific Android device. Defaults to primary active device.
sim_slot string Optional SIM1, SIM2, or auto.
// Sample Request Payload
{
  "recipient": "+15552349012",
  "message": "Your verification code is 849201",
  "route_type": "self_device",
  "sim_slot": "SIM1"
}
// JSON Response (200 OK)
{
  "success": true,
  "message_id": 1042,
  "status": "sent",
  "recipient": "+15552349012",
  "route_type": "self_device",
  "device_id": 1,
  "sim_slot": "SIM1",
  "segments": 1,
  "credits_remaining": 18499
}
POST

/otp/send.php

Automatically generates a secure numeric OTP, saves the verification record with expiration timestamp, and transmits it via SMS in a single API call.

// Request Payload
{
  "phone": "+15552349012",
  "length": 6,
  "expiry_minutes": 10
}
POST

/otp/verify.php

Validates the OTP entered by an end-user. Returns success or expired/invalid code status.

// Request Payload
{
  "phone": "+15552349012",
  "otp_code": "849201"
}