code Developer API

CodeMandi API

Programmatic access to virtual numbers. Coming Soon.

In Development

Launching Soon

We're building a powerful REST API that gives developers full programmatic access to the CodeMandi virtual number network. Join the waitlist to get early access.

send Join the Waitlist on Telegram

What Will Be Available

A full-featured API designed for developers and automation workflows.

data_object

REST API with JSON

Clean, predictable REST endpoints with JSON request and response bodies. Easy to integrate with any language or framework.

public

Browse by Country & Platform

Query available virtual numbers filtered by country code and target platform (WhatsApp, Telegram, Google, etc.).

add_circle

Purchase Number Endpoint

Programmatically purchase a virtual number and receive it instantly in the API response.

sms

Check OTP Status

Poll the OTP status endpoint to check if an SMS has been received and retrieve the code when available.

webhook

Webhook Support

Register a webhook URL to receive real-time push notifications when an OTP is delivered — no polling needed.

key

API Key Management

Generate, rotate, and revoke API keys from your dashboard with read-only or full-access permissions.

Preview

A glimpse of what the API will look like.

POST/v1/numbers/buy
# Buy a WhatsApp number from India
curl -X POST https://api.codemandi.com/v1/numbers/buy \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform": "whatsapp", "country": "IN"}'
# Response
{
  "success": true,
  "number": "+91 98765 43210",
  "order_id": "ord_abc123xyz",
  "expires_at": "2025-04-15T12:30:00Z",
  "platform": "whatsapp",
  "country": "IN"
}
GET/v1/numbers/{"{order_id}"}/otp
# Poll for OTP delivery
curl https://api.codemandi.com/v1/numbers/ord_abc123xyz/otp \
  -H "Authorization: Bearer YOUR_API_KEY"
# Response (OTP received)
{
  "status": "received",
  "otp": "829415",
  "received_at": "2025-04-15T12:28:44Z",
  "message": "Your WhatsApp code is 829415"
}
send

Get Early API Access

Message us on Telegram to join the early access waitlist. We'll notify you as soon as the API is ready and give you priority access.

send Message @Codemandisupport

Tell us your use case and we'll get back to you within 2 hours.