Global PlatformCommunications, payments, and governed AI infrastructure
EnglishDocsSupportLogin
A
AfriRouteConnect Platform
Products
Platform
Enterprise
Developers
Markets
Company
Pricing
Book a DemoGet Started
Pricing
Sign InCreate Account
Documentation

Get Started

  • Overview
  • Quickstart
  • Authentication
  • Webhooks

Core

  • Authentication
  • Versioning
  • Webhooks
  • Errors
  • Rate Limits

API Reference

  • API Overview
  • Messages API
  • Voice API
  • API Endpoints

Governance

  • Compliance
  • Architecture

Messaging

  • Messaging API
  • SMS
  • WhatsApp Business
  • Telegram

Voice

  • Voice API
  • IVR Builder
  • SIP Trunking
  • Number Masking

Engagement

  • Contact Center
  • AIT Assist
  • AI Chatbots
  • Video API

Trust & Payments

  • Verify
  • Number Lookup
  • Fraud Guard
  • Payments
Need help?

Join our developer community or contact support.

Get Support

Authentication

Every request to the AfriRoute API must include a valid API key. This guide covers how to create, manage, and securely use your credentials.

Overview

AfriRoute uses API-key authentication for direct developer requests. Include your API key in theX-API-Keyheader of every request. Console login and some governed flows may also issue bearer tokens, but the public API path should use scoped keys.

Sandbox Key

For testing. No charges. Prefixed with sk_test_

Production Key

For live traffic. Charges apply. Prefixed with sk_live_

Getting Your API Key

  1. 1

    Sign in to the AfriRoute ConsoleOpen Console →

  2. 2

    Navigate to Settings → API Keys

  3. 3

    Click "Create new key" and select the environment (Sandbox or Production)

  4. 4

    Copy the key immediately — it will only be shown once

Making Authenticated Requests

Include your API key in the X-API-Key header:

curl -X POST BASE_URL/api/v1/channels/sms/otp   -H "X-API-Key: sk_test_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+2519XXXXXXXX",
      "country": "ET",
      "template": "Your verification code is 123456"
  }'

Node.js / TypeScript

import AfriRoute from 'afriroute';

const client = new AfriRoute({
  apiKey: process.env.AFRIROUTE_API_KEY,
  baseUrl: 'BASE_URL',
});

const res = await client.sms.send({
  to: '+2519XXXXXXXX',
  from: 'AfriRoute',
  text: 'Hello!',
});

Python

import afriroute

client = afriroute.Client(
    api_key="sk_test_your_key"
)

response = client.sms.send(
    to="+2519XXXXXXXX",
    from_="AfriRoute",
    text="Hello!"
)

Key Scopes & Permissions

API keys can be scoped to limit what resources they can access. Use scoped keys for each application, workflow, or integration you operate.

ScopeAccessExample Use
sms:sendSend SMS messagesOTP service
sms:readRead message history & statusAnalytics dashboard
payments:*Full payment operationsCheckout service
voice:sendInitiate voice callsIVR system
*Full access (all resources)Platform administration

Error Responses

If authentication fails, the API returns one of these HTTP status codes:

401

Unauthorized

Missing or invalid API key. Check your X-API-Key header.

403

Forbidden

Valid key but insufficient scope. The key does not have permission for this resource.

429

Rate Limited

Too many requests. Back off and retry with exponential delay.

Security Best Practices

Use environment variables

Never hardcode API keys in source code. Use .env files or a secrets manager.

Rotate keys regularly

Rotate production keys every 90 days. Revoke compromised keys immediately.

Use scoped keys

Create keys with minimal permissions. Each service should have its own key.

Monitor usage

Set up alerts for unusual API activity. Review access logs in the Console.

What's next?

Send your first message Set up webhooks Full API reference
AfriRoute dispatch

Product launches, market moves, and customer growth ideas worth opening.

Join the AfriRoute newsletter for practical rollout notes, operator and market updates, messaging playbooks, and launch-ready ideas across voice, USSD, payments, and AI-powered communications.

Launch Notes
Fresh product releases and roadmap movement.
Market Signals
Country, operator, and rollout insights that matter.
Growth Plays
Messaging and engagement ideas for real campaigns.
Subscribe

Get AfriRoute in your inbox

One practical email stream for builders, operators, and commercial teams. No generic noise.

Why subscribe
Launch alerts, platform ideas, operator context, and deployment guidance for teams moving fast.
Trust CenterSecurity, compliance, and audit posture

Products

  • Messaging API
  • SMS
  • WhatsApp Business
  • Voice API
  • USSD
  • Payments
  • AIT Assist
  • AI Chatbots

Platform

  • Countries
  • Telecom
  • AI Platform
  • Network
  • Onboarding
  • Unified API
  • Security

Solutions

  • Financial Services
  • E-Commerce
  • Healthcare
  • Government
  • Enterprise

Developers

  • Documentation
  • API Reference
  • SDKs
  • Quickstart
  • Status Page
  • Community

Company

  • About Us
  • CareersHiring
  • Blog
  • Partners
  • Trust Center
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Commercial License
  • SLA
A
AfriRoute
© 2026 AfriRoute Communications Platform. All rights reserved.
SOC 2 (2026)99.9%+ Uptime TargetGlobal Coverage

AfriRoute is a global Communications Platform as a Service (CPaaS), infrastructure, and AI orchestration platform built for high-regulation and high-resilience markets. Programmable APIs for messaging, voice, USSD, mobile money payments, and contact center operations. Born in Africa. Built for the world's most complex markets. AfriRoute is not affiliated with mining, logistics, commodity intelligence, or precious metals businesses using a similar name.