Developers
Use the widget JavaScript API, the Contacts and email APIs, webhooks and the MCP server.
Widget JavaScript API reference
Every method on the Rectify widget, with what it takes and a working example, from init and control to track, identify and revenue.
Identify users and send events
Turn anonymous visitors into named contacts, attach their plan and company, and record the actions and payments that matter in your product.
Contacts API
Create and update contacts from your server, backfill up to 500 at a time, and attach your own records such as subscriptions or orders.
Send server events
Record signups, payments and other events from your backend, and see them on the right contact next to what they did in the browser.
Transactional email API
Send receipts, password resets and other product emails from your server with a secret server key, and retry safely without sending twice.
Signed webhooks
Send Rectify events to your own server, check each request's signature, and handle retries, tests and secret rotation.
Connect an AI app to Rectify over MCP
Let Claude, ChatGPT, Cursor, VS Code and other AI apps read and update your Rectify project through the hosted MCP server.
Manage MCP keys and connected apps
Create, rename, revoke and delete MCP keys, see which AI apps use them, and disconnect apps that signed in with your Rectify account.
Run the local MCP package
Give your AI editor offline tools that map your codebase, with the @rectify-so/mcp package, and optionally read-only Rectify data.