API Code Samples

Python Example
import requests

api_key = "YOUR_API_KEY"
res = requests.post("https://api.yourdomain.com/send", json={
    "project": "MyProject",
    "to": "+254712345678",
    "code": "123456",
    "label": "Verification"
}, headers={
    "Authorization": f"Bearer {api_key}"
})
print(res.json())