Register

Build with EarnFlow

Integrate our platform into your applications with powerful APIs, SDKs, and developer tools

REST API • SDKs • Webhooks • Documentation
99.9%
API Uptime
50ms
Avg Response
1M+
Daily Requests
4 SDKs
Languages

API Overview

Simple, RESTful API with predictable endpoints and powerful features

REST API

v1.0.0

Base URL

https://api.earnflow.com.ng/v1

Authentication

API Key (Bearer Token)

Format

JSON only

curl -X GET https://api.earnflow.com.ng/v1/user/profile \
-H "Authorization: Bearer YOUR_API_KEY"
Read Full API Documentation

Official SDKs

Get started quickly with our language-specific SDKs

Code Examples

Quick examples to get you started

PHP JavaScript Python cURL
PHP
// PHP SDK Example
require 'vendor/autoload.php';

use EarnFlow\Client;

$client = new Client([
    'api_key' => 'your_api_key_here',
    'environment' => 'production'
]);

// Get user balance
$balance = $client->user->getBalance();
echo "Current balance: ₦" . $balance->amount;

// Get available tasks
$tasks = $client->tasks->list([
    'platform' => 'instagram',
    'limit' => 20
]);

foreach ($tasks as $task) {
    echo $task->title . " - ₦" . $task->reward . "\n";
}

// Complete a task
$result = $client->tasks->complete('task_id_here', [
    'proof_url' => 'https://instagram.com/p/abc123'
]);

if ($result->success) {
    echo "Task completed! Earned ₦" . $result->reward;
}

Key Endpoints

Common API endpoints to get you started

GET
/user/profile
Get authenticated user's profile information
Authentication required Returns user data
GET
/user/balance
Get current wallet balance
Authentication required Returns balance
GET
/tasks
List available tasks with optional filters
Authentication required Supports pagination
POST
/tasks/{id}/complete
Mark a task as completed
Authentication required Requires proof URL
GET
/withdrawals/accounts
List saved bank accounts
Authentication required Returns account list
POST
/withdrawals
Create a withdrawal request
Authentication required Min ₦1,000

Quick Start Guide

Get up and running in minutes

1

Get Your API Key

Log in to your dashboard and generate an API key from the Developer Settings page.

Generate Key
2

Install SDK

Choose your preferred language and install the SDK via composer, npm, or pip.

View Installation
3

Make Your First Call

Use the SDK or direct API calls to interact with EarnFlow.

Try Examples

Developer Resources

Tools and resources to help you build

Join the Developer Community

Connect with other developers building on EarnFlow. Get help, share ideas, and stay updated.