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.
/api/webhooks/metaWebhook verification challenge (Meta hub subscription)
/api/webhooks/metaReceive real-time Instagram comment and DM events
/api/razorpay/checkoutCreate a Razorpay order for a subscription plan
/api/razorpay/webhookRazorpay payment lifecycle events
/api/instagram/postsFetch recent Instagram posts for the connected account
/api/cron/drain-queueCron 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/.