Developers
API and webhooks
Read your forms, responses and statistics from your own server, and get every new response the moment it arrives. Free, like the rest of quibby.
- JSONread-only REST API
- 120requests per minute per key
- 5webhooks per form
Overview
The API lives at https://quibby.app/v1. It is read-only, answers JSON, and gives access to every form of the account that owns the key: the forms themselves, their responses (with uploaded files) and their statistics. Webhooks work the other way round: quibby calls your server each time someone answers a form.
- Every date is ISO 8601 in UTC, such as
2026-11-29T10:15:30.000Z. - Ids are short strings of letters and digits. Question and option ids never change, even when you reword a question, so you can rely on them.
- Every answer carries a
Quibby-Request-Idheader. Include it if you ever write to us about a request.
Authentication
Create a key in the app, in My account → API keys. The full key is shown only once, so copy it right away. Keys start with qb_live_, are personal (they belong to your account, not to one form) and can only read. You can have up to 10 at a time and revoke any of them whenever you want: a revoked key stops working at once.
Send the key in the Authorization header (or in X-API-Key):
curl https://quibby.app/v1/me \
-H "Authorization: Bearer qb_live_…"Use keys only from your server. Never put them in a web page, a mobile app or a public repository: anyone could read them there. The API sends no CORS headers, so browsers cannot call it.
Rate limits
Each key can make 120 requests per minute. Past that, the API answers 429 with a Retry-After header that says how many seconds to wait. Lists return up to 1,000 items per request, so a whole form (up to 10,000 responses) takes a few requests.
Errors
Errors use the HTTP status and a JSON body with a stable code and a message for people (in English, or in Spanish when the request asks for it with Accept-Language: es).
{
"error": {
"code": "invalid_api_key",
"message": "The API key is not valid or was revoked."
}
}| Status | Code | When |
|---|---|---|
| 400 | invalid_parameter | A query parameter is not valid; the message names it. |
| 401 | api_key_required | The request has no key. |
| 401 | invalid_api_key | The key does not exist or was revoked. |
| 403 | account_suspended | The account that owns the key is suspended. |
| 404 | form_not_found | The form does not exist or belongs to another account. |
| 404 | not_found | The response, file or endpoint does not exist. |
| 429 | rate_limited | Too many requests: wait the seconds in Retry-After. |
| 500 | server_error | Something failed on our side. Try again a little later. |
Pagination
The responses list comes in pages. Each page has data, has_more, next_cursor and total (how many responses match the filters). To get the next page, repeat the same request with cursor set to next_cursor, until has_more is false.
| Parameter | Description |
|---|---|
limit | Responses per page, from 1 to 1,000. Default 100. |
order | desc (newest first, the default) or asc (oldest first). |
since | Only responses sent at or after this time: Unix seconds or an ISO 8601 date. |
cursor | The next_cursor of the previous page. |
To pick up new responses regularly, save the createdAt of the latest one you stored and ask for order=asc&since= that time; skip the ids you already have.
Your account
GET/v1/me
The account that owns the key and the limits every account has.
{
"account": {
"id": "u5Tg2Lk9Qw",
"email": "ana@example.com",
"name": "Ana García",
"locale": "en"
},
"limits": {
"forms": 100,
"responsesPerForm": 10000,
"…": "…"
}
}Forms
GET/v1/forms
Every form of the account, newest first, in data. status is draft (never published), open, closed (switched off or past its closing date), full (it reached its response limit) or suspended. url is the public address, once published.
curl https://quibby.app/v1/forms \
-H "Authorization: Bearer qb_live_…"{
"data": [
{
"id": "Xk3pQ9vL2m",
"title": "Customer feedback",
"status": "open",
"isPublished": true,
"accepting": true,
"quiz": false,
"language": "en",
"responseCount": 128,
"viewCount": 412,
"createdAt": "2026-11-02T09:00:00.000Z",
"updatedAt": "2026-11-20T17:42:10.000Z",
"publishedAt": "2026-11-20T17:42:10.000Z",
"lastResponseAt": "2026-11-29T10:15:30.000Z",
"url": "https://quibby.app/f/Xk3pQ9vL2m"
}
]
}GET/v1/forms/{form_id}
One form with the same fields, plus publishedVersion and doc: the published form with its questions, options, settings and theme. For quizzes it includes the answer key, because the key belongs to the owner. Add ?draft=1 to also get draft, the version you are editing.
Responses
GET/v1/forms/{form_id}/responses
The responses of a form, paginated (see Pagination).
curl "https://quibby.app/v1/forms/Xk3pQ9vL2m/responses?limit=100&order=asc&since=2026-11-01" \
-H "Authorization: Bearer qb_live_…"{
"data": [
{
"id": "r7TqW2nZ8yVb4KcM",
"seq": 42,
"createdAt": "2026-11-29T10:15:30.000Z",
"version": 3,
"score": null,
"maxScore": null,
"durationMs": 48210,
"device": "mobile",
"country": "ES",
"integrity": null,
"answers": {
"q8f2k1m0a": 9,
"q3n7d5x2c": 5,
"q6p1z9w4e": {
"choices": [
"o4kd8s1qa"
],
"other": "Fast delivery"
},
"q2r8t4y6u": "Open on Sundays, please."
},
"fields": [
{
"id": "q8f2k1m0a",
"label": "How likely are you to recommend us to a friend?",
"type": "scale",
"value": 9,
"display": "9"
},
{
"id": "q3n7d5x2c",
"label": "How would you rate our service?",
"type": "rating",
"value": 5,
"display": "5"
},
{
"id": "q6p1z9w4e",
"label": "What did you like most?",
"type": "multiple_choice",
"value": {
"choices": [
"o4kd8s1qa"
],
"other": "Fast delivery"
},
"display": "Quality, Other: Fast delivery"
},
{
"id": "q2r8t4y6u",
"label": "What could we do better?",
"type": "long_text",
"value": "Open on Sundays, please.",
"display": "Open on Sundays, please."
}
]
}
],
"next_cursor": "c2VxOjQy",
"has_more": true,
"total": 128
}GET/v1/forms/{form_id}/responses/{response_id}
One response, in the same shape.
The response object
answers holds the answers exactly as stored, by question id. fields lists every question of the form in order, with its current label, its type, the value (or null when it was not answered) and display, the answer as a person reads it. Questions you deleted from the form appear at the end with removed: true, only in the responses that answered them. seq is the response number (#1, #2…), version the published version that was answered, and score/maxScore the quiz grade.
| Question type | value | display |
|---|---|---|
| Short and long text, email, phone, website | Text | The text |
| Number, rating, scale | Number | The number |
| Date / time | "2026-11-29" / "09:30" | The same |
| Yes/no | true or false | “Yes” or “No”, in the form’s language |
| Single choice, multiple choice, dropdown | { "choices": [option ids], "other": "…" } | Option labels separated by commas, then “Other: …” |
| File upload | [{ "id", "name", "size", "type", "url" }] | The file names |
Exam protection: `integrity`
integrity is null for forms without exam protection. For a form with a time limit or other exam protection, it records how the response was answered. The counters come from the respondent’s page; late and elapsedMs are measured by Quibby from the moment the respondent pressed Start.
{
"integrity": {
"attempt": "K7QM4X",
"leaves": 2,
"awayMs": 41800,
"fullscreenExits": 0,
"blockedActions": 3,
"late": false,
"autoSubmitted": null,
"elapsedMs": 1504200
}
}| Field | Meaning |
|---|---|
attempt | The 6-character attempt code shown in the watermark. |
leaves | Times the respondent left the window or tab. |
awayMs | Time spent away, in milliseconds. |
fullscreenExits | Times the respondent left full screen (or could not enter it). |
blockedActions | Copy, paste, print and right-click attempts that were blocked. |
late | true when it arrived after the time limit plus 2 minutes of grace. |
autoSubmitted | "time" (the time ran out), "leaves" (the leave limit was reached) or null. |
elapsedMs | From Start to submit, in milliseconds; null when the start could not be verified. |
Late responses are accepted, never dropped: check late and autoSubmitted to decide what to do with them. No web page can detect screenshots or a second device.
Files
GET/v1/forms/{form_id}/files/{file_id}
Files uploaded by respondents are private. Each file answer has a url that downloads it with the same API key; the file comes as an attachment with its original name.
curl -OJ https://quibby.app/v1/forms/Xk3pQ9vL2m/files/Fh3kP9sQ2mL7xN4vB8cR \
-H "Authorization: Bearer qb_live_…"Statistics
GET/v1/forms/{form_id}/stats
totals and daily cover the last days days (from 7 to 90, default 30, in UTC): views, starts (people who answered at least one question), responses, completionRate (responses ÷ views, from 0 to 1) and the average and median time to answer. questions sums up every stored response for each question of the published form: counts and percentages per option, yes and no, average and distribution of ratings and scales, the Net Promoter Score of 0–10 scales, and minimum, maximum, average and median of numbers. Quizzes add correctRate per question and quiz with the average score. Forms with exam protection add integrity (otherwise null), over every stored response: how many have a record, how many were late, sent automatically (time, leaves) or flagged (late, sent automatically or left the window at least once), and the average leaves, time away and time used.
curl https://quibby.app/v1/forms/Xk3pQ9vL2m/stats?days=30 \
-H "Authorization: Bearer qb_live_…"{
"period": {
"days": 30,
"from": "2026-10-31",
"to": "2026-11-29"
},
"totals": {
"views": 412,
"starts": 190,
"responses": 128,
"completionRate": 0.3107,
"averageDurationMs": 52300,
"medianDurationMs": 47100
},
"daily": [
{
"date": "2026-10-31",
"views": 9,
"starts": 4,
"responses": 3
},
"…",
{
"date": "2026-11-29",
"views": 21,
"starts": 11,
"responses": 7
}
],
"questions": [
{
"id": "q8f2k1m0a",
"label": "How likely are you to recommend us to a friend?",
"type": "scale",
"answered": 128,
"average": 8.4,
"distribution": [
{
"value": 0,
"count": 2,
"percent": 1.6
},
"…"
],
"nps": {
"score": 46,
"promoters": 76,
"passives": 35,
"detractors": 17
}
},
{
"id": "q6p1z9w4e",
"label": "What did you like most?",
"type": "multiple_choice",
"answered": 120,
"options": [
{
"id": "o4kd8s1qa",
"label": "Quality",
"count": 64,
"percent": 53.3
},
"…"
],
"other": 9
}
],
"quiz": null,
"integrity": null
}{
"integrity": {
"responses": 28,
"late": 1,
"autoSubmitted": {
"time": 3,
"leaves": 1
},
"flagged": 9,
"averageLeaves": 0.6,
"averageAwayMs": 12400,
"averageElapsedMs": 1622000
}
}Webhooks
Open a form, go to the Integrations tab and add the address of your server (https only). Each form can have up to 5, and you can switch each one off without deleting it. From then on, every new response is sent there as a POST with a JSON body: to your own server, or to automation tools that accept webhooks.
Events
| Event | When |
|---|---|
response.created | Someone submitted a response. response has the same shape as in the API, integrity included. |
ping | You pressed “Send test” in the app. |
{
"id": "Qm9vT2xXr4ZpL8sNa1Bc",
"type": "response.created",
"created_at": "2026-11-29T10:15:31.000Z",
"form": {
"id": "Xk3pQ9vL2m",
"title": "Customer feedback",
"url": "https://quibby.app/f/Xk3pQ9vL2m"
},
"response": {
"id": "r7TqW2nZ8yVb4KcM",
"seq": 42,
"createdAt": "2026-11-29T10:15:30.000Z",
"version": 3,
"score": null,
"maxScore": null,
"durationMs": 48210,
"device": "mobile",
"country": "ES",
"integrity": null,
"answers": {
"q8f2k1m0a": 9,
"q3n7d5x2c": 5,
"q6p1z9w4e": {
"choices": [
"o4kd8s1qa"
],
"other": "Fast delivery"
},
"q2r8t4y6u": "Open on Sundays, please."
},
"fields": [
{
"id": "q8f2k1m0a",
"label": "How likely are you to recommend us to a friend?",
"type": "scale",
"value": 9,
"display": "9"
},
{
"id": "q3n7d5x2c",
"label": "How would you rate our service?",
"type": "rating",
"value": 5,
"display": "5"
},
{
"id": "q6p1z9w4e",
"label": "What did you like most?",
"type": "multiple_choice",
"value": {
"choices": [
"o4kd8s1qa"
],
"other": "Fast delivery"
},
"display": "Quality, Other: Fast delivery"
},
{
"id": "q2r8t4y6u",
"label": "What could we do better?",
"type": "long_text",
"value": "Open on Sundays, please.",
"display": "Open on Sundays, please."
}
]
}
}{
"id": "Hk2vP0aWq7ZmL3sNe5Rt",
"type": "ping",
"created_at": "2026-11-29T10:20:00.000Z",
"form": {
"id": "Xk3pQ9vL2m",
"title": "Customer feedback",
"url": "https://quibby.app/f/Xk3pQ9vL2m"
},
"webhook": {
"id": "Wb4kQ8zP1mN6xT2r"
}
}When a response is too large to send with its labelled fields, they are left out and response.truncated is true; answers is always complete, and the API returns the full response.
Headers
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | Quibby-Webhooks/1.0 (+https://quibby.app) |
Quibby-Event | response.created or ping |
Quibby-Delivery | The id of the delivery, also in the body. It stays the same on every retry: use it to skip duplicates. |
Quibby-Signature | t=<Unix time>,v1=<signature> |
Verifying the signature
Every webhook has its own signing secret, which starts with whsec_. You can see it, copy it and rotate it in the Integrations tab. To check that a request comes from Quibby and was not changed:
- Take
tandv1from theQuibby-Signatureheader. - Compute the HMAC-SHA256 of
t, a dot and the raw body (t + "." + body), with the whole secret (includingwhsec_) as the key, in hexadecimal. - Compare it with
v1in constant time, and refuse requests whosetis more than 5 minutes away from now.
import { createHmac, timingSafeEqual } from 'node:crypto';
import { createServer } from 'node:http';
// The webhook signing secret (whsec_…), kept on your server.
const secret = process.env.QUIBBY_WEBHOOK_SECRET;
function verify(header, body) {
const parts = Object.fromEntries((header ?? '').split(',').map((part) => part.split('=')));
const timestamp = Number(parts.t);
// Refuse signatures older than 5 minutes.
if (!timestamp || Math.abs(Date.now() / 1000 - timestamp) > 300) return false;
const expected = createHmac('sha256', secret).update(`${parts.t}.${body}`).digest('hex');
const given = Buffer.from(parts.v1 ?? '');
return given.length === expected.length && timingSafeEqual(given, Buffer.from(expected));
}
createServer((req, res) => {
const chunks = [];
req.on('data', (chunk) => chunks.push(chunk));
req.on('end', () => {
// The signature covers the exact body: read it before parsing JSON.
const body = Buffer.concat(chunks).toString('utf8');
if (!verify(req.headers['quibby-signature'], body)) return res.writeHead(400).end();
const event = JSON.parse(body);
// Answer 2xx quickly; do slow work afterwards.
res.writeHead(200).end();
if (event.type === 'response.created') console.log(event.response.fields);
});
}).listen(3000);import hashlib, hmac, json, os, time
from http.server import BaseHTTPRequestHandler, HTTPServer
# The webhook signing secret (whsec_…), kept on your server.
SECRET = os.environ["QUIBBY_WEBHOOK_SECRET"].encode()
def verify(header: str, body: bytes) -> bool:
parts = dict(part.split("=", 1) for part in header.split(",") if "=" in part)
timestamp = parts.get("t", "")
# Refuse signatures older than 5 minutes.
if not timestamp.isdigit() or abs(time.time() - int(timestamp)) > 300:
return False
expected = hmac.new(SECRET, timestamp.encode() + b"." + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))
class Handler(BaseHTTPRequestHandler):
def do_POST(self):
body = self.rfile.read(int(self.headers.get("Content-Length", 0)))
if not verify(self.headers.get("Quibby-Signature", ""), body):
self.send_response(400)
self.end_headers()
return
event = json.loads(body)
self.send_response(200)
self.end_headers()
if event["type"] == "response.created":
print(event["response"]["fields"])
HTTPServer(("", 3000), Handler).serve_forever()Answers and retries
Answer with any 2xx status within 10 seconds and the delivery counts as delivered. Anything else (another status, a redirect, a timeout or a connection error) counts as a failed attempt, and the delivery is retried after 1 min, 5 min, 30 min, 2 h and 12 h: 6 attempts in all, then it is marked as failed. Retries are approximate, and they send the same body with a new signature.
The Deliveries list of each webhook shows the last 30 days: when, which event, the status code, the attempts and the time it took, and the body that was sent. From there you can resend any delivery. Send test sends a ping right away and shows the result; it is never retried.
Security
- Keep API keys and signing secrets on your server, in environment variables or a secrets manager, never in your code repository.
- Give each server or integration its own key, so you can revoke one without touching the rest, and revoke the keys you no longer use.
- Always verify
Quibby-Signaturebefore trusting a webhook, and reject old timestamps. - If a secret may have leaked, rotate it in the Integrations tab: the old one stops working at once, so update your server right after.
- Responses can hold personal data: store only what you need and protect it as you would in the app.