Authentication
Send the key in the Authorization header. A key is shown only once, when it is created. Every request runs as the workspace owner and is limited to that workspace.
curl https://api.usertestimony.com/api/public/v1/me \
-H "Authorization: Bearer ut_live_xxxxxxxxxxxxxxxxxxxxxxxx"
- The
read scope is for reading; write is for operations that change data. - Rate limit: 600 requests per minute per key (
RateLimit-* headers are returned). - Every response has an
X-Request-Id; include it when you report a problem.
Endpoints
Base URL: https://api.usertestimony.com/api/public/v1
| Method | Path | Scope | Description |
|---|
| GET | /me | read | The key's workspace and its scopes |
| GET | /tests?type=&status=&archived=&page=&limit= | read | Tests with response counts and completion rate; archived=true returns archived tests only |
| GET | /tests/{id} | read | One test in full, with its result row |
| GET | /tests/{id}/responses?page=&limit= | read | Participant responses, newest first |
| POST | /tests/{id}/complete | write | End a test |
| GET | /recordings/projects | read | Session recording projects |
| GET | /recordings/projects/{id}/sessions?page=&limit= | read | Recorded sessions (without events and snapshots) |
Responses look like { "message": "...", "data": { ... } }. Lists have items, page, limit and total. The maximum limit is 200.
{
"message": "Done.",
"data": {
"items": [
{ "id": "665…", "name": "Online store menu categories", "type": "cart-sorting-test",
"status": "published", "responses": 53, "completion_rate": 81, "created_at": "2026-09-01T10:12:00.000Z" }
],
"page": 1, "limit": 50, "total": 1
}
}
Webhooks
Each event is sent as a POST request with a JSON body to your address. The address must use https and answer with a 2xx code; otherwise the delivery is retried up to 5 times with increasing delays (1, 5, 30 and 120 minutes). After 25 failures in a row the webhook is disabled automatically.
| Event | Sent when |
|---|
response.created | A new response was recorded for one of your tests |
test.published | A test was published |
test.completed | A test ended (manually or by reaching its response limit) |
recording.session.created | A new recorded session started |
member.joined | A member joined the workspace |
ping | A test event sent from the panel |
Headers and signature
Every delivery has the X-UT-Event, X-UT-Delivery, X-UT-Timestamp and X-UT-Signature headers. The signature is the HMAC-SHA256 of the string {timestamp}.{body} with the webhook's secret. To prevent replay attacks, reject deliveries older than 5 minutes.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(req, secret) {
const ts = req.headers["x-ut-timestamp"];
const sig = req.headers["x-ut-signature"]; // "sha256=…"
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const expected = "sha256=" + createHmac("sha256", secret)
.update(`${ts}.${req.rawBody}`).digest("hex");
return sig.length === expected.length && timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}
{
"id": "0f3c…", "event": "response.created", "created_at": "2026-09-26T09:30:00.000Z",
"workspace": "665…",
"data": { "test_id": "665…", "test_name": "Online store menu categories", "test_type": "cart-sorting-test" }
}
MCP for AI assistants
The same data over the Model Context Protocol (Streamable HTTP, stateless), read-only, with the same API key. The endpoint is https://api.usertestimony.com/mcp with an Authorization: Bearer header, or https://api.usertestimony.com/mcp/k/<key> for clients that cannot send headers. Limit: 300 requests per minute per key.
claude mcp add --transport http usertestimony https://api.usertestimony.com/mcp \
--header "Authorization: Bearer ut_live_..."
| Tool | What it returns |
|---|
whoami | The workspace and the key's scopes |
list_tests | Tests with their type, status and response count |
get_test | A test's full settings and its result document |
list_responses | Participant responses, paginated, without phone numbers |
list_recording_projects | Session recording projects |
list_recording_pages | A project's recorded pages with their names and session counts |
list_recording_sessions | Sessions, filtered by page, device and time range |
get_session_summary | One session in brief: clicks in order, rage clicks, scroll depth, tags and comments |
get_heatmap | The most-clicked elements, scroll depth and attention for one page |
Step-by-step setup for Claude Desktop, claude.ai and Claude Code is in the help center.
Errors
401 invalid or revoked key · 402 the workspace's plan does not include the API · 403 the key's scope is not enough, or the resource does not belong to this workspace404 resource not found · 429 rate limit · 5xx server error (with request_id in the body)