Skip to main content
This SDK was built by the Afriex DevRel team, winners of our hackathon. We loved what they built so much that it became the official SDK. Big shoutout to the team for making this happen.

Overview

The Afriex SDK is a TypeScript library that wraps the Afriex Business API with full type definitions, built-in retry logic, and modular imports. Every REST endpoint in the API reference has a matching SDK method; the TypeScript snippet appears as a tab in the right-hand code panel on each endpoint page. This page covers what is SDK-specific: install, init, configuration, retries, environments, and webhook signature handling.

Installation

Quick Start

1. Initialize the SDK

2. Make your first calls

For the full set of methods, browse the API reference; each endpoint page shows the equivalent SDK call.

Configuration

Enable Retries

Retries are disabled by default. Enable them with retryConfig:

Environments

Get your API key from the Afriex Dashboard under the Developer tab.

Webhooks

The SDK ships helpers for verifying webhook signatures and parsing event payloads. See Webhooks.