Developers
Developer overview
See every way your code connects to SaaSFunnels and which key each one uses.
SaaSFunnels connects to your product in a few places. Most teams need the first two; the rest are optional.
| What you're building | Where it runs | Page |
|---|---|---|
| Show Funnels on your site and app | Browser | Install code reference |
| Tell SaaSFunnels who is signed in | Your server | Install code reference |
| Send product events from your backend | Your server | Server events API |
| Take payments inside a Funnel | Your server | Payment actions |
| Receive leads and Funnel events | Your server | Webhook signatures |
| Give a coding agent access | Your machine or agent | MCP server |
| Validate events from a terminal or CI | Your machine or CI | CLI, CI event validation |
All requests go to https://app.saasfunnels.com.
Keys at a glance
| Key | Where to get it | Safe in a browser? |
|---|---|---|
| Client key | Settings → Install code | Yes. It only works on the sites you allow. |
| Funnel server key | Settings → Install code → Signed-in visitors → App users | No |
| API key (Developer tools or Event ingestion) | Settings → Integrations → Direct API | No |
| Discovery key | Finish setup → Let SaaSFunnels read your app | No |
| Payment signing and completion secrets | You generate them | No |
| Webhook signing secret | Settings → Integrations → Webhook | No |
Use the same account ID everywhere
Pick one stable ID for each customer account, such as your workspace or organization ID. Send it as account_id with server events, and as accountKey when your sign-in route creates a session. When the IDs match, a Funnel's results, events and payments line up with the right customer.
Hand the work to a coding agent
Settings → Install code has Set up with an agent in its actions menu, and the Direct API page has a matching handoff. Each gives an agent the steps and placeholders it needs, without real keys.