RafikiSMSRafikiSMS API

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

  1. Log in to your vendor account
  2. Navigate to Profile -> Integration tab
  3. Click "Generate New Key" to create an API key
  4. 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.