Astrology Platform API Integration Guide

REST API and webhook documentation for astrology-app developers — OTP, WhatsApp, SMS, and IVR endpoints, with a sandbox environment for safe testing.

RESTJSON over HTTPS
SandboxSafe Test Environment
WebhooksReal-Time Delivery Status
HoursTypical Basic Integration

Read This First

Built for Developers Wiring OTP, WhatsApp, and SMS Into an App

If you're building or maintaining an astrology consultation app, this page covers the developer side of MetaReach's messaging infrastructure — authentication, endpoints, request/response formats, and delivery-status webhooks. For the non-technical overview of what these tools do, start with the astrology messaging solutions pillar instead.

Quick Answer — Astrology Platform API Integration

MetaReach's API integration for astrology platforms uses API key authentication, REST/JSON endpoints for OTP, WhatsApp, SMS, and IVR, and webhook callbacks for real-time delivery status. A sandbox environment is available for end-to-end testing before switching to production credentials.

Endpoints

Core API Endpoints

All endpoints accept and return JSON over HTTPS, authenticated via an API key in the request header.

Method Endpoint Purpose
POST /v1/otp/send Send a login/signup OTP to a phone number
POST /v1/otp/verify Verify a user-submitted OTP code
POST /v1/whatsapp/send Send a WhatsApp template message (reminder, kundli delivery, etc.)
POST /v1/sms/send Send a single or bulk SMS (e.g. horoscope batch)
GET /v1/messages/{id}/status Poll the delivery status of a sent message
POST /v1/webhooks/register Register a callback URL for real-time delivery status events

Sample Request — Send OTP

POST /v1/otp/send
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "phone": "+91XXXXXXXXXX",
  "template_id": "otp_login_v1",
  "sender_id": "ASTROX"
}

Sample Webhook Payload — Delivery Status

{
  "message_id": "msg_8f2a1c",
  "channel": "sms",
  "status": "delivered",
  "timestamp": "2026-08-27T10:15:32+05:30"
}

Illustrative example only — actual field names and response formats are provided in full during onboarding.

Use Cases

What Developers Build With This API

Login/Signup Flow

OTP send and verify endpoints wired directly into the app's authentication screen.

Automated Session Reminders

A backend job triggers WhatsApp reminders a fixed time before each scheduled consultation.

Scheduled Horoscope Batch Sends

A daily cron job pushes the day's horoscope content to segmented subscriber lists via the SMS endpoint.

Delivery Status Sync

Webhooks update the app's own database in real time, without polling for message status.

Sandbox Testing

Full end-to-end integration testing before switching sandbox credentials for production ones.

Call-Routing Configuration

IVR routing rules configured via API for platforms managing many astrologers at once.

Go Further

Beyond the API Docs

The non-technical side of each tool this API powers.

Common Questions

Frequently Asked Questions

What authentication method does the API use?

API key-based authentication passed in the request header. Each account gets a unique key from the dashboard, with separate keys available for sandbox and production environments.

Is a sandbox environment available for testing before going live?

Yes. A sandbox environment lets developers test OTP, WhatsApp, SMS, and IVR integration end-to-end before switching to production credentials, with no risk of sending real messages to real users during development.

How do delivery status webhooks work?

Your application registers a webhook URL, and MetaReach's platform posts a JSON payload to that URL whenever a message's status changes — sent, delivered, read, or failed — so your app can update its own records without polling.

Can the API be integrated with a mobile app, not just a web backend?

Yes. Since it's a standard REST API over HTTPS, it can be called from any backend that can make an HTTP request — including a mobile app's server-side component, a Node.js or PHP backend, or a serverless function.

How long does API integration typically take?

A basic OTP integration typically takes a few hours for a developer already familiar with REST APIs. A full integration across OTP, WhatsApp, SMS, and IVR webhooks usually takes a few days, depending on how many flows your app needs.

Get Sandbox API Access

Talk to our team for API documentation, sandbox credentials, and integration support for your astrology platform.

WhatsApp Us Call +91-7669999219

Astrology Messaging Solutions  |  OTP Authentication  |  MetaReach API Docs  |  Case Studies  |  Book a Free Demo


Our Happy Clients

Trusted by 500+ Businesses Across India

From startups to enterprises — brands that grow with MetaReach


WhatsApp Facebook Instagram YouTube LinkedIn X / Twitter

☎ Instant Call Back FREE
or request a call back

We'll call you back within 5 minutes