SDK on every plan. MCP from Unlimited. API and webhooks on Plus.
Developers
Survey API, webhooks, SDK and MCP server.
Four ways to build on UserLoop: an MCP server for AI apps and agents, a REST API for your backend, signed webhooks for events, and one script for your front end.
Read the docsHow do developers build on UserLoop?
UserLoop is a customer feedback platform with four interfaces for developers. The MCP server lets an AI app or agent build surveys and read results as the person who signed in. The REST API does the same from your own server with an API key. Webhooks post each response to your URL as it arrives. The website SDK is one script that shows surveys in your front end.
- MCP server
- 93 tools at https://mcp.userloop.io, with OAuth sign-in
- REST API
- 50 operations at https://app.userloop.io/api/v1
- Webhooks
- 6 signed events, 10 attempts each
- Website SDK
- One script, 13 KB gzipped, no npm package
Four ways in
Pick by who starts the conversation
The four differ in who makes the first move and how each side proves who it is. Most projects end up using two of them together.
MCP server
An AI app starts it, acting for a person who signed in with OAuth. There is no key.
REST API
Your server starts it and sends an API key as a bearer token.
Webhooks
UserLoop starts it and signs every event with your endpoint's secret.
Website SDK
Your visitor's browser starts it with a public site key. There is no secret.
A first call
One real sample of each
Each tab is the smallest thing that works: connect an agent, list responses, receive an event, load the script.
# Claude Code
claude mcp add --scope user --transport http userloop https://mcp.userloop.io
# Codex
codex mcp add userloop --url https://mcp.userloop.io
codex mcp login userloop
# Any other agent: send it this line in its chat
# set up UserLoop: https://mcp.userloop.io/llms.txt# The last seven days of responses, newest first
curl -G https://app.userloop.io/api/v1/responses \
-H "Authorization: Bearer $USERLOOP_API_KEY" \
--data-urlencode "range=7d" \
--data-urlencode "limit=50"POST /userloop HTTP/1.1
Host: hooks.example.com
Content-Type: application/json
User-Agent: UserLoop-Webhooks/1
UserLoop-Event: response.completed
UserLoop-Event-Id: evt_3b9e2d7f0a6c4851b2e9d4f7a0c3e6b1
UserLoop-Signature: t=1794391453,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
{
"id": "evt_3b9e2d7f0a6c4851b2e9d4f7a0c3e6b1",
"type": "response.completed",
"api_version": "v1",
"created_at": "2026-11-11T10:04:11.000Z",
"organisation_id": "org_2xK9pQ7mT3vN8bR1",
"data": {
"response_id": "jh72kd9x4c1v8b5n3m6q0w7e2r4t8y1u",
"survey": { "public_id": "Nq8XcT2w", "title": "Post-purchase survey" },
"channel": "thank_you",
"answers": [
{
"question_id": "Xb3kP9qR",
"question": "How did you hear about us?",
"type": "single_select",
"answer": ["TikTok"]
}
]
}
}<script async
src="https://cdn.userloop.io/sdk-3/userloop.js"
data-site-key="SITE_KEY"></script>
<script>
// The global exists once the script has loaded
window.addEventListener("UserLoopReady", function () {
userloop.identify("user_8421", { plan: "pro" });
userloop.on("completed", function (e) {
console.log("Survey completed", e.surveyId, e.responseId);
});
});
</script>When to use each
Match the tool to the job
Each one has a job it is right for. Polling the API for new responses spends your rate limit on work a webhook does for free.
MCP server
For AI apps and agents
Add one address to Claude, ChatGPT, Cursor or any app that takes a remote MCP server. The person signs in, ticks what the app may do, and it works as them.
Use it when. You want to ask about results in plain words, or have an agent build, publish or install a survey.
93 tools. 40 read and 53 write. The app sees only the ones its permissions and the person's role allow.
No key to copy. Sign-in is OAuth in the browser, and you can revoke an app in the dashboard at any time.
REST API
For your backend
Your server calls UserLoop with an API key. JSON in and out, at one base URL, with errors you can branch on.
Use it when. You copy responses into a warehouse on a schedule, record answers collected somewhere else, or send a survey email from your own event.
50 operations. Surveys, questions, responses, customers, analytics, reports, sends, webhooks, sites and account.
Safe to retry. Cursor pagination, an Idempotency-Key on writes and Retry-After on a 429.
Webhooks
For events as they happen
UserLoop posts a signed JSON event to your URL the moment something happens, so nothing has to poll.
Use it when. Each response should set something off: a ticket for a low score, a row in your CRM, a job for an agent.
6 events. A new answer, a completed submission, an updated one, a low score, a survey published and a survey unpublished.
Signed and retried. HMAC-SHA256 in the UserLoop-Signature header, 10 attempts per delivery and a 90 day log with resend.
Website SDK
For your front end
One script shows your published website surveys and gives your code a global called window.userloop.
Use it when. You want a survey on a site or in a web app, aimed at signed-in users or opened from your own code.
12 methods, 5 events. Identify a visitor, set attributes to target on, open a survey and listen for each answer.
Nothing to install. No npm package and no framework wrapper. The site key is public, so the SDK cannot read your responses.
Shared facts
What holds across all four
- OpenAPI 3.1
- https://app.userloop.io/api/v1/openapi.json describes every endpoint, parameter and permission. It is public: no key, and readable from any origin.
- Rate limits
- About 120 requests a minute for each API key, with a Retry-After header on a 429. The MCP server allows 120 calls a minute.
- Permissions
- The same 7 on an MCP connection and an API key: Read surveys, Edit surveys, Read responses, Add responses, Manage reports, Read account, Change settings.
- Acting as a person
- An MCP connection and an API key both act as the person who made them, within that person's role. Publishing a survey needs an admin.
- Contact details
- Customer email addresses and names are masked in the API, the MCP server and webhooks unless you allow them and ask for them.
- Versioning
- Within v1, fields and values are only ever added. Ignore the ones your code does not know.
- Plans
- Website SDK: every plan, including Free. MCP server: Unlimited and Plus. API and webhooks: Plus. Unlimited and Plus each start with a 14-day trial.
For agents
An agent does not need a chat window
A webhook can wake an agent, the MCP server or the API lets it act, and record_response stores what it learned from a customer. The recipes are on one page.
- response.low_score
- an event in
- send_survey_email
- an action out
- record_response
- an answer recorded
Go deeper
One page for each
Requests, payloads, limits and code to copy.
- PlusREST APIKeys and scopes, every resource group, pagination, idempotency and errors.
- PlusWebhooksThe 6 events, a full payload, signature checks in Node and Python, and the retry schedule.
- Every planWebsite SDKThe script tag, every method and event, single-page apps, storage and Content Security Policy.
- Unlimited and PlusMCP server93 tools for Claude, ChatGPT, Cursor and any app that takes a remote MCP server.
- AgentsRecipes for agents that react to events and act with no one typing.
- IntegrationsZapier, Make and n8n use the same API and webhooks, with no code to write.
Frequently asked questions
Does UserLoop have a survey API?
Yes. The REST API at https://app.userloop.io/api/v1 has 50 operations for surveys, questions, responses, customers, analytics, reports, email sends and webhooks. It is on the Plus plan, and its OpenAPI 3.1 description is public.
Which plan includes the API, webhooks, SDK and MCP server?
The website SDK is on every plan, including Free. The MCP server is on Unlimited and Plus. The API and webhooks are on Plus, which is $99 a month. Unlimited and Plus each start with a 14-day trial.
Should I use the API or the MCP server?
Use the MCP server when an AI app or agent does the work for a person who signs in. Use the API when your own program does it with an API key. Both reach the same surveys, responses and reports, with the same 7 permissions.
Should I poll the API or use webhooks?
Use webhooks to react to each response as it arrives, and the API to read or copy data on a schedule. Polling for new responses uses up a rate limit of about 120 requests a minute for each key.
Is there an OpenAPI spec?
Yes. https://app.userloop.io/api/v1/openapi.json is an OpenAPI 3.1 document that lists every endpoint with its parameters, responses and the permission it needs. You can read it without an API key.
Is there an npm package or a client library?
No, and none is needed. The API is JSON over HTTPS, described by the OpenAPI document. The website SDK is one script tag from UserLoop's CDN, with no npm package and no React or Vue wrapper.
How do Zapier, Make and n8n connect?
Zapier signs in to UserLoop with OAuth and works on Unlimited and Plus with no API key. Make and n8n use webhooks for their triggers and the API for their actions, with an API key, on Plus.
Can my code read customer email addresses?
Only when you allow it. Email addresses and names are masked by default. An API key or a webhook endpoint has to be created with contact details switched on, and an API request has to ask for them.
Keep reading
Read the spec, then create a key
The OpenAPI document is public and the website SDK works on the Free plan. Unlimited and Plus each start with a 14-day trial.