Create and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.
You need an API key and the id of an active workspace; the Quickstart shows how to get both if you have not made a request yet. The samples read the key from SURFER_API_KEY and use <workspace_id> and <content_editor_id> where your ids go.Every wait step names its webhook event and the GET to poll instead; Async operations and webhooks has the webhook setup.
Create Content Editors from a keyword list and share them with writers
One POST per keyword creates the editors, and one GET per editor returns its share links. A Content Editor is Surfer’s document for one target keyword, with the search analysis, guidelines, and Content Score attached.Each successful create spends one Content Editor credit, so count the rows before you send them. Give each row its own Idempotency-Key and reuse it when you retry that row, so a retry returns the row’s editor instead of a duplicate (idempotent creates).Anyone with an edit link can edit the document, and anyone with a comment link can view and comment, without signing in to Surfer. The links are on app.surferseo.com, or on your white-label domain when your organization has one.
For each keyword, call Create Content Editor with main_keyword and the row’s Idempotency-Key.
Wait for content_editor.initialization.completed for each editor, or poll Get Content Editor until state is completed or failed.
Call List Content Editor permalinks for each completed editor. data holds two links, each with type, hash, and a full url.
Send each writer the edit or comment URL.
To show guidelines inside your CMS instead of sending writers to Surfer, pass the edit link’s hash to the embedded panel (Access and sharing).Create one editor; run it once per row with that row’s key:
curl -X POST "https://app.surferseo.com/api/v2/workspaces/<workspace_id>/content_editors" \ -H "API-KEY: $SURFER_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: q4-plan-row-001" \ -d '{"main_keyword": "best crm for small businesses"}'
The 201 response carries the editor’s id and current state; step 2 waits for it to finish.
Revoke share links
A reset replaces the links, and the old ones stop working: pass type set to edit or comment to replace one link, or omit it to replace both. Call Reset Content Editor permalinks; the response carries the new links.
Publish a finished draft to a CMS
One GET returns the document as HTML or Markdown, and your code writes it into the CMS. The API has no publish endpoint of its own, and the read spends no credit.Use a completed editor; the call answers 409 until then. If you publish only above a score, check the editor’s content_score on Get Content Editor first; Recognizing a fresh score tells you when the value is current.
Call Get Content Editor content with Accept: text/html or Accept: text/markdown, whichever your CMS takes.
Write the body into your CMS through its own API.
Fetch the document as Markdown and save it to a file:
The 200 body is the document, ready to send to the CMS.
Generate an article with outline review
Start the article with manual_outline set to true, and generation pauses for your outline before it writes. The finished article replaces the editor’s document.Creating the editor counts one Content Editor credit. On Enterprise and some older plans, starting the article spends one AI Article credit and releases the editor’s; other plans include AI Articles in the Content Editor and spend nothing beyond it (Credits).
Submit it with Submit edited AI Article outline and Content-Type: text/markdown. A 200 returns the article, and writing resumes.
Wait for content_editor.ai_article.completed or content_editor.ai_article.failed, or poll Get AI Article until state is completed or failed; stop on failed.
The 201 response carries the article’s id and statenew; step 4 waits for the outline. AI Article states describes each state the article passes through.
Optimize an existing page
Import the live page into a new editor, run Auto-Optimize, and read back the rewritten document and its new score. The import spends one Content Editor credit, and each successful Auto-Optimize start counts toward your plan’s Auto-Optimize allowance.
Auto-Optimize applies its changes to the document with no review step. Read
the result before you publish it.
Import the page
Surfer fetches the URL into the document and, because content is present at creation, computes the SEO score during initialization. A page Surfer cannot fetch leaves the editor failed with error.reasonfetch_content_error.
Call Create Content Editor with main_keyword and import_content_url set to the page’s URL.
Wait for content_editor.initialization.completed, or poll Get Content Editor until state is completed or failed; stop on failed.
curl -X POST "https://app.surferseo.com/api/v2/workspaces/<workspace_id>/content_editors" \ -H "API-KEY: $SURFER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"main_keyword": "how to build a gaming pc", "import_content_url": "https://example.com/gaming-pc-guide"}'
The 201 response carries the editor’s id and current state, as in the first recipe.
Run Auto-Optimize
A new Auto-Optimize run cancels one still running on the same editor. The superseded job reads back as failed, and its webhook event is content_editor.auto_optimize.cancelled.
Call Start Auto-Optimize. The 201 response carries job_id and stateexecuting.
Wait for content_editor.auto_optimize.completed or content_editor.auto_optimize.failed, or poll Get Auto-Optimize job until state is completed or failed; stop on failed.
Read result on the completed job. optimized means Surfer rewrote the document and started a score recalculation; nothing_to_optimize means the document is unchanged, and you are done.
These recipes use v1 with the same key; Migrating from v1 covers how v1 requests differ.Audit and SERP Analyzer answer 403 when your plan lacks the tool and 422 when their allowance is used up. Humanizer answers 422 when its allowance is used up or a run fails, and AI Detector answers 422 when a run fails (Rate limits and credits).
Audit score for a URL
Audit scores a live page against a keyword and its top competitors.
Call Create Audit query with url and keyword. The 201 response carries id, statescheduled, and a permalink_hash.
Poll Get Audit query until state is completed or failed. A completed query returns audited_page.content_score and up to five competitors_pages, each with url and content_score.
To reuse a recent matching query instead of running a new one, pass cache on the create with a lifetime in seconds, 900 or more.
SERP competitor exports
SERP Analyzer returns the top pages for a keyword and the terms they share, as CSV files. Each query counts toward your SERP Analyzer allowance (Rate limits and credits).
Download Get search results and Get prominent terms, both CSV. Each search-results row carries its own state, and failed marks a competitor Surfer could not crawl.
AI detection and humanizing
Both operations return their result in the response.
Detect AI content in a text takes text of up to 100,000 characters and returns ai_probability for the whole text and for each chunk.
Humanize text takes text of at least 128 characters and returns the rewritten text. Set stream to true to receive it as server-sent events.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Surfer","colors":{"primary":"#783AFB","light":"#8F69FC","dark":"#630DE3"},"logo":{"light":"https://mintcdn.com/surfer-1a8fda11/VcE5s6fiXl3uKqnl/logo/surfer-light.svg?fit=max\u0026auto=format\u0026n=VcE5s6fiXl3uKqnl\u0026q=85\u0026s=9eff4746c5be9be5478e02a18fa5fef7","dark":"https://mintcdn.com/surfer-1a8fda11/VcE5s6fiXl3uKqnl/logo/surfer-dark.svg?fit=max\u0026auto=format\u0026n=VcE5s6fiXl3uKqnl\u0026q=85\u0026s=0af4dee868a1bf68e72c94fbced9c808"},"favicon":"https://mintcdn.com/surfer-1a8fda11/ZwffS_UNUB-eHJT4/favicon.svg?fit=max\u0026auto=format\u0026n=ZwffS_UNUB-eHJT4\u0026q=85\u0026s=3ef5c9f47a32ab30004d8da00240ab39","background":{"color":{"light":"#FFFFFF","dark":"#09090B"}},"navbar":{"links":[{"href":"https://surferseo.com","label":"Website"}],"primary":{"type":"button","label":"Log in","href":"https://app.surferseo.com"}},"seo":{"metatags":{"og:image":"https://devs.surferseo.com/images/og-image.png"}},"fonts":{"family":"Inter"},"styling":{"codeblocks":"system","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"surfer-1a8fda11","hasAudioNarration":false,"actualSubdomain":"surfer-1a8fda11","customDomains":["devs.surferseo.com"],"gitSource":{"type":"github","owner":"surferseo","repo":"surfer","deployBranch":"master","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10f8cb9ffae5051c41a88e"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b130393c3e9fac0ccde8fee","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API","count":82},{"language":"default","tag":"API v2","count":49},{"language":"default","tag":"API v1 (legacy)","count":22},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"MCP","count":18},{"language":"default","tag":"Content Editors","count":17},{"language":"default","tag":"SEO Guidelines","count":12},{"language":"default","tag":"Overview","count":11},{"language":"default","tag":"Write where you work","count":8},{"language":"default","tag":"Connect","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".surfer-prompt{margin:1.25rem 0}.surfer-prompt-meta{display:flex;align-items:center;gap:0.35rem;margin:0 0 0.35rem 0.25rem;font-size:0.75rem;font-weight:500;color:rgb(107 114 128)}.dark .surfer-prompt-meta{color:rgb(156 163 175)}.surfer-prompt-bubble{position:relative;border:1px solid rgb(0 0 0 / 0.08);border-radius:0.25rem 1.125rem 1.125rem 1.125rem;background:rgb(0 0 0 / 0.035);padding:0.85rem 3rem 0.85rem 1.1rem}.dark .surfer-prompt-bubble{border-color:rgb(255 255 255 / 0.1);background:rgb(255 255 255 / 0.06)}.surfer-prompt-text{margin:0;font-size:0.95rem;line-height:1.6}.surfer-prompt-copy{position:absolute;top:0.6rem;right:0.6rem;display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border:0;border-radius:0.375rem;background:transparent;color:rgb(107 114 128);cursor:pointer}.surfer-prompt-copy:hover{background:rgb(0 0 0 / 0.06);color:rgb(17 24 39)}.dark .surfer-prompt-copy{color:rgb(156 163 175)}.dark .surfer-prompt-copy:hover{background:rgb(255 255 255 / 0.1);color:rgb(255 255 255)}img[src*=\"/images/clients/\"]{box-sizing:content-box;padding:4px;border:1px solid #e4e4e7;border-radius:6px;background:#fafafa;object-fit:contain}.surfer-copy-text{display:inline-flex;align-items:center;gap:0.25rem;white-space:nowrap}.surfer-copy-text-button{display:inline-flex;align-items:center;padding:0.125rem;border-radius:0.25rem;color:rgb(107 114 128);cursor:pointer}.surfer-copy-text-button:hover{color:rgb(17 24 39)}.dark .surfer-copy-text-button:hover{color:rgb(243 244 246)}"}]}
{"page":{"pagePath":"api/use-cases","slug":"/api/use-cases","pageMetadata":{"title":"Use cases","icon":"lightbulb","description":"Create and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.","sources":["apps/kseo/lib/kseo/articles/","apps/kseo_web/lib/kseo_web/plugs/authorize_tool.ex","apps/kseo_web/lib/kseo_web/api/v1/","packages/docs/api/openapi-v2.json","packages/docs/api/openapi-v1.json","apps/kseo_web/lib/kseo_web/api/v2/content_editors/","apps/kseo/lib/kseo/drafts/permalinks/type.ex","apps/kseo/lib/kseo/drafts/permalinks.ex","apps/kseo_web/lib/kseo_web/api/v2/idempotency.ex","apps/kseo_web/lib/kseo_web/api/v2/routes.ex","apps/kseo/lib/kseo/drafts/actions/get.ex","apps/kseo/lib/kseo/notifications/webhook/event/type.ex","apps/kseo/lib/kseo/content_optimizers/workers/complete_worker.ex","packages/frontend/src/features/drafts/editor/sidebar/ShareButton/ShareButton.tsx","packages/frontend/src/MainAppRouter.tsx","packages/docs/integrations/embed/access-and-sharing.mdx"],"areas":["bulk Content Editor creation from a keyword list","share links for writers and revoking them","reading a finished document for a CMS","AI Article generation with outline review","importing a live page and running Auto-Optimize","score freshness after an optimization","recipes that stay on v1 (Audit, SERP Analyzer, AI Detector, Humanizer)"],"checked":"24942a8eeee8bbf8bd95ea2952fee44727ec78dc","verify":"run recipes 1 and 4 against a test workspace and compare the states, events, and costs with the two snapshots; confirm the AI Article and permalinks routes still sit behind the completed-editor pipeline in routes.ex; re-read use_ai_credits?/1 in quotas.ex for the AI Article credit condition and the drafts/s/* route in MainAppRouter.tsx for the no-login share links","href":"/api/use-cases"},"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 and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`You need an API key and the id of an active workspace; the `,_jsx(_components.a,{href:`/api/quickstart`,children:`Quickstart`}),` shows how to get both if you have not made a request yet. The samples read the key from `,_jsx(_components.code,{children:`SURFER_API_KEY`}),` and use `,_jsx(_components.code,{children:`\u003cworkspace_id>`}),` and `,_jsx(_components.code,{children:`\u003ccontent_editor_id>`}),` where your ids go.`]}),`\n`,_jsxs(_components.p,{children:[`Every wait step names its webhook event and the `,_jsx(_components.code,{children:`GET`}),` to poll instead; `,_jsx(_components.a,{href:`/api/async-and-webhooks`,children:`Async operations and webhooks`}),` has the webhook setup.`]}),`\n`,_jsx(Heading,{level:`2`,id:`create-content-editors-from-a-keyword-list-and-share-them-with-writers`,children:`Create Content Editors from a keyword list and share them with writers`}),`\n`,_jsxs(_components.p,{children:[`One `,_jsx(_components.code,{children:`POST`}),` per keyword creates the editors, and one `,_jsx(_components.code,{children:`GET`}),` per editor returns its share links. A `,_jsx(_components.a,{href:`/api/v2/content-editors/create-content-editor`,children:`Content Editor`}),` is Surfer’s document for one target keyword, with the search analysis, guidelines, and Content Score attached.`]}),`\n`,_jsxs(_components.p,{children:[`Each successful create spends one Content Editor credit, so count the rows before you send them. Give each row its own `,_jsx(_components.code,{children:`Idempotency-Key`}),` and reuse it when you retry that row, so a retry returns the row’s editor instead of a duplicate (`,_jsx(_components.a,{href:`/api/requests#idempotent-creates`,children:`idempotent creates`}),`).`]}),`\n`,_jsxs(_components.p,{children:[`Anyone with an `,_jsx(_components.code,{children:`edit`}),` link can edit the document, and anyone with a `,_jsx(_components.code,{children:`comment`}),` link can view and comment, without signing in to Surfer. The links are on `,_jsx(_components.code,{children:`app.surferseo.com`}),`, or on your white-label domain when your organization has one.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`For each keyword, call `,_jsx(_components.a,{href:`/api/v2/content-editors/create-content-editor`,children:`Create Content Editor`}),` with `,_jsx(_components.code,{children:`main_keyword`}),` and the row’s `,_jsx(_components.code,{children:`Idempotency-Key`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Wait for `,_jsx(_components.code,{children:`content_editor.initialization.completed`}),` for each editor, or poll `,_jsx(_components.a,{href:`/api/v2/content-editors/get-content-editor`,children:`Get Content Editor`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api/v2/permalinks/list-content-editor-permalinks`,children:`List Content Editor permalinks`}),` for each completed editor. `,_jsx(_components.code,{children:`data`}),` holds two links, each with `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`hash`}),`, and a full `,_jsx(_components.code,{children:`url`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Send each writer the `,_jsx(_components.code,{children:`edit`}),` or `,_jsx(_components.code,{children:`comment`}),` URL.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To show guidelines inside your CMS instead of sending writers to Surfer, pass the `,_jsx(_components.code,{children:`edit`}),` link’s `,_jsx(_components.code,{children:`hash`}),` to the embedded panel (`,_jsx(_components.a,{href:`/integrations/embed/access-and-sharing#connect-to-an-existing-content-editor`,children:`Access and sharing`}),`).`]}),`\n`,_jsx(_components.p,{children:`Create one editor; run it once per row with that row’s key:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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://app.surferseo.com/api/v2/workspaces/\u003cworkspace_id>/content_editors\"`}),_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:` \"API-KEY: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SURFER_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: q4-plan-row-001\"`}),_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:` '{\"main_keyword\": \"best crm for small businesses\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`201`}),` response carries the editor’s `,_jsx(_components.code,{children:`id`}),` and current `,_jsx(_components.code,{children:`state`}),`; step 2 waits for it to finish.`]}),`\n`,_jsx(Heading,{level:`3`,id:`revoke-share-links`,children:`Revoke share links`}),`\n`,_jsxs(_components.p,{children:[`A reset replaces the links, and the old ones stop working: pass `,_jsx(_components.code,{children:`type`}),` set to `,_jsx(_components.code,{children:`edit`}),` or `,_jsx(_components.code,{children:`comment`}),` to replace one link, or omit it to replace both. Call `,_jsx(_components.a,{href:`/api/v2/permalinks/reset-content-editor-permalinks`,children:`Reset Content Editor permalinks`}),`; the response carries the new links.`]}),`\n`,_jsx(Heading,{level:`2`,id:`publish-a-finished-draft-to-a-cms`,children:`Publish a finished draft to a CMS`}),`\n`,_jsxs(_components.p,{children:[`One `,_jsx(_components.code,{children:`GET`}),` returns the document as HTML or Markdown, and your code writes it into the CMS. The API has no publish endpoint of its own, and the read spends no credit.`]}),`\n`,_jsxs(_components.p,{children:[`Use a `,_jsx(_components.code,{children:`completed`}),` editor; the call answers `,_jsx(_components.code,{children:`409`}),` until then. If you publish only above a score, check the editor’s `,_jsx(_components.code,{children:`content_score`}),` on `,_jsx(_components.a,{href:`/api/v2/content-editors/get-content-editor`,children:`Get Content Editor`}),` first; `,_jsx(_components.a,{href:`/api/async-and-webhooks#recognizing-a-fresh-score`,children:`Recognizing a fresh score`}),` tells you when the value is current.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api/v2/content-editors/get-content-editor-content`,children:`Get Content Editor content`}),` with `,_jsx(_components.code,{children:`Accept: text/html`}),` or `,_jsx(_components.code,{children:`Accept: text/markdown`}),`, whichever your CMS takes.`]}),`\n`,_jsx(_components.li,{children:`Write the body into your CMS through its own API.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Fetch the document as Markdown and save it to a file:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://app.surferseo.com/api/v2/workspaces/\u003cworkspace_id>/content_editors/\u003ccontent_editor_id>/content\"`}),_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:` \"API-KEY: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SURFER_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` \"Accept: text/markdown\"`}),_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:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` draft.md`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`200`}),` body is the document, ready to send to the CMS.`]}),`\n`,_jsx(Heading,{level:`2`,id:`generate-an-article-with-outline-review`,children:`Generate an article with outline review`}),`\n`,_jsxs(_components.p,{children:[`Start the article with `,_jsx(_components.code,{children:`manual_outline`}),` set to `,_jsx(_components.code,{children:`true`}),`, and generation pauses for your outline before it writes. The finished article replaces the editor’s document.`]}),`\n`,_jsxs(_components.p,{children:[`Creating the editor counts one Content Editor credit. On Enterprise and some older plans, starting the article spends one AI Article credit and releases the editor’s; other plans include AI Articles in the Content Editor and spend nothing beyond it (`,_jsx(_components.a,{href:`/api/rate-limits#credits`,children:`Credits`}),`).`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create the editor with `,_jsx(_components.a,{href:`/api/v2/content-editors/create-content-editor`,children:`Create Content Editor`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Wait for `,_jsx(_components.code,{children:`content_editor.initialization.completed`}),`, or poll `,_jsx(_components.a,{href:`/api/v2/content-editors/get-content-editor`,children:`Get Content Editor`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`; stop on `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api/v2/ai-articles/create-ai-article`,children:`Create AI Article`}),` with `,_jsx(_components.code,{children:`{\"manual_outline\": true}`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Wait for `,_jsx(_components.code,{children:`content_editor.ai_article.waiting_for_user_input`}),`, or poll `,_jsx(_components.a,{href:`/api/v2/ai-articles/get-ai-article`,children:`Get AI Article`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`waiting_for_user_input`}),` or `,_jsx(_components.code,{children:`failed`}),`; stop on `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Read the outline with `,_jsx(_components.a,{href:`/api/v2/ai-articles/get-ai-article-outline`,children:`Get AI Article outline`}),` and `,_jsx(_components.code,{children:`Accept: text/markdown`}),`.`]}),`\n`,_jsx(_components.li,{children:`Edit the outline.`}),`\n`,_jsxs(_components.li,{children:[`Submit it with `,_jsx(_components.a,{href:`/api/v2/ai-articles/submit-edited-ai-article-outline`,children:`Submit edited AI Article outline`}),` and `,_jsx(_components.code,{children:`Content-Type: text/markdown`}),`. A `,_jsx(_components.code,{children:`200`}),` returns the article, and writing resumes.`]}),`\n`,_jsxs(_components.li,{children:[`Wait for `,_jsx(_components.code,{children:`content_editor.ai_article.completed`}),` or `,_jsx(_components.code,{children:`content_editor.ai_article.failed`}),`, or poll `,_jsx(_components.a,{href:`/api/v2/ai-articles/get-ai-article`,children:`Get AI Article`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`; stop on `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Read the article with `,_jsx(_components.a,{href:`/api/v2/content-editors/get-content-editor-content`,children:`Get Content Editor content`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Start the article and pause it at the outline:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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://app.surferseo.com/api/v2/workspaces/\u003cworkspace_id>/content_editors/\u003ccontent_editor_id>/ai_articles\"`}),_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:` \"API-KEY: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SURFER_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` '{\"manual_outline\": true}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`201`}),` response carries the article’s `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`state`}),` `,_jsx(_components.code,{children:`new`}),`; step 4 waits for the outline. `,_jsx(_components.a,{href:`/api/async-and-webhooks#ai-article-states`,children:`AI Article states`}),` describes each state the article passes through.`]}),`\n`,_jsx(Heading,{level:`2`,id:`optimize-an-existing-page`,children:`Optimize an existing page`}),`\n`,_jsx(_components.p,{children:`Import the live page into a new editor, run Auto-Optimize, and read back the rewritten document and its new score. The import spends one Content Editor credit, and each successful Auto-Optimize start counts toward your plan’s Auto-Optimize allowance.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Auto-Optimize applies its changes to the document with no review step. Read\nthe result before you publish it.`})}),`\n`,_jsx(Heading,{level:`3`,id:`import-the-page`,children:`Import the page`}),`\n`,_jsxs(_components.p,{children:[`Surfer fetches the URL into the document and, because content is present at creation, computes the SEO score during initialization. A page Surfer cannot fetch leaves the editor `,_jsx(_components.code,{children:`failed`}),` with `,_jsx(_components.code,{children:`error.reason`}),` `,_jsx(_components.code,{children:`fetch_content_error`}),`.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api/v2/content-editors/create-content-editor`,children:`Create Content Editor`}),` with `,_jsx(_components.code,{children:`main_keyword`}),` and `,_jsx(_components.code,{children:`import_content_url`}),` set to the page’s URL.`]}),`\n`,_jsxs(_components.li,{children:[`Wait for `,_jsx(_components.code,{children:`content_editor.initialization.completed`}),`, or poll `,_jsx(_components.a,{href:`/api/v2/content-editors/get-content-editor`,children:`Get Content Editor`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`; stop on `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Read the starting score with `,_jsx(_components.a,{href:`/api/v2/seo-guidelines/get-seo-guidelines-score`,children:`Get SEO Guidelines score`}),` and keep its `,_jsx(_components.code,{children:`calculated_at`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Create the editor from a live URL:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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://app.surferseo.com/api/v2/workspaces/\u003cworkspace_id>/content_editors\"`}),_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:` \"API-KEY: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SURFER_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` '{\"main_keyword\": \"how to build a gaming pc\", \"import_content_url\": \"https://example.com/gaming-pc-guide\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`201`}),` response carries the editor’s `,_jsx(_components.code,{children:`id`}),` and current `,_jsx(_components.code,{children:`state`}),`, as in the first recipe.`]}),`\n`,_jsx(Heading,{level:`3`,id:`run-auto-optimize`,children:`Run Auto-Optimize`}),`\n`,_jsxs(_components.p,{children:[`A new Auto-Optimize run cancels one still running on the same editor. The superseded job reads back as `,_jsx(_components.code,{children:`failed`}),`, and its webhook event is `,_jsx(_components.code,{children:`content_editor.auto_optimize.cancelled`}),`.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api/v2/auto-optimize/start-auto-optimize`,children:`Start Auto-Optimize`}),`. The `,_jsx(_components.code,{children:`201`}),` response carries `,_jsx(_components.code,{children:`job_id`}),` and `,_jsx(_components.code,{children:`state`}),` `,_jsx(_components.code,{children:`executing`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Wait for `,_jsx(_components.code,{children:`content_editor.auto_optimize.completed`}),` or `,_jsx(_components.code,{children:`content_editor.auto_optimize.failed`}),`, or poll `,_jsx(_components.a,{href:`/api/v2/auto-optimize/get-auto-optimize-job`,children:`Get Auto-Optimize job`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`; stop on `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Read `,_jsx(_components.code,{children:`result`}),` on the completed job. `,_jsx(_components.code,{children:`optimized`}),` means Surfer rewrote the document and started a score recalculation; `,_jsx(_components.code,{children:`nothing_to_optimize`}),` means the document is unchanged, and you are done.`]}),`\n`,_jsxs(_components.li,{children:[`Read the document with `,_jsx(_components.a,{href:`/api/v2/content-editors/get-content-editor-content`,children:`Get Content Editor content`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Read the score again with `,_jsx(_components.a,{href:`/api/v2/seo-guidelines/get-seo-guidelines-score`,children:`Get SEO Guidelines score`}),` once `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`ready`}),` and `,_jsx(_components.code,{children:`calculated_at`}),` is newer than the value you kept.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/api/async-and-webhooks#recognizing-a-fresh-score`,children:`Recognizing a fresh score`}),` explains the `,_jsx(_components.code,{children:`status`}),` and `,_jsx(_components.code,{children:`calculated_at`}),` contract, and `,_jsx(_components.a,{href:`/api/async-and-webhooks#auto-optimize-states`,children:`Auto-Optimize states`}),` describes each job state.`]}),`\n`,_jsx(Heading,{level:`2`,id:`recipes-that-stay-on-v1`,children:`Recipes that stay on v1`}),`\n`,_jsxs(_components.p,{children:[`These recipes use v1 with the same key; `,_jsx(_components.a,{href:`/api/migrating-from-v1`,children:`Migrating from v1`}),` covers how v1 requests differ.`]}),`\n`,_jsxs(_components.p,{children:[`Audit and SERP Analyzer answer `,_jsx(_components.code,{children:`403`}),` when your plan lacks the tool and `,_jsx(_components.code,{children:`422`}),` when their allowance is used up. Humanizer answers `,_jsx(_components.code,{children:`422`}),` when its allowance is used up or a run fails, and AI Detector answers `,_jsx(_components.code,{children:`422`}),` when a run fails (`,_jsx(_components.a,{href:`/api/rate-limits#credits`,children:`Rate limits and credits`}),`).`]}),`\n`,_jsx(Heading,{level:`3`,id:`audit-score-for-a-url`,children:`Audit score for a URL`}),`\n`,_jsx(_components.p,{children:`Audit scores a live page against a keyword and its top competitors.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api/v1/audit/create-audit-query`,children:`Create Audit query`}),` with `,_jsx(_components.code,{children:`url`}),` and `,_jsx(_components.code,{children:`keyword`}),`. The `,_jsx(_components.code,{children:`201`}),` response carries `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`state`}),` `,_jsx(_components.code,{children:`scheduled`}),`, and a `,_jsx(_components.code,{children:`permalink_hash`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Poll `,_jsx(_components.a,{href:`/api/v1/audit/get-audit-query`,children:`Get Audit query`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`. A completed query returns `,_jsx(_components.code,{children:`audited_page.content_score`}),` and up to five `,_jsx(_components.code,{children:`competitors_pages`}),`, each with `,_jsx(_components.code,{children:`url`}),` and `,_jsx(_components.code,{children:`content_score`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To reuse a recent matching query instead of running a new one, pass `,_jsx(_components.code,{children:`cache`}),` on the create with a lifetime in seconds, 900 or more.`]}),`\n`,_jsx(Heading,{level:`3`,id:`serp-competitor-exports`,children:`SERP competitor exports`}),`\n`,_jsxs(_components.p,{children:[`SERP Analyzer returns the top pages for a keyword and the terms they share, as CSV files. Each query counts toward your SERP Analyzer allowance (`,_jsx(_components.a,{href:`/api/rate-limits#credits`,children:`Rate limits and credits`}),`).`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Call `,_jsx(_components.a,{href:`/api/v1/serp-analyzer/create-serp-analyzer-query-post-create`,children:`Create SERP Analyzer query`}),` with `,_jsx(_components.code,{children:`keyword`}),`. The `,_jsx(_components.code,{children:`201`}),` response carries `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`state`}),` `,_jsx(_components.code,{children:`scheduled`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Poll `,_jsx(_components.a,{href:`/api/v1/serp-analyzer/list-serp-analyzer-queries-for-a-workspace`,children:`List SERP Analyzer queries for a workspace`}),` until the row with your `,_jsx(_components.code,{children:`id`}),` shows `,_jsx(_components.code,{children:`completed`}),` or `,_jsx(_components.code,{children:`failed`}),`; the list is a CSV, and v1 has no per-query read.`]}),`\n`,_jsxs(_components.li,{children:[`Download `,_jsx(_components.a,{href:`/api/v1/serp-analyzer/get-search-results`,children:`Get search results`}),` and `,_jsx(_components.a,{href:`/api/v1/serp-analyzer/get-prominent-terms`,children:`Get prominent terms`}),`, both CSV. Each search-results row carries its own `,_jsx(_components.code,{children:`state`}),`, and `,_jsx(_components.code,{children:`failed`}),` marks a competitor Surfer could not crawl.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`ai-detection-and-humanizing`,children:`AI detection and humanizing`}),`\n`,_jsx(_components.p,{children:`Both operations return their result in the response.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api/v1/other/detect-ai-content-in-a-text`,children:`Detect AI content in a text`}),` takes `,_jsx(_components.code,{children:`text`}),` of up to 100,000 characters and returns `,_jsx(_components.code,{children:`ai_probability`}),` for the whole text and for each chunk.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api/v1/other/humanize-text`,children:`Humanize text`}),` takes `,_jsx(_components.code,{children:`text`}),` of at least 128 characters and returns the rewritten `,_jsx(_components.code,{children:`text`}),`. Set `,_jsx(_components.code,{children:`stream`}),` to `,_jsx(_components.code,{children:`true`}),` to receive it as server-sent events.`]}),`\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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Use cases","icon":"lightbulb","description":"Create and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.","sources":["apps/kseo/lib/kseo/articles/","apps/kseo_web/lib/kseo_web/plugs/authorize_tool.ex","apps/kseo_web/lib/kseo_web/api/v1/","packages/docs/api/openapi-v2.json","packages/docs/api/openapi-v1.json","apps/kseo_web/lib/kseo_web/api/v2/content_editors/","apps/kseo/lib/kseo/drafts/permalinks/type.ex","apps/kseo/lib/kseo/drafts/permalinks.ex","apps/kseo_web/lib/kseo_web/api/v2/idempotency.ex","apps/kseo_web/lib/kseo_web/api/v2/routes.ex","apps/kseo/lib/kseo/drafts/actions/get.ex","apps/kseo/lib/kseo/notifications/webhook/event/type.ex","apps/kseo/lib/kseo/content_optimizers/workers/complete_worker.ex","packages/frontend/src/features/drafts/editor/sidebar/ShareButton/ShareButton.tsx","packages/frontend/src/MainAppRouter.tsx","packages/docs/integrations/embed/access-and-sharing.mdx"],"areas":["bulk Content Editor creation from a keyword list","share links for writers and revoking them","reading a finished document for a CMS","AI Article generation with outline review","importing a live page and running Auto-Optimize","score freshness after an optimization","recipes that stay on v1 (Audit, SERP Analyzer, AI Detector, Humanizer)"],"checked":"24942a8eeee8bbf8bd95ea2952fee44727ec78dc","verify":"run recipes 1 and 4 against a test workspace and compare the states, events, and costs with the two snapshots; confirm the AI Article and permalinks routes still sit behind the completed-editor pipeline in routes.ex; re-read use_ai_credits?/1 in quotas.ex for the AI Article credit condition and the drafts/s/* route in MainAppRouter.tsx for the no-login share links","href":"/api/use-cases"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create Content Editors from a keyword list and share them with writers","slug":"create-content-editors-from-a-keyword-list-and-share-them-with-writers","depth":2,"children":[{"title":"Revoke share links","slug":"revoke-share-links","depth":3,"children":[]}]},{"title":"Publish a finished draft to a CMS","slug":"publish-a-finished-draft-to-a-cms","depth":2,"children":[]},{"title":"Generate an article with outline review","slug":"generate-an-article-with-outline-review","depth":2,"children":[]},{"title":"Optimize an existing page","slug":"optimize-an-existing-page","depth":2,"children":[{"title":"Import the page","slug":"import-the-page","depth":3,"children":[]},{"title":"Run Auto-Optimize","slug":"run-auto-optimize","depth":3,"children":[]}]},{"title":"Recipes that stay on v1","slug":"recipes-that-stay-on-v1","depth":2,"children":[{"title":"Audit score for a URL","slug":"audit-score-for-a-url","depth":3,"children":[]},{"title":"SERP competitor exports","slug":"serp-competitor-exports","depth":3,"children":[]},{"title":"AI detection and humanizing","slug":"ai-detection-and-humanizing","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"surfer-1a8fda11","siteName":"Surfer","title":"Use cases - Surfer","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T12:31:07.305Z","originalFileLocation":"api/use-cases.mdx"},"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 and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Surfer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Use cases - Surfer\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Surfer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://devs.surferseo.com/api/use-cases\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://devs.surferseo.com/images/og-image.png\">\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=\"Use cases - Surfer\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://devs.surferseo.com/images/og-image.png\">\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/surfer-1a8fda11/IHIzSAM1SDBKQB0g/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Surfer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#783AFB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://devs.surferseo.com/api/use-cases\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/use-cases.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://devs.surferseo.com/#organization\",\"name\":\"Surfer\",\"url\":\"https://devs.surferseo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/surfer-1a8fda11/VcE5s6fiXl3uKqnl/logo/surfer-light.svg?fit=max\u0026auto=format\u0026n=VcE5s6fiXl3uKqnl\u0026q=85\u0026s=9eff4746c5be9be5478e02a18fa5fef7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://devs.surferseo.com#website\",\"name\":\"Surfer\",\"url\":\"https://devs.surferseo.com\",\"publisher\":{\"@id\":\"https://devs.surferseo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://devs.surferseo.com/api/use-cases#webpage\",\"url\":\"https://devs.surferseo.com/api/use-cases\",\"name\":\"Use cases\",\"description\":\"Create and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.\",\"dateModified\":\"2026-10-21T12:31:07.305Z\",\"isPartOf\":{\"@id\":\"https://devs.surferseo.com#website\"},\"breadcrumb\":{\"@id\":\"https://devs.surferseo.com/api/use-cases#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://devs.surferseo.com/api/use-cases#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview\",\"item\":\"https://devs.surferseo.com/api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use cases\",\"item\":\"https://devs.surferseo.com/api/use-cases\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://devs.surferseo.com/api/use-cases#article\",\"headline\":\"Use cases\",\"name\":\"Use cases\",\"description\":\"Create and share Content Editors in bulk, publish a draft to a CMS, generate an article with outline review, and optimize an existing page.\",\"url\":\"https://devs.surferseo.com/api/use-cases\",\"mainEntityOfPage\":{\"@id\":\"https://devs.surferseo.com/api/use-cases#webpage\"},\"image\":\"https://devs.surferseo.com/images/og-image.png\",\"dateModified\":\"2026-10-21T12:31:07.305Z\",\"publisher\":{\"@id\":\"https://devs.surferseo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://devs.surferseo.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Surfer\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Surfer\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/use-cases.md","siteName":"Surfer","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"Integrations","icon":"puzzle-piece","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"MCP","icon":"plug","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"API","icon":"code","groups":[{"group":"Overview","pages":[{"title":"Surfer API","icon":"circle-info","href":"/api/overview"},{"title":"Quickstart","icon":"rocket","href":"/api/quickstart"},{"title":"Authentication","icon":"key","href":"/api/authentication"},{"title":"Requests and responses","icon":"code","href":"/api/requests"},{"title":"Async operations and webhooks","icon":"bell","href":"/api/async-and-webhooks"},{"title":"Errors","icon":"triangle-exclamation","href":"/api/errors"},{"title":"Rate limits and credits","icon":"gauge-high","href":"/api/rate-limits"},{"title":"Migrating from v1","icon":"arrow-right-arrow-left","href":"/api/migrating-from-v1"},{"title":"Troubleshooting","icon":"wrench","description":"Find the fix for the response you are getting.","href":"/api/troubleshooting"},{"title":"Use cases","icon":"lightbulb","href":"/api/use-cases"},{"title":"Changelog","icon":"clock-rotate-left","description":"Track changes to the Surfer API and to these guides.","href":"/api/changelog"}]},{"group":"API v2","pages":[{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"sidebarTitle":"List workspaces","openapi":"/api/openapi-v2.json get /api/v2/workspaces","href":"/api/v2/workspaces/list-workspaces"}]},{"group":"Content Editors","pages":[{"title":"List all Content Editors","deprecated":null,"version":null,"sidebarTitle":"List all content editors","openapi":"/api/openapi-v2.json get /api/v2/content_editors","href":"/api/v2/content-editors/list-all-content-editors"},{"title":"List Content Editors in workspace","deprecated":null,"version":null,"sidebarTitle":"List content editors in workspace","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors","href":"/api/v2/content-editors/list-content-editors-in-workspace"},{"title":"Create Content Editor","deprecated":null,"version":null,"sidebarTitle":"Create content editor","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_editors","href":"/api/v2/content-editors/create-content-editor"},{"title":"Get Content Editor content","deprecated":null,"version":null,"sidebarTitle":"Get content editor content","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/content","href":"/api/v2/content-editors/get-content-editor-content"},{"title":"Update Content Editor content","deprecated":null,"version":null,"sidebarTitle":"Update content editor content","openapi":"/api/openapi-v2.json put /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/content","href":"/api/v2/content-editors/update-content-editor-content"},{"title":"Get Content Editor","deprecated":null,"version":null,"sidebarTitle":"Get content editor","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{id}","href":"/api/v2/content-editors/get-content-editor"},{"title":"Delete Content Editor","deprecated":null,"version":null,"sidebarTitle":"Delete content editor","openapi":"/api/openapi-v2.json delete /api/v2/workspaces/{workspace_id}/content_editors/{id}","href":"/api/v2/content-editors/delete-content-editor"},{"title":"Customize Content Editor","deprecated":null,"version":null,"sidebarTitle":"Customize content editor","openapi":"/api/openapi-v2.json patch /api/v2/workspaces/{workspace_id}/content_editors/{id}","href":"/api/v2/content-editors/customize-content-editor"}]},{"group":"AI Articles","pages":[{"title":"List AI Articles for Content Editor","deprecated":null,"version":null,"sidebarTitle":"List ai articles for content editor","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_articles","href":"/api/v2/ai-articles/list-ai-articles-for-content-editor"},{"title":"Create AI Article","deprecated":null,"version":null,"sidebarTitle":"Create ai article","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_articles","href":"/api/v2/ai-articles/create-ai-article"},{"title":"Get AI Article outline","deprecated":null,"version":null,"sidebarTitle":"Get ai article outline","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_articles/outline","href":"/api/v2/ai-articles/get-ai-article-outline"},{"title":"Submit edited AI Article outline","deprecated":null,"version":null,"sidebarTitle":"Submit edited ai article outline","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_articles/outline","href":"/api/v2/ai-articles/submit-edited-ai-article-outline"},{"title":"Get AI Article","deprecated":null,"version":null,"sidebarTitle":"Get ai article","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_articles/{article_id}","href":"/api/v2/ai-articles/get-ai-article"}]},{"group":"Auto-Optimize","pages":[{"title":"Get latest Auto-Optimize job","deprecated":null,"version":null,"sidebarTitle":"Get latest auto optimize job","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/auto_optimize","href":"/api/v2/auto-optimize/get-latest-auto-optimize-job"},{"title":"Start Auto-Optimize","deprecated":null,"version":null,"sidebarTitle":"Start auto optimize","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/auto_optimize","href":"/api/v2/auto-optimize/start-auto-optimize"},{"title":"Get Auto-Optimize job","deprecated":null,"version":null,"sidebarTitle":"Get auto optimize job","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/auto_optimize/{job_id}","href":"/api/v2/auto-optimize/get-auto-optimize-job"}]},{"group":"SEO Guidelines","pages":[{"title":"Get SEO Guidelines","deprecated":null,"version":null,"sidebarTitle":"Get seo guidelines","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines","href":"/api/v2/seo-guidelines/get-seo-guidelines"},{"title":"List SEO Guidelines competitors","deprecated":null,"version":null,"sidebarTitle":"List seo guidelines competitors","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/competitors","href":"/api/v2/seo-guidelines/list-seo-guidelines-competitors"},{"title":"Update SEO Guidelines competitor inclusion","deprecated":null,"version":null,"sidebarTitle":"Update seo guidelines competitor inclusion","openapi":"/api/openapi-v2.json patch /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/competitors","href":"/api/v2/seo-guidelines/update-seo-guidelines-competitor-inclusion"},{"title":"Load more competitors","deprecated":null,"version":null,"sidebarTitle":"Load more competitors","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/competitors/load_more","href":"/api/v2/seo-guidelines/load-more-competitors"},{"title":"Get SEO Guidelines score","deprecated":null,"version":null,"sidebarTitle":"Get seo guidelines score","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/score","href":"/api/v2/seo-guidelines/get-seo-guidelines-score"},{"title":"Get SEO Guidelines status","deprecated":null,"version":null,"sidebarTitle":"Get seo guidelines status","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/status","href":"/api/v2/seo-guidelines/get-seo-guidelines-status"},{"title":"Get SEO Guidelines structure","deprecated":null,"version":null,"sidebarTitle":"Get seo guidelines structure","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/structure","href":"/api/v2/seo-guidelines/get-seo-guidelines-structure"},{"title":"Update SEO Guidelines structure","deprecated":null,"version":null,"sidebarTitle":"Update seo guidelines structure","openapi":"/api/openapi-v2.json patch /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/structure","href":"/api/v2/seo-guidelines/update-seo-guidelines-structure"},{"title":"List SEO Guidelines terms","deprecated":null,"version":null,"sidebarTitle":"List seo guidelines terms","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/terms","href":"/api/v2/seo-guidelines/list-seo-guidelines-terms"},{"title":"Update SEO Guidelines terms","deprecated":null,"version":null,"sidebarTitle":"Update seo guidelines terms","openapi":"/api/openapi-v2.json patch /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/terms","href":"/api/v2/seo-guidelines/update-seo-guidelines-terms"},{"title":"List SEO Guidelines topics and questions","deprecated":null,"version":null,"sidebarTitle":"List seo guidelines topics and questions","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/topics_and_questions","href":"/api/v2/seo-guidelines/list-seo-guidelines-topics-and-questions"},{"title":"Update SEO Guidelines topics inclusion","deprecated":null,"version":null,"sidebarTitle":"Update seo guidelines topics inclusion","openapi":"/api/openapi-v2.json patch /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/seo_guidelines/topics_and_questions","href":"/api/v2/seo-guidelines/update-seo-guidelines-topics-inclusion"}]},{"group":"AI Search","pages":[{"title":"Get AI Search guidelines for a Content Editor","deprecated":null,"version":null,"sidebarTitle":"Get ai search guidelines for a content editor","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_search_guidelines","href":"/api/v2/ai-search/get-ai-search-guidelines-for-a-content-editor"},{"title":"List AI Search guidelines facts","deprecated":null,"version":null,"sidebarTitle":"List ai search guidelines facts","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_search_guidelines/facts","href":"/api/v2/ai-search/list-ai-search-guidelines-facts"},{"title":"Get AI Search score","deprecated":null,"version":null,"sidebarTitle":"Get ai search score","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/ai_search_guidelines/score","href":"/api/v2/ai-search/get-ai-search-score"}]},{"group":"Outline","pages":[{"title":"Get Content Editor outline","deprecated":null,"version":null,"sidebarTitle":"Get content editor outline","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/outline","href":"/api/v2/outline/get-content-editor-outline"},{"title":"Retry failed Content Editor outline generation","deprecated":null,"version":null,"sidebarTitle":"Retry failed content editor outline generation","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/outline/regenerate","href":"/api/v2/outline/retry-failed-content-editor-outline-generation"}]},{"group":"Permalinks","pages":[{"title":"List Content Editor permalinks","deprecated":null,"version":null,"sidebarTitle":"List content editor permalinks","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/permalinks","href":"/api/v2/permalinks/list-content-editor-permalinks"},{"title":"Reset Content Editor permalinks","deprecated":null,"version":null,"sidebarTitle":"Reset content editor permalinks","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_editors/{content_editor_id}/permalinks/reset","href":"/api/v2/permalinks/reset-content-editor-permalinks"}]},{"group":"Content Templates","pages":[{"title":"List content templates","deprecated":null,"version":null,"sidebarTitle":"List content templates","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_templates","href":"/api/v2/content-templates/list-content-templates"},{"title":"Create content template","deprecated":null,"version":null,"sidebarTitle":"Create content template","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/content_templates","href":"/api/v2/content-templates/create-content-template"},{"title":"Get content template","deprecated":null,"version":null,"sidebarTitle":"Get content template","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/content_templates/{id}","href":"/api/v2/content-templates/get-content-template"},{"title":"Update content template","deprecated":null,"version":null,"sidebarTitle":"Update content template put","openapi":"/api/openapi-v2.json put /api/v2/workspaces/{workspace_id}/content_templates/{id}","href":"/api/v2/content-templates/update-content-template-put"},{"title":"Delete content template","deprecated":null,"version":null,"sidebarTitle":"Delete content template","openapi":"/api/openapi-v2.json delete /api/v2/workspaces/{workspace_id}/content_templates/{id}","href":"/api/v2/content-templates/delete-content-template"},{"title":"Update content template","deprecated":null,"version":null,"sidebarTitle":"Update content template patch","openapi":"/api/openapi-v2.json patch /api/v2/workspaces/{workspace_id}/content_templates/{id}","href":"/api/v2/content-templates/update-content-template-patch"}]},{"group":"Custom Voices","pages":[{"title":"List custom voices","deprecated":null,"version":null,"sidebarTitle":"List custom voices","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/custom_voices","href":"/api/v2/custom-voices/list-custom-voices"},{"title":"Create custom voice","deprecated":null,"version":null,"sidebarTitle":"Create custom voice","openapi":"/api/openapi-v2.json post /api/v2/workspaces/{workspace_id}/custom_voices","href":"/api/v2/custom-voices/create-custom-voice"},{"title":"Get custom voice","deprecated":null,"version":null,"sidebarTitle":"Get custom voice","openapi":"/api/openapi-v2.json get /api/v2/workspaces/{workspace_id}/custom_voices/{id}","href":"/api/v2/custom-voices/get-custom-voice"},{"title":"Update custom voice","deprecated":null,"version":null,"sidebarTitle":"Update custom voice put","openapi":"/api/openapi-v2.json put /api/v2/workspaces/{workspace_id}/custom_voices/{id}","href":"/api/v2/custom-voices/update-custom-voice-put"},{"title":"Delete custom voice","deprecated":null,"version":null,"sidebarTitle":"Delete custom voice","openapi":"/api/openapi-v2.json delete /api/v2/workspaces/{workspace_id}/custom_voices/{id}","href":"/api/v2/custom-voices/delete-custom-voice"},{"title":"Update custom voice","deprecated":null,"version":null,"sidebarTitle":"Update custom voice patch","openapi":"/api/openapi-v2.json patch /api/v2/workspaces/{workspace_id}/custom_voices/{id}","href":"/api/v2/custom-voices/update-custom-voice-patch"}]},{"group":"Content Template Presets","pages":[{"title":"List Surfer Content Templates","deprecated":null,"version":null,"sidebarTitle":"List surfer content templates","openapi":"/api/openapi-v2.json get /api/v2/surfer_content_templates","href":"/api/v2/surfer-content-templates/list-surfer-content-templates"}]}]},{"group":"API v1 (legacy)","pages":[{"group":"Content Editors","pages":[{"title":"List Content Editors for a workspace","deprecated":true,"version":null,"sidebarTitle":"List content editors for a workspace","openapi":"/api/openapi-v1.json get /api/v1/content_editors","href":"/api/v1/content-editors/list-content-editors-for-a-workspace"},{"title":"Create Content Editor query","deprecated":true,"version":null,"sidebarTitle":"Create content editor query","openapi":"/api/openapi-v1.json post /api/v1/content_editors","href":"/api/v1/content-editors/create-content-editor-query"},{"title":"Get Content Editor query","deprecated":true,"version":null,"sidebarTitle":"Get content editor query","openapi":"/api/openapi-v1.json get /api/v1/content_editors/{id}","href":"/api/v1/content-editors/get-content-editor-query"},{"title":"Update Content Editor query","deprecated":true,"version":null,"sidebarTitle":"Update content editor query","openapi":"/api/openapi-v1.json patch /api/v1/content_editors/{id}","href":"/api/v1/content-editors/update-content-editor-query"},{"title":"Auto-Optimize Content Editor query","deprecated":true,"version":null,"sidebarTitle":"Auto optimize content editor query","openapi":"/api/openapi-v1.json post /api/v1/content_editors/{id}/auto_optimize","href":"/api/v1/content-editors/auto-optimize-content-editor-query"},{"title":"Get content inside the Content Editor","deprecated":true,"version":null,"sidebarTitle":"Get content inside the content editor","openapi":"/api/openapi-v1.json get /api/v1/content_editors/{id}/content","href":"/api/v1/content-editors/get-content-inside-the-content-editor"},{"title":"Get content score for the Content Editor","deprecated":true,"version":null,"sidebarTitle":"Get content score for the content editor","openapi":"/api/openapi-v1.json get /api/v1/content_editors/{id}/content_score","href":"/api/v1/content-editors/get-content-score-for-the-content-editor"},{"title":"Get structural guidelines for the Content Editor","deprecated":true,"version":null,"sidebarTitle":"Get structural guidelines for the content editor","openapi":"/api/openapi-v1.json get /api/v1/content_editors/{id}/structural_guidelines","href":"/api/v1/content-editors/get-structural-guidelines-for-the-content-editor"},{"title":"Get all terms for the Content Editor","deprecated":true,"version":null,"sidebarTitle":"Get all terms for the content editor","openapi":"/api/openapi-v1.json get /api/v1/content_editors/{id}/terms","href":"/api/v1/content-editors/get-all-terms-for-the-content-editor"}]},{"group":"Audit","pages":[{"title":"Create Audit query","deprecated":null,"version":null,"sidebarTitle":"Create audit query","openapi":"/api/openapi-v1.json post /api/v1/audits","href":"/api/v1/audit/create-audit-query"},{"title":"Get Audit query","deprecated":null,"version":null,"sidebarTitle":"Get audit query","openapi":"/api/openapi-v1.json get /api/v1/audits/{id}","href":"/api/v1/audit/get-audit-query"}]},{"group":"SERP Analyzer","pages":[{"title":"List SERP Analyzer queries for a workspace","deprecated":null,"version":null,"sidebarTitle":"List serp analyzer queries for a workspace","openapi":"/api/openapi-v1.json get /api/v1/exports/csv/serp_analyzer","href":"/api/v1/serp-analyzer/list-serp-analyzer-queries-for-a-workspace"},{"title":"Get prominent terms","deprecated":null,"version":null,"sidebarTitle":"Get prominent terms","openapi":"/api/openapi-v1.json get /api/v1/exports/csv/serp_analyzer/{serp_analyzer_id}/prominent_terms","href":"/api/v1/serp-analyzer/get-prominent-terms"},{"title":"Get search results","deprecated":null,"version":null,"sidebarTitle":"Get search results","openapi":"/api/openapi-v1.json get /api/v1/exports/csv/serp_analyzer/{serp_analyzer_id}/search_results","href":"/api/v1/serp-analyzer/get-search-results"},{"title":"Create SERP Analyzer query","deprecated":true,"version":null,"sidebarTitle":"Create serp analyzer query post create deprecated","openapi":"/api/openapi-v1.json post /api/v1/serp_analyzer","href":"/api/v1/serp-analyzer/create-serp-analyzer-query-post-create-deprecated"},{"title":"Create a batch of SERP Analyzer queries","deprecated":true,"version":null,"sidebarTitle":"Create a batch of serp analyzer queries post create batch deprecated","openapi":"/api/openapi-v1.json post /api/v1/serp_analyzer/batches","href":"/api/v1/serp-analyzer/create-a-batch-of-serp-analyzer-queries-post-create-batch-deprecated"},{"title":"Create SERP Analyzer query","deprecated":null,"version":null,"sidebarTitle":"Create serp analyzer query post create","openapi":"/api/openapi-v1.json post /api/v1/serp_analyzers","href":"/api/v1/serp-analyzer/create-serp-analyzer-query-post-create"},{"title":"Create a batch of SERP Analyzer queries","deprecated":null,"version":null,"sidebarTitle":"Create a batch of serp analyzer queries post create batch","openapi":"/api/openapi-v1.json post /api/v1/serp_analyzers/batch","href":"/api/v1/serp-analyzer/create-a-batch-of-serp-analyzer-queries-post-create-batch"}]},{"group":"Other","pages":[{"title":"Detect AI content in a text","deprecated":null,"version":null,"sidebarTitle":"Detect ai content in a text","openapi":"/api/openapi-v1.json post /api/v1/ai_detector/detect","href":"/api/v1/other/detect-ai-content-in-a-text"},{"title":"Humanize text","deprecated":null,"version":null,"sidebarTitle":"Humanize text","openapi":"/api/openapi-v1.json post /api/v1/humanizer/humanize","href":"/api/v1/other/humanize-text"},{"title":"List supported locations","deprecated":null,"version":null,"sidebarTitle":"List supported locations","openapi":"/api/openapi-v1.json get /api/v1/locations","href":"/api/v1/other/list-supported-locations"},{"title":"List workspaces","deprecated":true,"version":null,"sidebarTitle":"List workspaces","openapi":"/api/openapi-v1.json get /api/v1/workspaces","href":"/api/v1/other/list-workspaces"}]}]}]}]},"basePath":"","title":"Use cases - Surfer","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}