API Reference

All ReplyRun REST endpoints and webhook payloads.

ReplyRun is a Next.js application that exposes a set of API routes for webhook handling, billing, and Instagram account management. All authenticated endpoints require a valid NextAuth.js session cookie.

Endpoints
GET
/api/webhooks/meta

Webhook verification challenge (Meta hub subscription)

POST
/api/webhooks/meta

Receive real-time Instagram comment and DM events

POST
/api/razorpay/checkout

Create a Razorpay order for a subscription plan

POST
/api/razorpay/webhook

Razorpay payment lifecycle events

GET
/api/instagram/posts

Fetch recent Instagram posts for the connected account

GET
/api/cron/drain-queue

Cron endpoint that drains the Redis DM queue (Vercel Cron, secured)

Full request/response schemas and webhook payload examples are coming soon. In the meantime, all route source code is available in src/app/api/.

Back to Documentation