Authentication
The RafikiSMS API uses API key authentication. Include your key in the X-API-Key header of every request.
API Key Authentication
All API endpoints require an API key. Include it in the X-API-Key header:
X-API-Key: sk_your_api_key_here
How to get your API key
- Log in to your vendor account
- Navigate to Profile -> Integration tab
- Click "Generate New Key" to create an API key
- Copy and save your API key securely --- it won't be shown again
Security: Keep your API key secret. Never expose it in client-side code, public repositories, or browser JavaScript.
Using Your API Key
Once you have your key, pass it in the X-API-Key header for every request:
curl -X GET "https://api.rafikisms.com/v1/vendor/sender-names" \
-H "Accept: application/json" \
-H "X-API-Key: sk_your_api_key_here"
An invalid or missing API key returns a 401 Unauthorized response.