Apidaze SMS Provider Configuration
FS PBX provides two-way SMS and MMS support via Apidaze, including inbound message handling, outbound delivery, and provider authentication. This guide explains how to configure your Apidaze credentials and enable messaging routing to extensions.
1. Required Environment Variables
Add the required environment variables to your .env file:
APIDAZE_API_KEY=api_key
APIDAZE_API_SECRET=secret
Variable Description
| Variable | Purpose |
|---|---|
| APIDAZE_API_KEY | Your Apidaze API key used to authenticate requests. |
| APIDAZE_API_SECRET | Your Apidaze API secret used together with the API key for secure provider access. |
2. Apply Configuration Changes
After updating your .env file, run:
php artisan config:cache
This ensures FS PBX loads the updated provider settings.
3. Webhook Setup
Apidaze delivers inbound SMS and MMS messages to FS PBX through a webhook.
To ensure FS PBX receives and processes incoming messages, configure your Apidaze webhook URL as:
https://your-domain/webhook/apidaze/sms
Where to Configure in Apidaze
-
Log in to your Apidaze account.
-
Open the messaging or webhook configuration area for your number or messaging application.
-
Set the inbound webhook URL to:
https://your-domain/webhook/apidaze/sms -
Save the changes.
4. Enable SMS on a Phone Number in FS PBX
After credentials and webhook configuration are complete:
- Go to Advanced → Message Settings
- Add or edit an SMS-enabled number
- Select Apidaze as the provider
- Assign an extension for mobile app delivery
- Optionally assign an email address for read-only email notifications
When configured:
- Inbound SMS/MMS → Apidaze → FS PBX → Extension’s Mobile App
- Replies → FS PBX → Apidaze → Original Sender
5. MMS Support
If your Apidaze number supports MMS, FS PBX can also process media attachments sent through the same messaging flow.
To use MMS media storage, S3-compatible storage must already be configured in your system. See the S3 Configuration for Messages guide.
This allows users to:
- receive inbound picture messages in the mobile app
- reply to supported MMS conversations
- keep SMS and MMS history together in the same conversation thread
Summary
To complete Apidaze messaging integration:
-
Add the
.envvariables:APIDAZE_API_KEYAPIDAZE_API_SECRET
-
Run
php artisan config:cache -
Configure the Apidaze webhook to
/webhook/apidaze/sms -
Enable messaging for the number in Message Settings
Your Apidaze numbers are now ready for two-way SMS and MMS in FS PBX.