Chatofy Developer Portal & WhatsApp API Documentation

Developer Portal & AI Agent API Hub

Build & Automate with Chatofy API

Access our OpenAPI 3.0 specification, CLI tools, rate-limited REST endpoints, and structured JSON responses designed for human engineers and AI agents.

Authentication & API Keys

API Key Authentication

All requests to Chatofy developer endpoints require an active Bearer API token generated in your dashboard under Settings → API & Webhooks.

# Example HTTP Header

Authorization: Bearer ctf_live_98a72b1092e482fa1029

RFC Rate Limiting & Backoff

Rate Limit Headers & Throttling

To allow AI agents and scripts to self-throttle in real time, Chatofy returns RFC-standard rate limit response headers on every API response.

RateLimit-Limit: 120

Maximum API calls allowed per 60-second window.

RateLimit-Remaining: 118

Remaining calls in the current active window.

RateLimit-Reset: 45

Time in seconds remaining until the quota resets.

Retry-After: 60

Returned on HTTP 429 status code indicating backoff duration.

Machine Readable Responses

Structured JSON Error Schema

Chatofy APIs never return HTML error pages. Every error is returned in structured JSON format with uppercase error codes, explanations, and resolution hints for AI agents.

{
  "success": false,
  "error": {
    "code": "INVALID_PAYLOAD",
    "message": "Name and Email are required fields.",
    "hint": "Ensure request body contains JSON with 'name' and 'email' fields.",
    "timestamp": "2026-09-26T12:00:00+05:30"
  }
}
CLI Automation Tool

Official Chatofy CLI (\`npx @chatofy/cli\`)

Script interactions with Chatofy directly from your terminal or AI agent workflows without building custom HTTP integrations.

# Check status and system health

$ npx @chatofy/cli status

# Send a test WhatsApp message

$ npx @chatofy/cli message send --to +917838343515 --text "Hello from Chatofy CLI"

# View OpenAPI spec overview

$ npx @chatofy/cli openapi

DNS for AI Discovery (DNS-AID)

DNS-AID ServiceMode Records

Chatofy publishes DNS for AI Discovery (DNS-AID) records under the _agents.chatofy.in DNSSEC-signed zone for agent-to-agent and protocol endpoint resolution.

# A2A Protocol ServiceMode Record

_a2a._agents.chatofy.in. 3600 IN SVCB 1 app.chatofy.in. alpn="a2a,h2,http/1.1" port=443 mandatory=alpn,port key65535="a2a-protocol-v1.0"

# MCP Streamable HTTP Record

_mcp._agents.chatofy.in. 3600 IN HTTPS 1 chatofy.in. alpn="h2,http/1.1" port=443 mandatory=alpn,port key65534="mcp-streamable-http"

# Agent Skills Index Record

_index._agents.chatofy.in. 3600 IN SVCB 1 chatofy.in. alpn="h2,http/1.1" port=443 mandatory=alpn,port key65533="agent-skills-discovery-v0.2.0"

Public & Developer Endpoints

MethodTarget HostFull Endpoint PathOperation IDDescription
POSTapp.chatofy.in/api/public/leadssubmitPublicLeadSubmit public lead or contact inquiry.
GETapp.chatofy.in/api/public/pricinggetPublicPricingPlansFetch live subscription tiers and billing settings.
POSTapp.chatofy.in/api/v1/contact/{phone}/send-messagesendTextMessageSend WhatsApp text message (24-hour service window).
POSTapp.chatofy.in/api/v1/contact/{phone}/send-template-messagesendTemplateMessageSend approved Meta template message (out-of-window).
GETapp.chatofy.in/api/v1/contactsgetContactsListRetrieve contacts list and custom tags.
GETapp.chatofy.in/api/healthgetHealthStatusCheck API platform health and availability.

Start with a 7-day free trial of Pro.

No credit card. No approval wait. Get your WhatsApp Business API live in minutes.

98%
Messages get opened
vs 22% for email
3 min
Average reply time
customers respond fast on WhatsApp
3x
Higher conversion
vs email and SMS campaigns
175M
People message a business
on WhatsApp every single day