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 docs
The OpenAPI 3.1 description is public. Read every endpoint before you create a key.
93MCP tools
50API operations
6webhook events

How 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 webhook body is trimmed. A full event also carries the customer, the order and the visit's UTM values.

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.

The MCP server

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.

The REST API

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.

Webhooks

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.

The website SDK

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

Agents without a chat window

Go deeper

One page for each

Requests, payloads, limits and code to copy.

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.