API Documentation

Complete guide to integrating Sabi into your application

Authentication

All API requests require authentication. Include your API key in the Authorization header:

Authorization: Bearer sabi_[keyId]_[token]

API Endpoints

Authentication

POST /api/sabi/auth/register

Register a new account

Request:
{ "email": "user@example.com", "password": "securepassword", "name": "John Doe", "businessName": "My Brand" }
POST /api/sabi/auth/login

Login to your account

Request:
{ "email": "user@example.com", "password": "securepassword" }

Orders

POST /api/sabi/orders

Create a new order

Request:
{ "serviceId": "instagram_followers", "quantity": 500, "targetUrl": "https://instagram.com/yourprofile", "paymentMethod": "flutterwave" }
GET /api/sabi/orders

Get all orders for authenticated user

Services

GET /api/sabi/services

Get all available services with pricing and details

Wallet

POST /api/sabi/wallet/fund

Initialize a payment to fund your wallet

GET /api/sabi/wallet

Get wallet balance and transaction history

Code Examples

JavaScript

const apiKey = 'sabi_[keyId]_[token]'; // Create an order const response = await fetch('https://sability.io/api/sabi/orders', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` }, body: JSON.stringify({ serviceId: 'instagram_followers', quantity: 500, targetUrl: 'https://instagram.com/yourprofile', paymentMethod: 'wallet' }) }); const data = await response.json(); console.log(data);

Python

import requests api_key = 'sabi_[keyId]_[token]' headers = { 'Authorization': f'Bearer {api_key}', 'Content-Type': 'application/json' } # Create an order response = requests.post( 'https://sability.io/api/sabi/orders', headers=headers, json={ 'serviceId': 'instagram_followers', 'quantity': 500, 'targetUrl': 'https://instagram.com/yourprofile', 'paymentMethod': 'wallet' } ) print(response.json())

cURL

curl -X POST https://sability.io/api/sabi/orders \ -H "Authorization: Bearer sabi_[keyId]_[token]" \ -H "Content-Type: application/json" \ -d '{ "serviceId": "instagram_followers", "quantity": 500, "targetUrl": "https://instagram.com/yourprofile", "paymentMethod": "wallet" }'

Need Help?

Check our FAQ or contact support at support@sabi.io