php artisan smsapi:install api
SMSAPI_API_ENABLED=true SMSAPI_API_TOKEN=secret SMSAPI_API_PREFIX=smsapi
POST /smsapi/messages X-SMSAPI-Token: secret Content-Type: application/json { "to": "09121234567", "message": "Hello" }
Middleware returns 404 when the API is disabled.
php artisan smsapi:install delivery
SMSAPI_WEBHOOK_ENABLED=true SMSAPI_WEBHOOK_TOKEN=secret
POST /smsapi/webhooks/delivery
Optional sync:
php artisan smsapi:sync-delivery
There was an error while loading. Please reload this page.
SMSApi