Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.
v2 delivers events to HTTPS endpoints you register with POST /v2/webhook-endpoints. Deliveries are signed with an HMAC secret so you can verify they came from PickFu.
The /v2/webhook-endpoints resource is a standard CRUD collection under the write scope for mutations and read for reads.
Create
POST /v2/webhook-endpoints with { url, enabledEvents } returns the endpoint and the signing secret — this is the only time the secret is returned. Store it before you exit the response.
List and read
GET /v2/webhook-endpoints (cursor-paginated) and GET /v2/webhook-endpoints/{id}. Neither includes the signing secret.
Update
PATCH /v2/webhook-endpoints/{id} changes the URL or the subscribed events.
Delete
DELETE /v2/webhook-endpoints/{id} stops all deliveries to that endpoint.
Endpoint IDs are prefixed whk_…. Each team may register up to 10 endpoints.
{ "id": "evt_01J9C2VZH8...", "type": "survey.completed", "createdAt": "2026-09-10T18:25:00.000Z", "data": { "object": { /* full survey or order resource */ } }}
id is stable across retries of the same occurrence — use it to dedupe. Reply with any 2xx status within your timeout to acknowledge; a non-2xx or timeout is retried.
import crypto from "node:crypto";function verifyPickFuSignature(header: string, rawBody: string, secret: string) { const parts = Object.fromEntries( header.split(",").map((p) => p.trim().split("=")) ); const t = parts["t"]; const v1 = parts["v1"]; if (!t || !v1) return false; const ageSeconds = Math.abs(Date.now() / 1000 - Number(t)); if (ageSeconds > 5 * 60) return false; // Reject anything that isn't a 64-char hex digest before comparing — // timingSafeEqual throws on length mismatch, which would surface an // attacker-controlled header value as a request-triggered error. if (!/^[0-9a-f]{64}$/i.test(v1)) return false; const expected = crypto .createHmac("sha256", secret) .update(`${t}.${rawBody}`) .digest("hex"); return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));}
Verify against the raw request body (bytes on the wire), not the parsed JSON. Re-serialising the parsed body will change whitespace, key order, or number formatting and break the signature.
Retries. Non-2xx responses and timeouts are retried with backoff. The envelope id stays the same across retries, so idempotent processing keys off id.
Ordering. Deliveries are best-effort in-order per endpoint but not strictly ordered — always trust createdAt and the current resource state in data.object over delivery order.
Rotating the secret. Delete the endpoint and create a new one. The signing secret is only ever returned at creation time.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PickFu","description":"Learn how to test products, designs, and ideas with real consumers on PickFu. Guides, playbooks, help articles, and API docs for faster market research.","colors":{"primary":"#077bb1","light":"#0a9ad9","dark":"#044a6a"},"logo":{"light":"https://mintcdn.com/pickfu/vBkBDzuTZ3Dv9PGt/logo/pickfu-logo.png?fit=max\u0026auto=format\u0026n=vBkBDzuTZ3Dv9PGt\u0026q=85\u0026s=c9deac752e65ca666c83708586e30476","dark":"https://mintcdn.com/pickfu/vBkBDzuTZ3Dv9PGt/logo/pickfu-logo.png?fit=max\u0026auto=format\u0026n=vBkBDzuTZ3Dv9PGt\u0026q=85\u0026s=c9deac752e65ca666c83708586e30476"},"favicon":"https://mintcdn.com/pickfu/2-G60FFU7nK6XyJC/favicon.svg?fit=max\u0026auto=format\u0026n=2-G60FFU7nK6XyJC\u0026q=85\u0026s=1ccd7a3510c0f5c168a273aac733424f","navbar":{"links":[{"href":"mailto:support@pickfu.com","label":"Support"}],"primary":{"type":"button","label":"Sign Up","href":"https://www.pickfu.com/users/sign_up"}},"footer":{"socials":{"x":"https://x.com/pickfu","linkedin":"https://linkedin.com/company/pickfu"}},"fonts":{"family":"Source Sans 3"},"integrations":{"posthog":{"apiKey":"phc_uUFpq03LDtTLekF72Huzq9heNHUw5CM5hQmUtJMTQdR","apiHost":"https://e.pickfu.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"PickFu","icon":"house","href":"https://www.pickfu.com"},{"anchor":"Support","icon":"envelope","href":"mailto:support@pickfu.com"}]},"languages":[{"language":"en","default":true,"href":"docs/guides/surveys-overview"},{"language":"es","href":"es/help/getting-started"},{"language":"ru","href":"ru/help/getting-started"},{"language":"zh","href":"zh/help/getting-started"},{"language":"ja","href":"ja/help/what-is-pickfu"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pickfu","hasAudioNarration":false,"actualSubdomain":"pickfu","customDomains":["www.pickfu.com"],"gitSource":{"type":"github","owner":"pickfu","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af03f402f2e026614e6fc39","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"en","tag":"Help","count":194},{"language":"zh","tag":"Help","count":104},{"language":"es","tag":"Help","count":69},{"language":"en","tag":"More","count":48},{"language":"en","tag":"Use cases","count":43},{"language":"en","tag":"API Reference","count":42},{"language":"ru","tag":"Help","count":38},{"language":"en","tag":"Understanding your results","count":22},{"language":"es","tag":"Resultados de las encuestas","count":22},{"language":"zh","tag":"Understanding your results","count":22},{"language":"ru","tag":"Результаты опроса","count":21},{"language":"en","tag":"Pricing, payments, and subscriptions","count":20},{"language":"en","tag":"Surveys","count":19},{"language":"ja","tag":"Help","count":18},{"language":"en","tag":"Guides, playbooks, and best practices","count":17},{"language":"en","tag":"Features and question types","count":16},{"language":"en","tag":"Creating your survey","count":14},{"language":"zh","tag":"收付款、费用、优惠及预购积分相关","count":14},{"language":"es","tag":"Precios y pagos","count":12},{"language":"zh","tag":"Choosing your audience","count":11},{"language":"zh","tag":"指南、实战手册与最佳实践","count":9},{"language":"zh","tag":"创建 PickFu 问卷","count":9},{"language":"zh","tag":"Getting started","count":8},{"language":"es","tag":"Segmentación de audiencia e información de los encuestados","count":7},{"language":"es","tag":"Revisando tus resultados","count":7},{"language":"es","tag":"Funciones de inteligencia artificial","count":7},{"language":"ru","tag":"Обзор результатов","count":7},{"language":"zh","tag":"更多","count":7},{"language":"zh","tag":"Features and question types","count":7},{"language":"zh","tag":"Interpreting results","count":7},{"language":"es","tag":"Realizando una encuesta","count":6},{"language":"ru","tag":"Возможности искусственного интеллекта","count":6},{"language":"es","tag":"Cupones y descuentos","count":5},{"language":"es","tag":"Features and question types","count":5},{"language":"es","tag":"Getting started","count":5},{"language":"ja","tag":"対象者の選び方","count":5},{"language":"ja","tag":"はじめに","count":4},{"language":"ja","tag":"結果を理解する","count":4},{"language":"ru","tag":"Таргетирование аудитории и информация о респондентах","count":4},{"language":"ru","tag":"Features and question types","count":3},{"language":"ja","tag":"機能と質問タイプ","count":2},{"language":"ja","tag":"料金・お支払い・サブスクリプション","count":2},{"language":"ru","tag":"Настройки и персонализация","count":2},{"language":"ru","tag":"Проведение опроса PickFu","count":2},{"language":"ru","tag":"Getting started","count":2},{"language":"ru","tag":"Troubleshooting","count":2},{"language":"ja","tag":"ガイド・プレイブック・ベストプラクティス","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"type":"email","email":"support@pickfu.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"#navbar a.group .bg-primary-dark{background-color:#b8592e!important}.uc-chip-on{background-color:#077bb1!important;border-color:#077bb1!important;color:#fff!important}.uc-card:hover{border-color:#077bb1!important}.uc-card:hover .uc-card-title{color:#077bb1}.uc-card-icon{color:#077bb1}"}],"page":{"pagePath":"docs/api-reference/v2/webhooks","slug":"/docs/api-reference/v2/webhooks","pageMetadata":{"title":"Webhooks","icon":"webhook","sidebarTitle":"Webhooks","description":"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.","href":"/docs/api-reference/v2/webhooks"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={annotation:`annotation`,code:`code`,li:`li`,math:`math`,mi:`mi`,mrow:`mrow`,ol:`ol`,p:`p`,pre:`pre`,semantics:`semantics`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`v2 delivers events to HTTPS endpoints you register with `,_jsx(_components.code,{children:`POST /v2/webhook-endpoints`}),`. Deliveries are signed with an HMAC secret so you can verify they came from PickFu.`]}),`\n`,_jsx(Heading,{level:`2`,id:`managing-endpoints`,children:`Managing endpoints`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`/v2/webhook-endpoints`}),` resource is a standard CRUD collection under the `,_jsx(_components.code,{children:`write`}),` scope for mutations and `,_jsx(_components.code,{children:`read`}),` for reads.`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Create`,icon:`plus`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v2/webhook-endpoints`}),` with `,_jsx(_components.code,{children:`{ url, enabledEvents }`}),` returns the endpoint `,_jsx(_components.strong,{children:`and the signing secret`}),` — this is the only time the secret is returned. Store it before you exit the response.`]})}),_jsx(Card,{title:`List and read`,icon:`list`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GET /v2/webhook-endpoints`}),` (cursor-paginated) and `,_jsx(_components.code,{children:`GET /v2/webhook-endpoints/{id}`}),`. Neither includes the signing secret.`]})}),_jsx(Card,{title:`Update`,icon:`pen`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PATCH /v2/webhook-endpoints/{id}`}),` changes the URL or the subscribed events.`]})}),_jsx(Card,{title:`Delete`,icon:`trash`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`DELETE /v2/webhook-endpoints/{id}`}),` stops all deliveries to that endpoint.`]})})]}),`\n`,_jsxs(_components.p,{children:[`Endpoint IDs are prefixed `,_jsx(_components.code,{children:`whk_…`}),`. Each team may register up to 10 endpoints.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.pickfu.com/v2/webhook-endpoints`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_live_your_key_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://your-app.example.com/pickfu/webhooks\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"enabledEvents\": [\"survey.completed\", \"order.paid\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"webhook_endpoint\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whk_01J9C2VZH8...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://your-app.example.com/pickfu/webhooks\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabledEvents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"survey.completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"order.paid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"secret\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"whsec_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-10T18:22:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-10T18:22:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`events`,children:`Events`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event`}),_jsx(_components.th,{children:`When it fires`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`data.object`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`survey.completed`})}),_jsxs(_components.td,{children:[`A published survey reaches `,_jsx(_components.code,{children:`status: \"completed\"`}),`.`]}),_jsx(_components.td,{children:`The survey resource.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order.paid`})}),_jsxs(_components.td,{children:[`An order transitions to `,_jsx(_components.code,{children:`paid`}),` — either a credit-pack purchase confirmed by Stripe, or a survey order paid at publish.`]}),_jsx(_components.td,{children:`The order resource.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`delivery-envelope`,children:`Delivery envelope`}),`\n`,_jsx(_components.p,{children:`Every delivery has the same shape:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"evt_01J9C2VZH8...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"survey.completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-10T18:25:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* full survey or order resource */`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`id`}),` is stable across retries of the same occurrence — use it to dedupe. Reply with any `,_jsx(_components.code,{children:`2xx`}),` status within your timeout to acknowledge; a non-2xx or timeout is retried.`]}),`\n`,_jsx(Heading,{level:`2`,id:`verifying-the-signature`,children:`Verifying the signature`}),`\n`,_jsxs(_components.p,{children:[`Every delivery carries an `,_jsx(_components.code,{children:`X-PickFu-Signature`}),` header:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`X-PickFu-Signature: t=1725974400,v1=5d4b2c...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`t`}),` is the unix timestamp (seconds) the delivery was signed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`v1`}),` is the hex-encoded `,_jsx(_components.strong,{children:`HMAC-SHA256`}),` of `,_jsx(_components.code,{children:`\u003ct>.\u003craw-body>`}),` using the signing secret returned when you created the endpoint.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Verify every delivery:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Reject requests missing `,_jsx(_components.code,{children:`X-PickFu-Signature`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Reject requests whose `,_jsx(_components.code,{children:`t`}),` is more than a few minutes off the current time (protects against replay).`]}),`\n`,_jsxs(_components.li,{children:[`Recompute `,_jsx(_components.code,{children:`HMAC_SHA256(secret, `}),_jsxs(_components.span,{className:`katex`,children:[_jsx(_components.span,{className:`katex-mathml`,children:_jsx(_components.math,{xmlns:`http://www.w3.org/1998/Math/MathML`,children:_jsxs(_components.semantics,{children:[_jsxs(_components.mrow,{children:[_jsx(_components.mi,{children:`t`}),_jsx(_components.mi,{mathvariant:`normal`,children:`.`})]}),_jsx(_components.annotation,{encoding:`application/x-tex`,children:`{t}.`})]})})}),_jsx(_components.span,{className:`katex-html`,\"aria-hidden\":`true`,children:_jsxs(_components.span,{className:`base`,children:[_jsx(_components.span,{className:`strut`,style:{height:`0.6151em`}}),_jsx(_components.span,{className:`mord`,children:_jsx(_components.span,{className:`mord mathnormal`,children:`t`})}),_jsx(_components.span,{className:`mord`,children:`.`})]})})]}),_jsx(_components.code,{children:`)`}),` and compare to `,_jsx(_components.code,{children:`v1`}),` with a `,_jsx(_components.strong,{children:`constant-time`}),` comparison.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`node-js-example`,children:`Node.js example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:crypto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` verifyPickFuSignature`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`header`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`rawBody`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`secret`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` parts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Object`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fromEntries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`split`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\",\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`p`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` p`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`trim`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`split`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"=\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` parts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"t\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` v1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` parts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"v1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ageSeconds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`abs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`t`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ageSeconds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 60`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Reject anything that isn't a 64-char hex digest before comparing —`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // timingSafeEqual throws on length mismatch, which would surface an`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // attacker-controlled header value as a request-triggered error.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#DCDCAA`},children:`^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D16969`},children:`0-9a-f`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#CE9178`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`{64}`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#DCDCAA`},children:`$`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`test`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` expected`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createHmac`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sha256\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`secret`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`update`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`t`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`rawBody`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`digest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` crypto`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`timingSafeEqual`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`expected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Verify against the `,_jsx(_components.strong,{children:`raw request body`}),` (bytes on the wire), not the parsed JSON. Re-serialising the parsed body will change whitespace, key order, or number formatting and break the signature.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`retries-and-ordering`,children:`Retries and ordering`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Retries.`}),` Non-2xx responses and timeouts are retried with backoff. The envelope `,_jsx(_components.code,{children:`id`}),` stays the same across retries, so idempotent processing keys off `,_jsx(_components.code,{children:`id`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Ordering.`}),` Deliveries are best-effort in-order per endpoint but not strictly ordered — always trust `,_jsx(_components.code,{children:`createdAt`}),` and the current resource state in `,_jsx(_components.code,{children:`data.object`}),` over delivery order.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rotating the secret.`}),` Delete the endpoint and create a new one. The signing secret is only ever returned at creation time.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Webhooks","icon":"webhook","sidebarTitle":"Webhooks","description":"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.","href":"/docs/api-reference/v2/webhooks"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Managing endpoints","slug":"managing-endpoints","depth":2,"children":[]},{"title":"Events","slug":"events","depth":2,"children":[]},{"title":"Delivery envelope","slug":"delivery-envelope","depth":2,"children":[]},{"title":"Verifying the signature","slug":"verifying-the-signature","depth":2,"children":[{"title":"Node.js example","slug":"node-js-example","depth":3,"children":[]}]},{"title":"Retries and ordering","slug":"retries-and-ordering","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pickfu","siteName":"PickFu","title":"Webhooks - PickFu","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/docs/api-reference/v2/webhooks","matchLevel":0},"es":{"href":"/es/help/getting-started","matchLevel":4},"ru":{"href":"/ru/help/getting-started","matchLevel":4},"zh":{"href":"/zh/help/getting-started","matchLevel":4},"ja":{"href":"/ja/help/what-is-pickfu","matchLevel":4}}},"lastModified":"2026-10-08T20:19:09.473Z","originalFileLocation":"docs/api-reference/v2/webhooks.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PickFu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Webhooks - PickFu\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PickFu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.pickfu.com/docs/api-reference/v2/webhooks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pickfu.mintlify.site/_mintlify/api/og/v2?division=API+v2\u0026amp;title=Webhooks\u0026amp;description=Create+endpoints%2C+verify+the+X-PickFu-Signature+HMAC%2C+and+react+to+survey.completed+and+order.paid+events.\u0026amp;theme=895a4d49fb7136a160afb725\u0026amp;signature=cae320577a72c19a0a71a59e36fec2cba59b06c73bc1952e047ecd49e485a468\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Webhooks - PickFu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pickfu.mintlify.site/_mintlify/api/og/v2?division=API+v2\u0026amp;title=Webhooks\u0026amp;description=Create+endpoints%2C+verify+the+X-PickFu-Signature+HMAC%2C+and+react+to+survey.completed+and+order.paid+events.\u0026amp;theme=895a4d49fb7136a160afb725\u0026amp;signature=cae320577a72c19a0a71a59e36fec2cba59b06c73bc1952e047ecd49e485a468\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/pickfu/RCFgFdLk2CNhsSVh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PickFu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#077bb1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.pickfu.com/docs/api-reference/v2/webhooks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/v2/webhooks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.pickfu.com/#organization\",\"name\":\"PickFu\",\"url\":\"https://www.pickfu.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pickfu/vBkBDzuTZ3Dv9PGt/logo/pickfu-logo.png?fit=max\u0026auto=format\u0026n=vBkBDzuTZ3Dv9PGt\u0026q=85\u0026s=c9deac752e65ca666c83708586e30476\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.pickfu.com#website\",\"name\":\"PickFu\",\"url\":\"https://www.pickfu.com\",\"publisher\":{\"@id\":\"https://www.pickfu.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks#webpage\",\"url\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks\",\"name\":\"Webhooks\",\"description\":\"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.\",\"dateModified\":\"2026-10-08T20:19:09.473Z\",\"isPartOf\":{\"@id\":\"https://www.pickfu.com#website\"},\"breadcrumb\":{\"@id\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API v2\",\"item\":\"https://www.pickfu.com/docs/api-reference/v2/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Webhooks\",\"item\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks#article\",\"headline\":\"Webhooks\",\"name\":\"Webhooks\",\"description\":\"Create endpoints, verify the X-PickFu-Signature HMAC, and react to survey.completed and order.paid events.\",\"url\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks\",\"mainEntityOfPage\":{\"@id\":\"https://www.pickfu.com/docs/api-reference/v2/webhooks#webpage\"},\"dateModified\":\"2026-10-08T20:19:09.473Z\",\"publisher\":{\"@id\":\"https://www.pickfu.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.pickfu.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PickFu\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"PickFu","nav":{"global":{"anchors":[{"anchor":"PickFu","icon":"house","href":"https://www.pickfu.com"},{"anchor":"Support","icon":"envelope","href":"mailto:support@pickfu.com"}]},"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":"/docs/guides/surveys-overview"}]},{"tab":"Playbooks","icon":"lightbulb","pages":[{"title":"Playbooks","href":"/docs/playbooks/overview"}]},{"tab":"Use cases","icon":"grid-2","pages":[{"title":"Use cases","href":"/docs/use-cases/overview"}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/docs/integrations/overview"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"API Reference","pages":[{"title":"PickFu REST API reference and conventions","icon":"code","sidebarTitle":"Introduction","href":"/docs/api-reference/introduction"}]},{"group":"API v2","pages":[{"title":"PickFu API v2 overview and differences from v1","icon":"sparkles","sidebarTitle":"Introduction","href":"/docs/api-reference/v2/introduction"},{"title":"Authentication","icon":"key","sidebarTitle":"Authentication","href":"/docs/api-reference/v2/authentication"},{"title":"Errors","icon":"triangle-exclamation","sidebarTitle":"Errors","href":"/docs/api-reference/v2/errors"},{"title":"Rate limits","icon":"gauge","sidebarTitle":"Rate limits","href":"/docs/api-reference/v2/rate-limits"},{"title":"Pagination","icon":"list","sidebarTitle":"Pagination","href":"/docs/api-reference/v2/pagination"},{"title":"Idempotency","icon":"rotate","sidebarTitle":"Idempotency","href":"/docs/api-reference/v2/idempotency"},{"title":"Publishing and payments","icon":"credit-card","sidebarTitle":"Publishing and payments","href":"/docs/api-reference/v2/payments"},{"title":"Question results","icon":"chart-bar","sidebarTitle":"Question results","href":"/docs/api-reference/v2/results"},{"title":"Templates","icon":"shapes","sidebarTitle":"Templates","description":"List and read PickFu templates on v2, create a draft survey from a template, and handle template limit errors.","href":"/docs/api-reference/v2/templates"},{"title":"Webhooks","icon":"webhook","sidebarTitle":"Webhooks","href":"/docs/api-reference/v2/webhooks"}]},{"group":"Surveys","pages":[{"title":"List surveys","description":"Returns a paginated list of surveys with filtering and sorting options. Use query parameters to filter by status, type, country, tags, projects, and more.","deprecated":null,"version":null,"sidebarTitle":"List surveys","openapi":"/docs/api-reference/openapi.json get /surveys","href":"/docs/api-reference/surveys/list-surveys"},{"title":"Create survey","deprecated":null,"version":null,"sidebarTitle":"Create survey","openapi":"/docs/api-reference/openapi.json post /surveys","href":"/docs/api-reference/surveys/create-survey"},{"title":"Get survey","deprecated":null,"version":null,"sidebarTitle":"Get survey","openapi":"/docs/api-reference/openapi.json get /surveys/{id}","href":"/docs/api-reference/surveys/get-survey"},{"title":"Update survey","deprecated":null,"version":null,"sidebarTitle":"Update survey","openapi":"/docs/api-reference/openapi.json patch /surveys/{id}","href":"/docs/api-reference/surveys/update-survey"},{"title":"Delete survey","deprecated":null,"version":null,"sidebarTitle":"Delete survey","openapi":"/docs/api-reference/openapi.json delete /surveys/{id}","href":"/docs/api-reference/surveys/delete-survey"},{"title":"Publish survey","deprecated":null,"version":null,"sidebarTitle":"Publish survey","openapi":"/docs/api-reference/openapi.json post /surveys/{id}/publish","href":"/docs/api-reference/surveys/publish-survey"},{"title":"Stop survey","deprecated":null,"version":null,"sidebarTitle":"Stop survey","openapi":"/docs/api-reference/openapi.json post /surveys/{id}/stop","href":"/docs/api-reference/surveys/stop-survey"},{"title":"Add respondents","deprecated":null,"version":null,"sidebarTitle":"Add respondents","openapi":"/docs/api-reference/openapi.json post /surveys/{id}/respondents","href":"/docs/api-reference/surveys/add-respondents"},{"title":"Get survey responses","deprecated":null,"version":null,"sidebarTitle":"Get survey responses","openapi":"/docs/api-reference/openapi.json get /surveys/{id}/responses","href":"/docs/api-reference/responses/get-survey-responses"},{"title":"List survey exports","deprecated":null,"version":null,"sidebarTitle":"List survey exports","openapi":"/docs/api-reference/openapi.json get /surveys/{id}/exports","href":"/docs/api-reference/surveys/list-survey-exports"},{"title":"Download survey CSV export","deprecated":null,"version":null,"sidebarTitle":"Download survey csv export","openapi":"/docs/api-reference/openapi.json get /surveys/{id}/exports/csv","href":"/docs/api-reference/surveys/download-survey-csv-export"},{"title":"Get click-test heatmap","deprecated":null,"version":null,"sidebarTitle":"Get click test heatmap","openapi":"/docs/api-reference/openapi.json get /surveys/{id}/questions/{questionId}/heatmap","href":"/docs/api-reference/surveys/get-click-test-heatmap"},{"title":"Get Van Westendorp aggregate results","deprecated":null,"version":null,"sidebarTitle":"Get van westendorp aggregate results","openapi":"/docs/api-reference/openapi.json get /surveys/{id}/questions/{questionId}/van-westendorp","href":"/docs/api-reference/surveys/get-van-westendorp-aggregate-results"},{"title":"Get follow-up answers","deprecated":null,"version":null,"sidebarTitle":"Get follow up answers","openapi":"/docs/api-reference/openapi.json get /surveys/{id}/followup-answers","href":"/docs/api-reference/surveys/get-follow-up-answers"}]},{"group":"Responses","pages":[{"title":"Rate a response","deprecated":null,"version":null,"sidebarTitle":"Rate a response","openapi":"/docs/api-reference/openapi.json post /responses/{id}/rate","href":"/docs/api-reference/responses/rate-a-response"},{"title":"Remove a response rating","deprecated":null,"version":null,"sidebarTitle":"Remove a response rating","openapi":"/docs/api-reference/openapi.json delete /responses/{id}/rate","href":"/docs/api-reference/responses/remove-a-response-rating"},{"title":"Pin or unpin a response","deprecated":null,"version":null,"sidebarTitle":"Pin or unpin a response","openapi":"/docs/api-reference/openapi.json put /surveys/{id}/responses/{responseId}/pin","href":"/docs/api-reference/responses/pin-or-unpin-a-response"}]},{"group":"Tags","pages":[{"title":"List tags","deprecated":null,"version":null,"sidebarTitle":"List tags","openapi":"/docs/api-reference/openapi.json get /tags","href":"/docs/api-reference/tags/list-tags"},{"title":"Create tag","deprecated":null,"version":null,"sidebarTitle":"Create tag","openapi":"/docs/api-reference/openapi.json post /tags","href":"/docs/api-reference/tags/create-tag"}]},{"group":"Traits","pages":[{"title":"Get targeting traits","deprecated":null,"version":null,"sidebarTitle":"Get targeting traits","openapi":"/docs/api-reference/openapi.json get /traits/targeting","href":"/docs/api-reference/traits/get-targeting-traits"},{"title":"Get reporting traits","deprecated":null,"version":null,"sidebarTitle":"Get reporting traits","openapi":"/docs/api-reference/openapi.json get /traits/reporting","href":"/docs/api-reference/traits/get-reporting-traits"}]},{"group":"Playbooks","pages":[{"title":"List playbooks","deprecated":null,"version":null,"sidebarTitle":"List playbooks","openapi":"/docs/api-reference/openapi.json get /playbooks","href":"/docs/api-reference/playbooks/list-playbooks"},{"title":"Get playbook","deprecated":null,"version":null,"sidebarTitle":"Get playbook","openapi":"/docs/api-reference/openapi.json get /playbooks/{slug}","href":"/docs/api-reference/playbooks/get-playbook"}]},{"group":"Projects","pages":[{"title":"List projects","deprecated":null,"version":null,"sidebarTitle":"List projects","openapi":"/docs/api-reference/openapi.json get /projects","href":"/docs/api-reference/projects/list-projects"},{"title":"Create project","deprecated":null,"version":null,"sidebarTitle":"Create project","openapi":"/docs/api-reference/openapi.json post /projects","href":"/docs/api-reference/projects/create-project"},{"title":"Get project","deprecated":null,"version":null,"sidebarTitle":"Get project","openapi":"/docs/api-reference/openapi.json get /projects/{id}","href":"/docs/api-reference/projects/get-project"},{"title":"Update project","deprecated":null,"version":null,"sidebarTitle":"Update project","openapi":"/docs/api-reference/openapi.json patch /projects/{id}","href":"/docs/api-reference/projects/update-project"}]},{"group":"Media","pages":[{"title":"Generate media","deprecated":null,"version":null,"sidebarTitle":"Generate media","openapi":"/docs/api-reference/openapi.json post /media/generate","href":"/docs/api-reference/media/generate-media"},{"title":"Upload media","deprecated":null,"version":null,"sidebarTitle":"Upload media","openapi":"/docs/api-reference/openapi.json post /media/upload","href":"/docs/api-reference/media/upload-media"}]},{"group":"Mockup templates","pages":[{"title":"List mockup templates","deprecated":null,"version":null,"sidebarTitle":"List mockup templates","openapi":"/docs/api-reference/openapi.json get /mockup-templates","href":"/docs/api-reference/surveys/list-mockup-templates"}]}]},{"tab":"Help","pages":[{"title":"Help","href":"/help"}]},{"tab":"Product updates","pages":[{"title":"Product updates","href":"/help/product-updates"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/help/getting-started"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/help/getting-started"}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/help/getting-started"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/help/what-is-pickfu"}]}]},"basePath":"","title":"Webhooks - PickFu","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":[],"chunks":[]}