Step 1: Set up your local environment
Obtain and store your API key
Obtain and store your API key
Log into your BRIQ dashboard and navigate to Settings → API Keys → Generate New Key to get your API key. Store it securely in environment variables:
Never hardcode your API key in source code. Use environment variables for security.
Set up your development environment
Set up your development environment
Ensure you have an HTTP client installed (e.g., axios for Node.js, requests for Python, or PHP cURL). Configure the BRIQ API base URL:
Step 2: Integrate the API
Choose your programming language
Choose your programming language
Install the required HTTP client for your language:
- Node.js:
npm install axios
- Python:
pip install requests
- PHP: Ensure the cURL extension is enabled (
php -m | grep curl
)
Explore similar examples for Python and PHP in the BRIQ documentation.
Send a test message
Send a test message
Use your client to send a test SMS:Or with cURL:
Check the response to confirm the message was sent successfully.
Step 3: Go live
Deploy and monitor your integration
Deploy and monitor your integration
-
Save your code and environment variables (e.g., in a
.env
file): - Deploy your application to your production environment.
-
Monitor message delivery using the BRIQ dashboard or set up a webhook to receive delivery status updates:
Next steps
Now that your BRIQ SMS API is integrated, explore these key features:Create Workspaces
Organize your SMS projects with workspaces.
Set Up Campaigns
Plan and structure your messaging initiatives.
Import Recipients
Add and manage contact lists for SMS campaigns.
API Reference
Explore the full OpenAPI specification and endpoint documentation.
Need help? Visit the BRIQ documentation or contact support@briq.tz.