# API reference · ClosedLoop AI > Programmatic access to ClosedLoop AI: query product insights over the MCP's HTTP endpoint and push data in over webhooks. OAuth 2.1, API keys, documented tools. --- [Skip to main content](#main-content) ## API reference - [Overview](#top) - [The contract](#contract) - [Tools](#endpoints) - [Get started](#start) ## More - [Full tools reference](https://closedloop.sh/docs/mcp-server/tools) - [MCP for Claude Code](https://closedloop.sh/mcp-server) - [Browse integrations](https://closedloop.sh/integrations) - [Talk to us](https://closedloop.sh/contact) [Home](https://closedloop.sh/)/ Developers / API API reference # Programmatic access, two surfaces Everything ClosedLoop AI knows is reachable from code. Query product insights through the MCP's HTTP endpoint, the same tools your AI agents call, and push data in over authenticated webhooks. One workspace, documented tools, no surprise breaking changes. [Read docs](https://closedloop.sh/docs/mcp-server/tools)[Get API key](https://app.closedloop.sh/auth?mode=signup) - MCP over HTTP - OAuth 2.1 - Webhook ingestion ## Your first connection The read surface is the MCP endpoint. Point any MCP-capable client (or your own code speaking the protocol) at the base URL; auth is OAuth 2.1, auto-discovered: bash Connect from Claude Code ``` `# US workspace claude mcp add --transport http closedloop-ai https://mcp.closedloop.sh # EU workspace claude mcp add --transport http closedloop-ai https://eu.mcp.closedloop.sh` ``` Any other MCP client works with the same URL. Cursor, Windsurf, Zed, or your own script: add the endpoint, authorize once in the browser, and every tool below is callable. ## Built for builders An open protocol on the way out, authenticated webhooks on the way in. The pieces you check before you commit to an integration. 01 / Read ### MCP over HTTP The Model Context Protocol on standard HTTP transport. Every insight, customer, and opportunity, queryable by tool call. 02 / Auth ### OAuth 2.1 Authorization-code flow with PKCE, auto-discovered from the endpoint. API keys authenticate webhook ingestion. 03 / Write ### Webhooks in Push surveys, reviews, and custom feedback into the pipeline over authenticated webhook endpoints provisioned in the app. Keep keys secret An API key carries your workspace access. Store it in a secret manager or an environment variable, never in client-side code or version control. Rotate a key the moment it may be exposed. Reference tools ## The tools you'll call first Every MCP tool is callable from agents and scripts alike. A few of the workhorses, with the full reference in the docs: Tool Description Docs get_overview Aggregate counts, trends, and the shape of your feedback over a time window. [Docs](https://closedloop.sh/docs/mcp-server/tools)search_insights Hybrid search across every product insight, with semantic matching and filters. [Docs](https://closedloop.sh/docs/mcp-server/tools)search_customers Find customers by name, industry, deal state, churn risk, or insight volume. [Docs](https://closedloop.sh/docs/mcp-server/tools)search_opportunities Automatically discovered product problems, ranked by business impact and revenue. [Docs](https://closedloop.sh/docs/mcp-server/tools)get_trends Time-series volume for any topic, category, or feature area. [Docs](https://closedloop.sh/docs/mcp-server/tools) ## Get started in 3 steps From signup to your first tool call in under five minutes. - ### Sign up free Create your workspace. No credit card required. API keys for webhook ingestion mint from the dashboard. - ### Connect your data Connect Gong, Typeform, Slack, or any of our 44 native integrations, or push data in over webhooks. - ### Point your client at the MCP Add `https://mcp.closedloop.sh`to your agent or script, authorize once, and start querying. ## Next steps [Reference Read the tools docs → Every tool with parameters and return values.](https://closedloop.sh/docs/mcp-server/tools)[Keys Get an API key → Sign up free and mint a key from your dashboard.](https://app.closedloop.sh/auth?mode=signup)[Editors Add the MCP → Query the same data from Claude, Cursor, or VS Code.](https://closedloop.sh/mcp-server)[Sources Browse integrations → See every source you can connect, by category.](https://closedloop.sh/integrations) --- ## More Information - Website: https://closedloop.sh - Documentation: /docs - Pricing: https://closedloop.sh/pricing - Contact: https://closedloop.sh/contact