API Documentation

Everything you need to integrate NexaNumbers into your applications.

Introduction

The NexaNumbers API is built on REST principles. It uses standard HTTP methods (GET, POST, DELETE) and returns JSON-encoded responses.

The Base URL for all API requests is: https://api.nexanumbers.co.ke/v1

Authentication

All API requests must be authenticated using your unique API Key. You can find your API keys in your dashboard under Settings → API Access.

Pass your API key in the Authorization header of every request.

HTTP Header
Authorization: Bearer YOUR_API_KEY

Virtual Numbers

Purchase virtual numbers for SMS verification. This endpoint returns an active phone number that can receive SMS messages.

POST /numbers
const response = await fetch("https://api.nexanumbers.co.ke/v1/numbers", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    country: "US",
    service: "telegram"
  })
});

const data = await response.json();
// Returns: { "phone": "+1 555 019 8377", "id": "num_123456" }

Parameters

Parameter Type Description
country*required String ISO 3166-1 alpha-2 country code (e.g., US, GB, KE).
service*required String The service to verify (e.g., telegram, whatsapp, google).

Proxies

Retrieve a residential or datacenter proxy for web scraping and automation.

POST /proxies
const response = await fetch("https://api.nexanumbers.co.ke/v1/proxies", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    type: "residential",
    country: "US"
  })
});

const proxy = await response.json();
// Returns: { "ip": "192.168.1.1", "port": 8080, "username": "user", "password": "pass" }

Edu Mail

Generate an educational email address instantly. This will automatically deduct the cost from your wallet balance.

POST /edu-mail
const response = await fetch("https://api.nexanumbers.co.ke/v1/edu-mail", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    full_name: "Alex Mercer"
  })
});

const email = await response.json();
// Returns: { "email": "[email protected]", "password": "temp123" }

Wallet

Check your current wallet balance and recent transactions.

GET /wallet
const response = await fetch("https://api.nexanumbers.co.ke/v1/wallet", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY"
  }
});

const wallet = await response.json();
// Returns: { "balance_kes": 1300.00, "balance_usd": 10.00 }