API Documentation

The TexiOnline API allows you to send SMS messages to Philippine numbers through your favorite programming language. Powered by Semaphore.

Overview

All API endpoints are accessible via HTTPS at https://api.semaphore.co/api/v4/. All requests must include your API key for authentication.

New Limits on API Requests! Access to some API endpoints is rate limited. Details are in the response headers.

Authentication

Include your API key as a parameter in every request.

apikey = YOUR_API_KEY_HERE
Rate Limit: 120 requests/minute

Send Message

POST https://api.semaphore.co/api/v4/messages
Parameters
Parameter Description Required
apikey Your API key Yes
number Recipient mobile number (e.g., 09171234567) Yes
message The message to send (max 160 characters per SMS) Yes
sendername Sender name (e.g., TEXIONLINE) No (defaults to SEMAPHORE)
Response
[ { "message_id": 12345, "recipient": "639178887777", "message": "Hello from TexiOnline!", "sender_name": "TEXIONLINE", "network": "Globe", "status": "Pending", "type": "single", "created_at": "2026-03-23 10:00:00" } ]

Bulk Messages

Send to multiple recipients by separating numbers with commas (up to 1,000 numbers per call).

curl --data "apikey=YOUR_KEY&number=09171234567,09988776655&message=Welcome to TexiOnline!" https://api.semaphore.co/api/v4/messages

Priority Messages

Bypass the standard queue for immediate delivery. 2 credits per SMS (₱0.60). No rate limiting.

POST https://api.semaphore.co/api/v4/priority

OTP Messages

Use the OTP endpoint for time-sensitive verification codes.