[{"data":1,"prerenderedAt":439},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-api-keys":183,"-getting-started-api-keys-surround":434},[4,21,58,85,126,142],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,11,16],{"title":5,"path":6,"stem":7,"icon":10},"i-lucide-rocket",{"title":12,"path":13,"stem":14,"icon":15},"API keys and requests","\u002Fgetting-started\u002Fapi-keys","1.getting-started\u002F2.api-keys","i-lucide-key-round",{"title":17,"path":18,"stem":19,"icon":20},"Projects","\u002Fgetting-started\u002Fprojects","1.getting-started\u002F3.projects","i-lucide-folder",{"title":22,"path":23,"stem":24,"children":25,"icon":27},"Embed the widget","\u002Fembed-the-widget","2.embed-the-widget\u002F1.index",[26,28,33,38,43,48,53],{"title":22,"path":23,"stem":24,"icon":27},"i-lucide-code",{"title":29,"path":30,"stem":31,"icon":32},"Placement modes","\u002Fembed-the-widget\u002Fplacement-modes","2.embed-the-widget\u002F2.placement-modes","i-lucide-layout-panel-top",{"title":34,"path":35,"stem":36,"icon":37},"JavaScript API","\u002Fembed-the-widget\u002Fjavascript-api","2.embed-the-widget\u002F3.javascript-api","i-lucide-braces",{"title":39,"path":40,"stem":41,"icon":42},"Appearance options","\u002Fembed-the-widget\u002Fappearance-options","2.embed-the-widget\u002F4.appearance-options","i-lucide-sliders-horizontal",{"title":44,"path":45,"stem":46,"icon":47},"Events","\u002Fembed-the-widget\u002Fevents","2.embed-the-widget\u002F5.events","i-lucide-radio",{"title":49,"path":50,"stem":51,"icon":52},"Styling with CSS","\u002Fembed-the-widget\u002Fstyling-with-css","2.embed-the-widget\u002F6.styling-with-css","i-lucide-paintbrush",{"title":54,"path":55,"stem":56,"icon":57},"Troubleshooting","\u002Fembed-the-widget\u002Ftroubleshooting","2.embed-the-widget\u002F7.troubleshooting","i-lucide-wrench",{"title":59,"path":60,"stem":61,"children":62,"icon":64},"Surveys","\u002Fsurveys","3.surveys\u002F1.index",[63,65,70,75,80],{"title":59,"path":60,"stem":61,"icon":64},"i-lucide-clipboard-list",{"title":66,"path":67,"stem":68,"icon":69},"Questions","\u002Fsurveys\u002Fquestions","3.surveys\u002F2.questions","i-lucide-list-checks",{"title":71,"path":72,"stem":73,"icon":74},"Appearance and wording","\u002Fsurveys\u002Fappearance-and-wording","3.surveys\u002F3.appearance-and-wording","i-lucide-palette",{"title":76,"path":77,"stem":78,"icon":79},"Publishing changes","\u002Fsurveys\u002Flimits-and-status","3.surveys\u002F4.limits-and-status","i-lucide-clock",{"title":81,"path":82,"stem":83,"icon":84},"Fill links","\u002Fsurveys\u002Ffill-links","3.surveys\u002F5.fill-links","i-lucide-link",{"title":86,"path":87,"stem":88,"children":89,"icon":91},"Responses and insights","\u002Fresponses-and-insights","4.responses-and-insights\u002F1.index",[90,92,97,102,107,112,116,121],{"title":86,"path":87,"stem":88,"icon":91},"i-lucide-inbox",{"title":93,"path":94,"stem":95,"icon":96},"Answers","\u002Fresponses-and-insights\u002Fanswers","4.responses-and-insights\u002F2.answers","i-lucide-message-square-text",{"title":98,"path":99,"stem":100,"icon":101},"Insights","\u002Fresponses-and-insights\u002Finsights","4.responses-and-insights\u002F3.insights","i-lucide-lightbulb",{"title":103,"path":104,"stem":105,"icon":106},"Verification and threshold","\u002Fresponses-and-insights\u002Fverification-and-threshold","4.responses-and-insights\u002F4.verification-and-threshold","i-lucide-shield-check",{"title":108,"path":109,"stem":110,"icon":111},"Statistics","\u002Fresponses-and-insights\u002Fresponsiveness-funnel","4.responses-and-insights\u002F5.responsiveness-funnel","i-lucide-bar-chart-3",{"title":113,"path":114,"stem":115,"icon":91},"Feedback you already have","\u002Fresponses-and-insights\u002Ffeedback-you-already-have","4.responses-and-insights\u002F6.feedback-you-already-have",{"title":117,"path":118,"stem":119,"icon":120},"Import a file","\u002Fresponses-and-insights\u002Fimport-a-file","4.responses-and-insights\u002F7.import-a-file","i-lucide-file-up",{"title":122,"path":123,"stem":124,"icon":125},"Send through the API","\u002Fresponses-and-insights\u002Fsend-feedback-through-the-api","4.responses-and-insights\u002F8.send-feedback-through-the-api","i-lucide-send",{"title":127,"path":128,"stem":129,"children":130,"page":141},"Account And Billing","\u002Faccount-and-billing","5.account-and-billing",[131,136],{"title":132,"path":133,"stem":134,"icon":135},"Plans and billing","\u002Faccount-and-billing\u002Fplans-and-billing","5.account-and-billing\u002F1.plans-and-billing","i-lucide-credit-card",{"title":137,"path":138,"stem":139,"icon":140},"Security and profile","\u002Faccount-and-billing\u002Fsecurity-and-profile","5.account-and-billing\u002F2.security-and-profile","i-lucide-shield",false,{"title":143,"path":144,"stem":145,"children":146,"icon":148},"Connect an AI assistant","\u002Fconnect-an-ai-assistant","6.connect-an-ai-assistant\u002F1.index",[147,149,154,159,164,169,173,178],{"title":143,"path":144,"stem":145,"icon":148},"i-lucide-bot",{"title":150,"path":151,"stem":152,"icon":153},"Claude","\u002Fconnect-an-ai-assistant\u002Fclaude","6.connect-an-ai-assistant\u002F2.claude","i-lucide-message-circle",{"title":155,"path":156,"stem":157,"icon":158},"ChatGPT","\u002Fconnect-an-ai-assistant\u002Fchatgpt","6.connect-an-ai-assistant\u002F3.chatgpt","i-lucide-message-square",{"title":160,"path":161,"stem":162,"icon":163},"Claude Code","\u002Fconnect-an-ai-assistant\u002Fclaude-code","6.connect-an-ai-assistant\u002F4.claude-code","i-lucide-terminal",{"title":165,"path":166,"stem":167,"icon":168},"Cursor","\u002Fconnect-an-ai-assistant\u002Fcursor","6.connect-an-ai-assistant\u002F5.cursor","i-lucide-mouse-pointer-2",{"title":170,"path":171,"stem":172,"icon":57},"Tools and permissions","\u002Fconnect-an-ai-assistant\u002Ftools-and-permissions","6.connect-an-ai-assistant\u002F6.tools-and-permissions",{"title":174,"path":175,"stem":176,"icon":177},"What the assistant sees","\u002Fconnect-an-ai-assistant\u002Fwhat-the-assistant-sees","6.connect-an-ai-assistant\u002F7.what-the-assistant-sees","i-lucide-eye",{"title":179,"path":180,"stem":181,"icon":182},"Example prompts","\u002Fconnect-an-ai-assistant\u002Fexample-prompts","6.connect-an-ai-assistant\u002F8.example-prompts","i-lucide-sparkles",{"id":184,"title":185,"body":186,"description":427,"extension":428,"links":429,"meta":430,"navigation":431,"path":13,"seo":432,"stem":14,"__hash__":433},"docs\u002F1.getting-started\u002F2.api-keys.md","Using the API with an API key",{"type":187,"value":188,"toc":422},"minimark",[189,193,197,202,243,247,250,254,278,357,365,369,397,415,418],[190,191,185],"h1",{"id":192},"using-the-api-with-an-api-key",[194,195,196],"p",{},"An API key lets your own system call RawQuotes on your account's behalf, without a panel login.",[198,199,201],"h2",{"id":200},"create-a-key","Create a key",[203,204,205,214,228],"ol",{},[206,207,208,209,213],"li",{},"Open ",[210,211,212],"strong",{},"Settings → API keys",".",[206,215,216,217,220,221,224,225,213],{},"Under ",[210,218,219],{},"Generate a new key",", enter a ",[210,222,223],{},"Label"," (for example the name of the integration) and\nclick ",[210,226,227],{},"Generate key",[206,229,230,231,234,235,239,240,213],{},"Copy the ",[210,232,233],{},"Secret",", which starts with ",[236,237,238],"code",{},"rq_live_",", and click ",[210,241,242],{},"Done, I've saved it",[244,245,246],"warning",{},"The full key is shown only once. After you close the dialog RawQuotes can't show it again, so\nstore it in your secret manager first. If you lose it, remove the key and generate a new one.",[194,248,249],{},"Removing a key stops every integration that uses it immediately.",[198,251,253],{"id":252},"send-a-request","Send a request",[194,255,256,257,260,261,266,267,270,271,274,275,213],{},"Put the key in the ",[236,258,259],{},"Authorization"," header as a Bearer token. A key works with every endpoint in\nthe ",[262,263,265],"a",{"href":264},"\u002Fapi-reference","API reference",", for example ",[236,268,269],{},"POST \u002Fapi\u002Fv1\u002Fsurveys\u002F{surveyId}\u002Ffills",", which\n",[262,272,273],{"href":82},"generates a fill link",", or\n",[262,276,277],{"href":123},"sending feedback into a source",[279,280,285],"pre",{"className":281,"code":282,"language":283,"meta":284,"style":284},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST https:\u002F\u002Fapp.rawquotes.io\u002Fapi\u002Fv1\u002Fsurveys\u002FYOUR-SURVEY-ID\u002Ffills \\\n  -H \"Authorization: Bearer rq_live_YOUR_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"externalId\": \"order-1042\"}'\n","bash","",[236,286,287,310,328,342],{"__ignoreMap":284},[288,289,292,296,300,303,306],"span",{"class":290,"line":291},"line",1,[288,293,295],{"class":294},"sBMFI","curl",[288,297,299],{"class":298},"sfazB"," -X",[288,301,302],{"class":298}," POST",[288,304,305],{"class":298}," https:\u002F\u002Fapp.rawquotes.io\u002Fapi\u002Fv1\u002Fsurveys\u002FYOUR-SURVEY-ID\u002Ffills",[288,307,309],{"class":308},"sTEyZ"," \\\n",[288,311,313,316,320,323,326],{"class":290,"line":312},2,[288,314,315],{"class":298},"  -H",[288,317,319],{"class":318},"sMK4o"," \"",[288,321,322],{"class":298},"Authorization: Bearer rq_live_YOUR_KEY",[288,324,325],{"class":318},"\"",[288,327,309],{"class":308},[288,329,331,333,335,338,340],{"class":290,"line":330},3,[288,332,315],{"class":298},[288,334,319],{"class":318},[288,336,337],{"class":298},"Content-Type: application\u002Fjson",[288,339,325],{"class":318},[288,341,309],{"class":308},[288,343,345,348,351,354],{"class":290,"line":344},4,[288,346,347],{"class":298},"  -d",[288,349,350],{"class":318}," '",[288,352,353],{"class":298},"{\"externalId\": \"order-1042\"}",[288,355,356],{"class":318},"'\n",[194,358,359,362,363,213],{},[236,360,361],{},"externalId"," is optional. Every endpoint, with its request and response, is in the\n",[262,364,265],{"href":264},[198,366,368],{"id":367},"idempotency","Idempotency",[194,370,371,372,375,376,379,380,383,384,379,386,389,390,393,394,213],{},"Add an ",[236,373,374],{},"Idempotency-Key: \u003CUUID>"," header to a request that changes data, and RawQuotes performs it\nonly once, however many times you send it. If you retry with the same key after the first request\nsucceeded, you get ",[236,377,378],{},"409"," with ",[236,381,382],{},"idempotency.already_processed"," and nothing is repeated. If the\nfirst one is still running, you get ",[236,385,378],{},[236,387,388],{},"idempotency.in_progress"," and a ",[236,391,392],{},"Retry-After","\nheader. A key that isn't a UUID is refused with ",[236,395,396],{},"400",[279,398,400],{"className":281,"code":399,"language":283,"meta":284,"style":284},"-H \"Idempotency-Key: 3f6c1a52-8d0e-4b7a-9a43-5d2f0c1e7b68\"\n",[236,401,402],{"__ignoreMap":284},[288,403,404,407,409,412],{"class":290,"line":291},[288,405,406],{"class":294},"-H",[288,408,319],{"class":318},[288,410,411],{"class":298},"Idempotency-Key: 3f6c1a52-8d0e-4b7a-9a43-5d2f0c1e7b68",[288,413,414],{"class":318},"\"\n",[194,416,417],{},"The header is optional. Use a new UUID for each operation and reuse it only to retry that same one.",[419,420,421],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":284,"searchDepth":312,"depth":312,"links":423},[424,425,426],{"id":200,"depth":312,"text":201},{"id":252,"depth":312,"text":253},{"id":367,"depth":312,"text":368},"Create an API key in the panel, send an authenticated request and retry safely with an Idempotency-Key.","md",null,{},{"title":12,"icon":15},{"title":185,"description":427},"kvNXIoZGARqa_j98nSmTflZC4i9x20Q6zm7a8BUvs7g",[435,437],{"title":5,"path":6,"stem":7,"description":436,"icon":10,"children":-1},"How to get a RawQuotes survey running on your site, from account to first responses.",{"title":17,"path":18,"stem":19,"description":438,"icon":20,"children":-1},"What a project is, how to find project ids with an API key, and how to pass projectId when you create surveys and list data.",1793642221790]