Skip to content
Developer Tools

Build SMS into Your Applications

A complete REST API for sending SMS, managing subscribers, and checking credits. Integrate WSMS into your custom applications, mobile apps, or third-party systems.

Use Cases

What You Can Build with the API

Real-world integration scenarios powered by the WSMS REST API

Custom Applications

Integrate SMS sending into your custom WordPress plugins or external applications

Mobile App Notifications

Send SMS notifications from your mobile app backend using simple HTTP requests

CRM Integration

Connect your CRM to send automated SMS based on customer actions and events

Booking Systems

Send appointment reminders and confirmations from your booking platform

Two-Factor Auth

Implement SMS-based verification in your authentication flow

E-commerce Alerts

Trigger order updates and shipping notifications from your store backend

Endpoints

7 Powerful API Endpoints

Everything you need for SMS integration

POST /wpsms/v1/send

Send SMS to subscribers, WordPress users, WooCommerce customers, or direct phone numbers. Supports scheduling, MMS, and repeating messages.

POST /wpsms/v1/newsletter

Subscribe users to your SMS newsletter with custom fields. Supports group assignment and double opt-in verification.

GET /wpsms/v1/outbox

Retrieve sent SMS history with filtering options for date range and recipient.

GET /wpsms/v1/credit

Check your SMS gateway credit balance in real-time.

POST /wpsms/v1/newsletter/verify

Verify subscriber activation codes for double opt-in confirmation.

POST /wpsms/v1/newsletter/unsubscribe

Remove subscribers from specific groups or unsubscribe them globally.

All API endpoints are available in the free version. Some advanced features require All-in-One.

Features

Developer-Friendly Features

Built for seamless integration

WordPress Authentication

Secure API access using WordPress Application Passwords. Generate credentials from your user profile.

Multiple Recipient Types

Send to subscribers, WordPress users, user roles, WooCommerce customers, or direct phone numbers.

Scheduled Messages

Schedule SMS for future delivery using ISO 8601 datetime format. Requires All-in-One.

MMS Support

Send multimedia messages with images and media attachments (gateway dependent).

Repeating Messages

Set up recurring SMS with configurable intervals and end dates. Requires All-in-One.

JSON Responses

Clean JSON responses with success/error status and detailed messages.

FAQ

Frequently Asked Questions

Common questions about the WSMS REST API

Use WordPress Application Passwords for authentication. Go to Users > Profile > Application Passwords to generate credentials. Use Basic Authentication with your username and application password.

Each endpoint requires specific capabilities: wpsms_sendsms for sending, wpsms_subscribers for newsletter operations, and wpsms_setting for credit checks and webhooks.

Yes, use the 'numbers' parameter with an array of phone numbers. You can also target subscribers by group, WordPress users by ID, or users by role.

The API respects your SMS gateway's rate limits. There's no additional rate limiting from WSMS, but your gateway may have sending limits.

Yes, with All-in-One. Use the 'schedule' parameter with an ISO 8601 formatted datetime (e.g., '2024-12-25T10:00:00'). The message will be queued and sent at the specified time.

Our documentation includes cURL and PHP examples for every endpoint. Visit the API documentation for complete reference and examples.

Have more questions?

Contact our support team
Start for free today

Ready to Integrate SMS into Your App?

Full REST API access included free. Start building with comprehensive documentation and examples.

10,000+
Active Sites
300+
SMS Gateways
2012
Since