{
"type": "https://docs.alura.io/errors/method_not_allowed",
"title": "Method not allowed",
"status": 405,
"code": "method_not_allowed",
"detail": "Method not allowed",
"suggestion": "Use one of the methods in the Allow header.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}
Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura’s Etsy Ads page. A preview changes nothing on Etsy.
{
"type": "https://docs.alura.io/errors/method_not_allowed",
"title": "Method not allowed",
"status": 405,
"code": "method_not_allowed",
"detail": "Method not allowed",
"suggestion": "Use one of the methods in the Allow header.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}
Needs the seller’s Chrome open somewhere, with the Alura extension and signed in to Etsy for this shop. The script or agent can run on another computer. An offline extension answers extension_offline; the live status can name a more specific connection problem. Errors cost no API credits. See Chrome extension.
Needs the ads:read scope and the Etsy Ads workspace permission. The preview is kept 30 minutes (expires_at), and Get optimizer run reads it. To carry it out, use Apply optimizer run.
Choose what to plan
target
Plans
Default strategy
listings
Which advertised listings to pause or move to Lower click cost
Budget Saver: pause listings that spend without selling. Needs no margin.
search_terms
Which search terms to turn off for a listing, Etsy’s per-listing “irrelevant” toggle
Keyword Saver: turn off terms that spend without selling
The strategy is overrides.strategy, else the saved optimizer settings, else the default. basis says which one ran.A strategy that judges listings against break-even needs the shop’s margin, saved or sent as overrides.margin_pct. Without it the answer is 422margin_required. break_even_roas comes from that margin and Etsy’s fees for the shop’s country.
Large shops take several requests
One request makes at most 27 live reads (pages, stats and search terms), because a shop has 30 live Etsy reads a minute. While more is left:
The answer is status: scanning, with scan (how far it got) and continuation.
Wait scan.retry_after_s, then send {"continuation": "..."} alone.
Repeat until the same id answers status: preview, with the plan of the whole shop.
The scan didn’t finish within 30 minutes (expires_at)
What gets planned
The shop’s advertised listings are read live from Etsy, highest spend first, until no remaining listing can match or 60 pages of 50 are read (3000 listings, as Alura’s Etsy Ads page reads). Past that, coverage.complete is false with scan_truncated.The highest-spend listings come first, and capped says when more matched.
Limit
Value
Actions by default
The strategy’s own cap, at most 120, which is what one apply sends. max_actions_capped says when that lowered it.
Actions with overrides.max_actions
Up to 240, for a preview only
Read the plan
projected_monthly_spend_freed is the paused listings’ spend as 30 days: spend freed, not guaranteed cash saved.
Spend Etsy didn’t report is never added as 0. It is counted in spend_unknown_count, and above 0 the amount is a lower bound. Listings with a number or protection Alura couldn’t read are counted in coverage.unjudgeable, never judged as zero.
Search terms
With target: search_terms, Alura reads the search terms of at most 150 advertised listings (coverage.search_terms), each over Etsy’s last 31 days (period). More than 150 sets coverage.complete: false with scan_truncated.Terms already off count in already_off. A plan holds at most 7 terms by default, which is what one apply sends.
Limits
429live_rate_limited means the shop had too many live reads: more than 2 at a time or 30 a minute. Wait for Retry-After.Each page, the campaign’s stats and each listing’s search terms is one live read, up to 27 a request. A request that could not read Etsy is free. See Credits and limits.
Authorizations
Authorization
string
header
required
An API key: Authorization: Bearer alura_sk_....
Body
application/json
continuation
string
A scanning preview's continuation: reads more of its shop, then plans. Sent alone.
Required string length: 1 - 80
Pattern: ^[A-Za-z0-9_-]{1,80}$
shop_id
string
The Etsy shop ID of one of the workspace's connected shops; optional when the workspace has one. A shop outside the workspace is 404.
Pattern: ^[0-9]{1,20}$
target
enum<string>
What to optimize: listings (pause or lower the click cost of advertised listings) or search_terms (turn a search term off for one listing, Etsy's per-listing "irrelevant" toggle: the search-terms strategy of the settings, else Keyword Saver). Required unless continuation is sent.
Available options:
listings,
search_terms
listing_ids
string[]
Plan only for these listings (at most 100); the whole shop is still scanned, and coverage.listing_ids_not_scanned names any the scan did not reach (for search_terms: any whose terms were not read).
Required array length: 1 - 100 elements
Pattern: ^[0-9]{1,20}$
period
enum<string>
The stats period the rules judge: last_30_days, last_3_months, last_12_months or all_time (Etsy's last 730 days, as Alura's Etsy Ads page). Default: the strategy's own period.
Available options:
last_30_days,
last_3_months,
last_12_months,
all_time
overrides
object
Show child attributes
Response
OK
Option 1
Option 2
object
string
required
Allowed value: "workspace.ads_optimize_run"
id
string
required
The run ID: GET /v1/workspace/ads/optimize/runs/{id} reads it while it is kept.
status
string
required
preview: planned only; nothing was changed on Etsy.
Allowed value: "preview"
shop_id
string
required
target
enum<string>
required
Available options:
listings,
search_terms
created_at
string
required
ISO 8601, UTC.
expires_at
string
required
When the preview is dropped: after it, its GET is 410 optimize_run_expired.
basis
enum<string>
required
Where the strategy came from: explicit (overrides.strategy), saved (the optimizer settings), default (Budget Saver, or Keyword Saver for search terms: no settings saved).
Available options:
explicit,
saved,
default
strategy
object
required
The strategy the plan used (the shape of a strategy in the optimizer settings), with the run's period and action cap.
Show child attributes
period
object
required
The days judged, on Etsy's calendar (US Eastern); for search terms, the window their numbers cover (Etsy's rolling last 31 days and today).
Show child attributes
margin_pct
number | null
required
The shop margin the plan used; null when none is saved or given.
break_even_roas
number | null
required
The shop margin's break-even ROAS: below it, ads lose money at this margin. A floor: a listing's own can be higher. null without a margin, when it is unknown, or when no ROAS breaks even at this margin.
actions
object[]
required
The planned changes, highest spend first.
Show child attributes
held_back
object[]
required
What the rules matched but a guardrail held back (codes of kind guardrail, except run_cap: capped_count counts those), highest spend first, at most 20 (the held_back notice counts them all). Nothing here is changed by an apply; a seller who wants them acted on changes the strategy's guardrails.
Show child attributes
capped
boolean
required
true when more listings matched than the action cap: the highest-spend ones were kept.
max_actions_capped
boolean
required
true when the strategy's own action cap (or the default) was above what one apply sends (120 listings, 7 search terms), so this preview planned at most that; send overrides.max_actions to plan more (preview only: an apply sends no more). The saved settings are unchanged.
capped_count
integer
required
Listings (or search terms) that matched beyond the cap (0 when not capped).
projected_monthly_spend_freed
object | null
required
The paused listings' (or turned-off terms') spend over the period, as 30 days: ad spend freed, not guaranteed cash saved (the daily budget is shared, so Etsy may spend it on other listings). Only spend Etsy reported is added: with spend_unknown_count above 0 this is a lower bound (at least this much). In US dollars (Etsy Ads money for every shop); null when it is unknown.
Show child attributes
spend_unknown_count
integer
required
Paused listings whose spend Etsy didn't report: left out of projected_monthly_spend_freed, never added as 0, so above 0 that amount is "at least".
coverage
object
required
Show child attributes
notices
object[]
required
Show child attributes
plan_hash
string
required
The plan's hash (its actions and everything they were decided on). Send it with the apply (plan_hash): the apply is refused, nothing sent, unless it is still this plan.
fetched_at
string | null
required
When Alura read the scan from Etsy; null when nothing was read.
source
string
required
Allowed value: "live"
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Alura API","description":"Etsy market research for scripts and AI assistants: products, shops, keywords and saved research.","colors":{"primary":"#155EEF","light":"#528BFF","dark":"#004EEB"},"logo":{"light":"https://mintcdn.com/alura/HySS5CT36sWBL9EL/logo/light.svg?fit=max\u0026auto=format\u0026n=HySS5CT36sWBL9EL\u0026q=85\u0026s=6afcc5174d02ee0af4c233126964240a","dark":"https://mintcdn.com/alura/HySS5CT36sWBL9EL/logo/dark.svg?fit=max\u0026auto=format\u0026n=HySS5CT36sWBL9EL\u0026q=85\u0026s=0babd9724a17bbf017bb0d29d0943900","href":"https://alura.io"},"favicon":"https://mintcdn.com/alura/HySS5CT36sWBL9EL/favicon.svg?fit=max\u0026auto=format\u0026n=HySS5CT36sWBL9EL\u0026q=85\u0026s=4a49d66ca34eb4e2b084d778927ed570","api":{"playground":{"display":"none","proxy":false},"examples":{"languages":["curl","typescript","python"]}},"background":{"color":{"light":"#FFFFFF","dark":"#171717"}},"navbar":{"links":[{"href":"/status","label":"Status"}],"primary":{"type":"button","label":"Get an API key","href":"https://platform.alura.io/settings"}},"footer":{"socials":{"website":"https://alura.io"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"alura","hasAudioNarration":false,"actualSubdomain":"alura","customDomains":["docs.alura.io"],"gitSource":{"type":"github","owner":"pixell-co","repo":"alura-public-api","deployBranch":"main","contentDirectory":"apps/docs/content","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b03642e44961eaca6db4173","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":199},{"language":"default","tag":"Your shop","count":89},{"language":"default","tag":"Chrome extension","count":51},{"language":"default","tag":"Research","count":37},{"language":"default","tag":"Documentation","count":36},{"language":"default","tag":"Shop","count":34},{"language":"default","tag":"Knowledge","count":21},{"language":"default","tag":"Etsy Ads","count":20},{"language":"default","tag":"Etsy","count":16},{"language":"default","tag":"MCP","count":15}]},"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":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"a[href=\"https://platform.alura.io/settings\"]:not(.link){background-color:transparent!important}a[href=\"https://platform.alura.io/settings\"]:not(.link)>span:first-child,html.dark a[href=\"https://platform.alura.io/settings\"]:not(.link)>span:first-child{background-color:#155EEF!important}a[href=\"https://platform.alura.io/settings\"]:not(.link),a[href=\"https://platform.alura.io/settings\"]:not(.link) *{color:#FFFFFF!important}a[href=\"https://platform.alura.io/settings\"]:not(.link):hover>span:first-child{background-color:#004EEB!important}a[href=\"https://platform.alura.io/settings\"][target=\"_blank\"]:not(.link) svg{display:none!important}a[href=\"https://platform.alura.io/settings\"]:not(.link),a[href=\"https://platform.alura.io/settings\"]:not(.link)>span:first-child,button:not([role=\"switch\"]):not([role=\"tab\"]),.sidebar-group a,#search-bar-entry,#search-bar-entry-mobile{border-radius:9999px!important}#page-context-menu-button{border-radius:0.75rem 0 0 0.75rem!important}#page-context-menu-button+button{border-radius:0 0.75rem 0.75rem 0!important}#topbar-cta-button>a{padding:0.375rem 0.875rem!important;font-size:0.8125rem!important}[data-component-part=\"update-tag\"],[data-component-part=\"update-description\"]{font-size:0.75rem;line-height:1.25rem}[data-component-part=\"update-tag-list\"]{flex-direction:column;gap:0.25rem}[data-component-part=\"update-tag\"]{opacity:0.7}[data-component-part=\"update-content\"]>h2:first-child{margin-top:0;font-size:1.5rem;line-height:2rem}[data-component-part=\"update-content\"] h3{font-size:1rem;margin-top:1.75rem}"}]}
{"page":{"pagePath":"api-reference/workspace/ads/optimize/runs/preview","slug":"/api-reference/workspace/ads/optimize/runs/preview","pageMetadata":{"title":"Preview optimizer run","description":"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura's Etsy Ads page. A preview changes nothing on Etsy.","deprecated":null,"version":null,"sidebarTitle":"Preview optimizer run","openapi":"/openapi.json post /v1/workspace/ads/optimize/runs","href":"/api-reference/workspace/ads/optimize/runs/preview","autogeneratedByOpenApi":true},"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: \"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura’s Etsy Ads page. A preview changes nothing on Etsy.\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cost:`}),` 1 API credit per live read.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Needs the seller’s Chrome open somewhere, with the Alura extension and signed in to Etsy for this shop. The script or agent can run on another computer. An offline extension answers `,_jsx(_components.a,{href:`/errors/extension_offline`,children:_jsx(_components.code,{children:`extension_offline`})}),`; the `,_jsx(_components.a,{href:`/api-reference/workspace/shops/live/get`,children:`live status`}),` can name a more specific connection problem. Errors cost no API credits. See `,_jsx(_components.a,{href:`/api-reference/chrome-extension`,children:`Chrome extension`}),`.`]})}),`\n`,_jsx(CodeBlock,{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://api.alura.io/v1/workspace/ads/optimize/runs\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ALURA_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:` '{\"shop_id\": \"22841907\", \"target\": \"listings\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Needs the `,_jsx(_components.code,{children:`ads:read`}),` scope and the `,_jsx(_components.strong,{children:`Etsy Ads`}),` workspace permission. The preview is kept 30 minutes (`,_jsx(_components.code,{children:`expires_at`}),`), and `,_jsx(_components.a,{href:`/api-reference/workspace/ads/optimize/runs/get`,children:`Get optimizer run`}),` reads it. To carry it out, use `,_jsx(_components.a,{href:`/api-reference/workspace/ads/optimize/runs/apply`,children:`Apply optimizer run`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`choose-what-to-plan`,children:`Choose what to plan`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`target`})}),_jsx(_components.th,{children:`Plans`}),_jsx(_components.th,{children:`Default strategy`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`listings`})}),_jsx(_components.td,{children:`Which advertised listings to pause or move to Lower click cost`}),_jsx(_components.td,{children:`Budget Saver: pause listings that spend without selling. Needs no margin.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`search_terms`})}),_jsx(_components.td,{children:`Which search terms to turn off for a listing, Etsy’s per-listing “irrelevant” toggle`}),_jsx(_components.td,{children:`Keyword Saver: turn off terms that spend without selling`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The strategy is `,_jsx(_components.code,{children:`overrides.strategy`}),`, else the saved `,_jsx(_components.a,{href:`/api-reference/workspace/ads/optimize/settings/get`,children:`optimizer settings`}),`, else the default. `,_jsx(_components.code,{children:`basis`}),` says which one ran.`]}),`\n`,_jsxs(_components.p,{children:[`A strategy that judges listings against break-even needs the shop’s margin, saved or sent as `,_jsx(_components.code,{children:`overrides.margin_pct`}),`. Without it the answer is `,_jsx(_components.code,{children:`422`}),` `,_jsx(_components.a,{href:`/errors/margin_required`,children:_jsx(_components.code,{children:`margin_required`})}),`. `,_jsx(_components.code,{children:`break_even_roas`}),` comes from that margin and Etsy’s fees for the shop’s country.`]}),`\n`,_jsx(Heading,{level:`2`,id:`large-shops-take-several-requests`,children:`Large shops take several requests`}),`\n`,_jsx(_components.p,{children:`One request makes at most 27 live reads (pages, stats and search terms), because a shop has 30 live Etsy reads a minute. While more is left:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`The answer is `,_jsx(_components.code,{children:`status: scanning`}),`, with `,_jsx(_components.code,{children:`scan`}),` (how far it got) and `,_jsx(_components.code,{children:`continuation`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Wait `,_jsx(_components.code,{children:`scan.retry_after_s`}),`, then send `,_jsx(_components.code,{children:`{\"continuation\": \"...\"}`}),` alone.`]}),`\n`,_jsxs(_components.li,{children:[`Repeat until the same `,_jsx(_components.code,{children:`id`}),` answers `,_jsx(_components.code,{children:`status: preview`}),`, with the plan of the whole shop.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:`Continue a scan`,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://api.alura.io/v1/workspace/ads/optimize/runs\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ALURA_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:` '{\"continuation\": \"scan_01\"}'`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Answer`}),_jsx(_components.th,{children:`Means`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`429`}),` `,_jsx(_components.a,{href:`/errors/live_rate_limited`,children:_jsx(_components.code,{children:`live_rate_limited`})})]}),_jsx(_components.td,{children:`You sent the continuation too early. Nothing was read, it is free, and the scan is kept.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`410`}),` `,_jsx(_components.a,{href:`/errors/optimize_run_expired`,children:_jsx(_components.code,{children:`optimize_run_expired`})})]}),_jsxs(_components.td,{children:[`The scan didn’t finish within 30 minutes (`,_jsx(_components.code,{children:`expires_at`}),`)`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-gets-planned`,children:`What gets planned`}),`\n`,_jsxs(_components.p,{children:[`The shop’s advertised listings are read live from Etsy, highest spend first, until no remaining listing can match or 60 pages of 50 are read (3000 listings, as Alura’s Etsy Ads page reads). Past that, `,_jsx(_components.code,{children:`coverage.complete`}),` is `,_jsx(_components.code,{children:`false`}),` with `,_jsx(_components.code,{children:`scan_truncated`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The highest-spend listings come first, and `,_jsx(_components.code,{children:`capped`}),` says when more matched.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Limit`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Actions by default`}),_jsxs(_components.td,{children:[`The strategy’s own cap, at most 120, which is what one apply sends. `,_jsx(_components.code,{children:`max_actions_capped`}),` says when that lowered it.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Actions with `,_jsx(_components.code,{children:`overrides.max_actions`})]}),_jsx(_components.td,{children:`Up to 240, for a preview only`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`read-the-plan`,children:`Read the plan`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`projected_monthly_spend_freed`}),` is the paused listings’ spend as 30 days: spend freed, not guaranteed cash saved.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Spend Etsy didn’t report is never added as 0. It is counted in `,_jsx(_components.code,{children:`spend_unknown_count`}),`, and above 0 the amount is a lower bound. Listings with a number or protection Alura couldn’t read are counted in `,_jsx(_components.code,{children:`coverage.unjudgeable`}),`, never judged as zero.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`search-terms`,children:`Search terms`}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`target: search_terms`}),`, Alura reads the search terms of at most 150 advertised listings (`,_jsx(_components.code,{children:`coverage.search_terms`}),`), each over Etsy’s last 31 days (`,_jsx(_components.code,{children:`period`}),`). More than 150 sets `,_jsx(_components.code,{children:`coverage.complete: false`}),` with `,_jsx(_components.code,{children:`scan_truncated`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Terms already off count in `,_jsx(_components.code,{children:`already_off`}),`. A plan holds at most 7 terms by default, which is what one apply sends.`]}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`429`}),` `,_jsx(_components.a,{href:`/errors/live_rate_limited`,children:_jsx(_components.code,{children:`live_rate_limited`})}),` means the shop had too many live reads: more than 2 at a time or 30 a minute. Wait for `,_jsx(_components.code,{children:`Retry-After`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Each page, the campaign’s stats and each listing’s search terms is one live read, up to 27 a request. A request that could not read Etsy is free. See `,_jsx(_components.a,{href:`/api-reference/credits-and-limits`,children:`Credits and limits`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Preview optimizer run","description":"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura's Etsy Ads page. A preview changes nothing on Etsy.","deprecated":null,"version":null,"sidebarTitle":"Preview optimizer run","openapi":"/openapi.json post /v1/workspace/ads/optimize/runs","href":"/api-reference/workspace/ads/optimize/runs/preview","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choose what to plan","slug":"choose-what-to-plan","depth":2,"children":[]},{"title":"Large shops take several requests","slug":"large-shops-take-several-requests","depth":2,"children":[]},{"title":"What gets planned","slug":"what-gets-planned","depth":2,"children":[]},{"title":"Read the plan","slug":"read-the-plan","depth":2,"children":[]},{"title":"Search terms","slug":"search-terms","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"workspace.ads.optimize.runs.preview","summary":"Preview optimizer run","description":"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura's Etsy Ads page. A preview changes nothing on Etsy.","requestBody":"4d18bfc2-3397-45a9-8c62-bbc1bc77367a","responses":{"200":"18ef1919-e396-4b34-82a5-676e85b76814","400":"6a95de6d-6d83-467e-b640-f561db38cc02","401":"dba3f9fa-25c0-4809-b4be-1fa39dc72533","402":"907bc9c3-c527-43da-835d-9fa3043b7d8d","403":"03540bcd-b525-4f21-a8f6-878a4101ba0b","404":"510df408-dad6-4cbf-bc69-88d6a97523e9","405":"b2f6bcf6-b3c4-4abb-a46b-e3da40e9099f","409":"4737bedb-33a4-496d-85f4-04856ffb94eb","410":"41f087ee-9611-48ce-896a-0a3f4926029f","422":"da7f7393-a24e-4517-b98a-317c80d2fb3e","429":"913838e0-c390-4464-996a-6215b513f580","500":"587b6438-faad-485d-bd47-4421979bc3cd","502":"f0c26a3f-ce56-46e7-b6fe-adf50103edff","503":"f8c20b14-8d9c-418d-b7ac-c71f34651ad5","504":"f0a65db2-ff68-4fd2-a6c7-165fa55435cb"},"x-alura-credits":{"credits":1,"unit":"read"},"x-alura-scopes":["ads:read"],"parameters":[],"x-codeSamples":[{"lang":"bash","label":"cURL","source":"curl -X POST \"https://api.alura.io/v1/workspace/ads/optimize/runs\" \\\n -H \"Authorization: Bearer $ALURA_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"shop_id\":\"22841907\",\"target\":\"listings\"}'"},{"lang":"typescript","label":"TypeScript","source":"const res = await fetch('https://api.alura.io/v1/workspace/ads/optimize/runs', {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${process.env.ALURA_API_KEY}`,\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"shop_id\": \"22841907\",\n \"target\": \"listings\"\n }),\n});\nconsole.log(await res.json());"},{"lang":"python","label":"Python","source":"import json\nimport os\nimport urllib.request\n\nrequest = urllib.request.Request(\n \"https://api.alura.io/v1/workspace/ads/optimize/runs\",\n method=\"POST\",\n data=json.dumps({\n \"shop_id\": \"22841907\",\n \"target\": \"listings\"\n }).encode(),\n headers={\n \"Authorization\": f\"Bearer {os.environ['ALURA_API_KEY']}\",\n \"Content-Type\": \"application/json\",\n },\n)\nwith urllib.request.urlopen(request) as response:\n print(json.load(response))"}],"x-mint":{"href":"/api-reference/workspace/ads/optimize/runs/preview","metadata":{"sidebarTitle":"Preview optimizer run","description":"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura's Etsy Ads page. A preview changes nothing on Etsy."},"content":"**Cost:** 1 API credit per live read.\n\n\u003cNote>\nNeeds the seller's Chrome open somewhere, with the Alura extension and signed in to Etsy for this shop. The script or agent can run on another computer. An offline extension answers [`extension_offline`](/errors/extension_offline); the [live status](/api-reference/workspace/shops/live/get) can name a more specific connection problem. Errors cost no API credits. See [Chrome extension](/api-reference/chrome-extension).\n\u003c/Note>\n\n```bash\ncurl -X POST \"https://api.alura.io/v1/workspace/ads/optimize/runs\" \\\n -H \"Authorization: Bearer $ALURA_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"shop_id\": \"22841907\", \"target\": \"listings\"}'\n```\n\nNeeds the `ads:read` scope and the **Etsy Ads** workspace permission. The preview is kept 30 minutes (`expires_at`), and [Get optimizer run](/api-reference/workspace/ads/optimize/runs/get) reads it. To carry it out, use [Apply optimizer run](/api-reference/workspace/ads/optimize/runs/apply).\n\n## Choose what to plan\n\n| `target` | Plans | Default strategy |\n|---|---|---|\n| `listings` | Which advertised listings to pause or move to Lower click cost | Budget Saver: pause listings that spend without selling. Needs no margin. |\n| `search_terms` | Which search terms to turn off for a listing, Etsy's per-listing \"irrelevant\" toggle | Keyword Saver: turn off terms that spend without selling |\n\nThe strategy is `overrides.strategy`, else the saved [optimizer settings](/api-reference/workspace/ads/optimize/settings/get), else the default. `basis` says which one ran.\n\nA strategy that judges listings against break-even needs the shop's margin, saved or sent as `overrides.margin_pct`. Without it the answer is `422` [`margin_required`](/errors/margin_required). `break_even_roas` comes from that margin and Etsy's fees for the shop's country.\n\n## Large shops take several requests\n\nOne request makes at most 27 live reads (pages, stats and search terms), because a shop has 30 live Etsy reads a minute. While more is left:\n\n1. The answer is `status: scanning`, with `scan` (how far it got) and `continuation`.\n2. Wait `scan.retry_after_s`, then send `{\"continuation\": \"...\"}` alone.\n3. Repeat until the same `id` answers `status: preview`, with the plan of the whole shop.\n\n```bash Continue a scan\ncurl -X POST \"https://api.alura.io/v1/workspace/ads/optimize/runs\" \\\n -H \"Authorization: Bearer $ALURA_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"continuation\": \"scan_01\"}'\n```\n\n| Answer | Means |\n|---|---|\n| `429` [`live_rate_limited`](/errors/live_rate_limited) | You sent the continuation too early. Nothing was read, it is free, and the scan is kept. |\n| `410` [`optimize_run_expired`](/errors/optimize_run_expired) | The scan didn't finish within 30 minutes (`expires_at`) |\n\n## What gets planned\n\nThe shop's advertised listings are read live from Etsy, highest spend first, until no remaining listing can match or 60 pages of 50 are read (3000 listings, as Alura's Etsy Ads page reads). Past that, `coverage.complete` is `false` with `scan_truncated`.\n\nThe highest-spend listings come first, and `capped` says when more matched.\n\n| Limit | Value |\n|---|---|\n| Actions by default | The strategy's own cap, at most 120, which is what one apply sends. `max_actions_capped` says when that lowered it. |\n| Actions with `overrides.max_actions` | Up to 240, for a preview only |\n\n## Read the plan\n\n`projected_monthly_spend_freed` is the paused listings' spend as 30 days: spend freed, not guaranteed cash saved.\n\n\u003cNote>\nSpend Etsy didn't report is never added as 0. It is counted in `spend_unknown_count`, and above 0 the amount is a lower bound. Listings with a number or protection Alura couldn't read are counted in `coverage.unjudgeable`, never judged as zero.\n\u003c/Note>\n\n## Search terms\n\nWith `target: search_terms`, Alura reads the search terms of at most 150 advertised listings (`coverage.search_terms`), each over Etsy's last 31 days (`period`). More than 150 sets `coverage.complete: false` with `scan_truncated`.\n\nTerms already off count in `already_off`. A plan holds at most 7 terms by default, which is what one apply sends.\n\n## Limits\n\n`429` [`live_rate_limited`](/errors/live_rate_limited) means the shop had too many live reads: more than 2 at a time or 30 a minute. Wait for `Retry-After`.\n\nEach page, the campaign's stats and each listing's search terms is one live read, up to 27 a request. A request that could not read Etsy is free. See [Credits and limits](/api-reference/credits-and-limits)."},"method":"post","type":"path","servers":["616e7fd8-7d97-4980-bf47-ea03e1349236"],"security":["2aa7a7e0-c8b1-479f-b276-7bae04f815a2"],"path":"/v1/workspace/ads/optimize/runs","baseUrlOptions":["https://api.alura.io"],"title":"Preview optimizer run","codeSamples":[{"label":"cURL","lang":"bash","source":"curl -X POST \"https://api.alura.io/v1/workspace/ads/optimize/runs\" \\\n -H \"Authorization: Bearer $ALURA_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"shop_id\":\"22841907\",\"target\":\"listings\"}'"},{"label":"TypeScript","lang":"typescript","source":"const res = await fetch('https://api.alura.io/v1/workspace/ads/optimize/runs', {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${process.env.ALURA_API_KEY}`,\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"shop_id\": \"22841907\",\n \"target\": \"listings\"\n }),\n});\nconsole.log(await res.json());"},{"label":"Python","lang":"python","source":"import json\nimport os\nimport urllib.request\n\nrequest = urllib.request.Request(\n \"https://api.alura.io/v1/workspace/ads/optimize/runs\",\n method=\"POST\",\n data=json.dumps({\n \"shop_id\": \"22841907\",\n \"target\": \"listings\"\n }).encode(),\n headers={\n \"Authorization\": f\"Bearer {os.environ['ALURA_API_KEY']}\",\n \"Content-Type\": \"application/json\",\n },\n)\nwith urllib.request.urlopen(request) as response:\n print(json.load(response))"}],"requestExampleLanguages":["bash","typescript","python"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"continuation":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9_-]{1,80}$","description":"A scanning preview's `continuation`: reads more of its shop, then plans. Sent alone.","uniqueKey":"continuation","typeLabel":"string"},"shop_id":{"description":"The Etsy shop ID of one of the workspace's connected shops; optional when the workspace has one. A shop outside the workspace is 404.","type":"string","pattern":"^[0-9]{1,20}$","uniqueKey":"shop_id","typeLabel":"string"},"target":{"description":"What to optimize: `listings` (pause or lower the click cost of advertised listings) or `search_terms` (turn a search term off for one listing, Etsy's per-listing \"irrelevant\" toggle: the search-terms strategy of the settings, else Keyword Saver). Required unless `continuation` is sent.","type":"string","enum":["listings","search_terms"],"uniqueKey":"target","typeLabel":"enum\u003cstring>"},"listing_ids":{"description":"Plan only for these listings (at most 100); the whole shop is still scanned, and `coverage.listing_ids_not_scanned` names any the scan did not reach (for `search_terms`: any whose terms were not read).","minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[0-9]{1,20}$","uniqueKey":"listing_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"listing_ids","typeLabel":"string[]"},"period":{"description":"The stats period the rules judge: `last_30_days`, `last_3_months`, `last_12_months` or `all_time` (Etsy's last 730 days, as Alura's Etsy Ads page). Default: the strategy's own period.","type":"string","enum":["last_30_days","last_3_months","last_12_months","all_time"],"uniqueKey":"period","typeLabel":"enum\u003cstring>"},"overrides":{"type":"object","properties":{"margin_pct":{"description":"The shop's margin for this run, in percent (0-95): what is left of revenue after making, packaging and shipping, before Etsy's fees and ads. Default: the saved margin.","type":"number","minimum":0,"maximum":95,"uniqueKey":"overrides.margin_pct","typeLabel":"number"},"strategy":{"description":"A whole strategy for this run (the shape of a strategy in the optimizer settings, snake_case; camelCase keys are still taken, deprecated): a listings strategy for `listings`, a search-terms one (`mode: \"keywords\"`) for `search_terms`. Default: the saved strategy, else Budget Saver (listings) or Keyword Saver (search terms).","type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80,"isRequired":true,"uniqueKey":"overrides.strategy.id","typeLabel":"string"},"name":{"type":"string","minLength":1,"maxLength":200,"isRequired":true,"uniqueKey":"overrides.strategy.name","typeLabel":"string"},"period":{"type":"string","enum":["all_time","last_12_months","last_3_months","last_30_days"],"isRequired":true,"uniqueKey":"overrides.strategy.period","typeLabel":"enum\u003cstring>"},"action":{"type":"string","enum":["pause","lower_click_cost"],"isRequired":true,"uniqueKey":"overrides.strategy.action","typeLabel":"enum\u003cstring>"},"rule_groups":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80,"isRequired":true,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].id","typeLabel":"string"},"conditions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"factor":{"type":"string","enum":["spend","roas","orders","revenue","clicks","views","ctr"],"isRequired":true,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions.items.[INDEX].factor","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["gt","lt","eq"],"isRequired":true,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions.items.[INDEX].op","typeLabel":"enum\u003cstring>"},"value":{"type":"number","isRequired":true,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions.items.[INDEX].value","typeLabel":"number"},"relative_to":{"type":"string","const":"break_even","uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions.items.[INDEX].relative_to","typeLabel":"string"},"margin_pct":{"type":"number","minimum":0,"maximum":95,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions.items.[INDEX].margin_pct","typeLabel":"number"},"unconverted":{"type":"string","const":"USD","uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions.items.[INDEX].unconverted","typeLabel":"string"}},"required":["factor","op","value"],"additionalProperties":false,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX].conditions","typeLabel":"object[]"}},"required":["id","conditions"],"additionalProperties":false,"uniqueKey":"overrides.strategy.rule_groups.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"overrides.strategy.rule_groups","typeLabel":"object[]"},"description":{"type":"string","maxLength":1000,"uniqueKey":"overrides.strategy.description","typeLabel":"string"},"mode":{"type":"string","enum":["listings","keywords"],"uniqueKey":"overrides.strategy.mode","typeLabel":"enum\u003cstring>"},"exclusions":{"type":"object","properties":{"listing_ids":{"maxItems":5000,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"overrides.strategy.exclusions.listing_ids.items.[INDEX]","typeLabel":"integer"},"isRequired":true,"uniqueKey":"overrides.strategy.exclusions.listing_ids","typeLabel":"integer[]"},"section_ids":{"maxItems":500,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"overrides.strategy.exclusions.section_ids.items.[INDEX]","typeLabel":"integer"},"isRequired":true,"uniqueKey":"overrides.strategy.exclusions.section_ids","typeLabel":"integer[]"},"min_price":{"type":"number","minimum":0,"uniqueKey":"overrides.strategy.exclusions.min_price","typeLabel":"number"},"max_price":{"type":"number","minimum":0,"uniqueKey":"overrides.strategy.exclusions.max_price","typeLabel":"number"},"skip_digital":{"type":"boolean","uniqueKey":"overrides.strategy.exclusions.skip_digital","typeLabel":"boolean"}},"required":["listing_ids","section_ids"],"additionalProperties":false,"uniqueKey":"overrides.strategy.exclusions","typeLabel":"object"},"overrides":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80,"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].id","typeLabel":"string"},"label":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].label","typeLabel":"string"},"match":{"type":"object","properties":{"section_ids":{"maxItems":500,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].match.section_ids.items.[INDEX]","typeLabel":"integer"},"uniqueKey":"overrides.strategy.overrides.items.[INDEX].match.section_ids","typeLabel":"integer[]"},"listing_ids":{"maxItems":5000,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].match.listing_ids.items.[INDEX]","typeLabel":"integer"},"uniqueKey":"overrides.strategy.overrides.items.[INDEX].match.listing_ids","typeLabel":"integer[]"},"is_digital":{"type":"boolean","uniqueKey":"overrides.strategy.overrides.items.[INDEX].match.is_digital","typeLabel":"boolean"},"price_gte":{"type":"number","minimum":0,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].match.price_gte","typeLabel":"number"},"price_lte":{"type":"number","minimum":0,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].match.price_lte","typeLabel":"number"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].match","typeLabel":"object"},"rule_groups":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80,"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].id","typeLabel":"string"},"conditions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"factor":{"type":"string","enum":["spend","roas","orders","revenue","clicks","views","ctr"],"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions.items.[INDEX].factor","typeLabel":"enum\u003cstring>"},"op":{"type":"string","enum":["gt","lt","eq"],"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions.items.[INDEX].op","typeLabel":"enum\u003cstring>"},"value":{"type":"number","isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions.items.[INDEX].value","typeLabel":"number"},"relative_to":{"type":"string","const":"break_even","uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions.items.[INDEX].relative_to","typeLabel":"string"},"margin_pct":{"type":"number","minimum":0,"maximum":95,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions.items.[INDEX].margin_pct","typeLabel":"number"},"unconverted":{"type":"string","const":"USD","uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions.items.[INDEX].unconverted","typeLabel":"string"}},"required":["factor","op","value"],"additionalProperties":false,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX].conditions","typeLabel":"object[]"}},"required":["id","conditions"],"additionalProperties":false,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"overrides.strategy.overrides.items.[INDEX].rule_groups","typeLabel":"object[]"},"action":{"type":"string","enum":["pause","lower_click_cost"],"uniqueKey":"overrides.strategy.overrides.items.[INDEX].action","typeLabel":"enum\u003cstring>"}},"required":["id","label","match","rule_groups"],"additionalProperties":false,"uniqueKey":"overrides.strategy.overrides.items.[INDEX]","typeLabel":"object"},"uniqueKey":"overrides.strategy.overrides","typeLabel":"object[]"},"guardrails":{"type":"object","properties":{"min_clicks":{"type":"integer","minimum":0,"uniqueKey":"overrides.strategy.guardrails.min_clicks","typeLabel":"integer"},"rule_of_three":{"type":"boolean","uniqueKey":"overrides.strategy.guardrails.rule_of_three","typeLabel":"boolean"},"grace_days":{"type":"integer","minimum":0,"uniqueKey":"overrides.strategy.guardrails.grace_days","typeLabel":"integer"},"max_actions_per_run":{"type":"integer","minimum":1,"uniqueKey":"overrides.strategy.guardrails.max_actions_per_run","typeLabel":"integer"},"keyword_listing_cap":{"type":"integer","minimum":1,"uniqueKey":"overrides.strategy.guardrails.keyword_listing_cap","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"overrides.strategy.guardrails","typeLabel":"object"},"is_custom":{"type":"boolean","uniqueKey":"overrides.strategy.is_custom","typeLabel":"boolean"},"model_version":{"type":"integer","exclusiveMinimum":0,"uniqueKey":"overrides.strategy.model_version","typeLabel":"integer"}},"required":["id","name","period","action","rule_groups"],"additionalProperties":false,"uniqueKey":"overrides.strategy","typeLabel":"object"},"max_actions":{"description":"The most actions this run may plan (1-240). Default: the strategy's own cap (else 50), at most what one apply sends (120 listings, 7 search terms; `max_actions_capped` says when that lowered it). Above that the preview plans them, but its apply is refused.","type":"integer","minimum":1,"maximum":240,"uniqueKey":"overrides.max_actions","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"overrides","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"shop_id":"22841907","target":"listings"},"examples":{"Example":{"title":"Example","value":{"shop_id":"22841907","target":"listings"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"18ef1919-e396-4b34-82a5-676e85b76814":{"description":"OK","headers":{"Request-Id":{"description":"`req_` + ULID; quote it when reporting a problem.","schema":{"type":"string"}},"Alura-Credits-Cost":{"description":"API credits this call cost.","schema":{"type":"integer"}},"Alura-Credits-Remaining":{"description":"API credits left in the workspace's monthly allowance, counting calls still in flight. Absent when it cannot be read right now.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["object","id","status","shop_id","target","created_at","expires_at","basis","strategy","period","margin_pct","break_even_roas","actions","held_back","capped","max_actions_capped","capped_count","projected_monthly_spend_freed","spend_unknown_count","coverage","notices","plan_hash","fetched_at","source"],"properties":{"object":{"type":"string","const":"workspace.ads_optimize_run","isRequired":true,"uniqueKey":"oneOf.0.object","typeLabel":"string"},"id":{"type":"string","description":"The run ID: `GET /v1/workspace/ads/optimize/runs/{id}` reads it while it is kept.","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string"},"status":{"type":"string","const":"preview","description":"`preview`: planned only; nothing was changed on Etsy.","isRequired":true,"uniqueKey":"oneOf.0.status","typeLabel":"string"},"shop_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.shop_id","typeLabel":"string"},"target":{"type":"string","enum":["listings","search_terms"],"isRequired":true,"uniqueKey":"oneOf.0.target","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","description":"ISO 8601, UTC.","isRequired":true,"uniqueKey":"oneOf.0.created_at","typeLabel":"string"},"expires_at":{"type":"string","description":"When the preview is dropped: after it, its GET is 410 `optimize_run_expired`.","isRequired":true,"uniqueKey":"oneOf.0.expires_at","typeLabel":"string"},"basis":{"type":"string","enum":["explicit","saved","default"],"description":"Where the strategy came from: `explicit` (`overrides.strategy`), `saved` (the optimizer settings), `default` (Budget Saver, or Keyword Saver for search terms: no settings saved).","isRequired":true,"uniqueKey":"oneOf.0.basis","typeLabel":"enum\u003cstring>"},"strategy":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"oneOf.0.strategy.additionalProperties","typeLabel":"any"},"description":"The strategy the plan used (the shape of a strategy in the optimizer settings), with the run's period and action cap.","isRequired":true,"uniqueKey":"oneOf.0.strategy","typeLabel":"object"},"period":{"type":"object","properties":{"from":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.period.from","typeLabel":"string"},"to":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.period.to","typeLabel":"string"}},"required":["from","to"],"additionalProperties":false,"description":"The days judged, on Etsy's calendar (US Eastern); for search terms, the window their numbers cover (Etsy's rolling last 31 days and today).","isRequired":true,"uniqueKey":"oneOf.0.period","typeLabel":"object"},"margin_pct":{"oneOf":[{"description":"The shop margin the plan used; null when none is saved or given.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.margin_pct.oneOf.0","typeLabel":"number"},{"description":"The shop margin the plan used; null when none is saved or given.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.margin_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.margin_pct","typeLabel":"number | null"},"break_even_roas":{"oneOf":[{"description":"The shop margin's break-even ROAS: below it, ads lose money at this margin. A floor: a listing's own can be higher. null without a margin, when it is unknown, or when no ROAS breaks even at this margin.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.break_even_roas.oneOf.0","typeLabel":"number"},{"description":"The shop margin's break-even ROAS: below it, ads lose money at this margin. A floor: a listing's own can be higher. null without a margin, when it is unknown, or when no ROAS breaks even at this margin.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.break_even_roas.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.break_even_roas","typeLabel":"number | null"},"actions":{"type":"array","items":{"type":"object","properties":{"listing_id":{"type":"string","description":"The Etsy listing ID, as a string.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].listing_id","typeLabel":"string"},"title":{"type":"string","description":"The listing's title.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].title","typeLabel":"string"},"action":{"type":"string","enum":["pause","lower_click_cost","mark_irrelevant"],"description":"`pause`: stop advertising the listing; `lower_click_cost`: move it to the Lower click cost strategy; `mark_irrelevant`: turn the search term `query` off for this listing.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].action","typeLabel":"enum\u003cstring>"},"query":{"oneOf":[{"description":"The search term a `mark_irrelevant` action turns off (as Etsy names it); null otherwise.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].query.oneOf.0","typeLabel":"string"},{"description":"The search term a `mark_irrelevant` action turns off (as Etsy names it); null otherwise.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].query.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].query","typeLabel":"string | null"},"reason":{"type":"string","description":"Why the rules matched, in words.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].reason","typeLabel":"string"},"override":{"oneOf":[{"description":"The label of the strategy's override whose rules matched; null for the base rules.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].override.oneOf.0","typeLabel":"string"},{"description":"The label of the strategy's override whose rules matched; null for the base rules.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].override.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].override","typeLabel":"string | null"},"prev_strategy":{"oneOf":[{"type":"string","description":"The listing's strategy now (what an undo restores); null when Etsy did not say.","enum":["efficient","lower_click_cost","greater_visibility"],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].prev_strategy.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The listing's strategy now (what an undo restores); null when Etsy did not say.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].prev_strategy.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].prev_strategy","typeLabel":"enum\u003cstring> | null"},"metrics":{"type":"object","properties":{"impressions":{"oneOf":[{"type":"integer","description":"Times the ads were shown; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.impressions.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Times the ads were shown; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.impressions.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.impressions","typeLabel":"integer | null"},"clicks":{"oneOf":[{"type":"integer","description":"Clicks on the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.clicks.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Clicks on the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.clicks.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.clicks","typeLabel":"integer | null"},"click_rate":{"oneOf":[{"description":"Clicks ÷ impressions (0.0162 for 1.62%), from the counts; null when there were no impressions or a count is unknown.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.click_rate.oneOf.0","typeLabel":"number"},{"description":"Clicks ÷ impressions (0.0162 for 1.62%), from the counts; null when there were no impressions or a count is unknown.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.click_rate.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.click_rate","typeLabel":"number | null"},"spend":{"oneOf":[{"type":"object","description":"What the ads cost, in US dollars; null when Etsy did not give it.","required":["amount","currency"],"properties":{"amount":{"type":"string","description":"Decimal string with the currency's decimals.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.spend.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","description":"ISO 4217. Etsy Ads money (budget, spend, revenue) is `USD` for every shop, whatever the shop's own currency; a listing's price is in the currency Etsy names for it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.spend.oneOf.0.currency","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.spend.oneOf.0","typeLabel":"object"},{"type":"null","description":"What the ads cost, in US dollars; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.spend.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.spend","typeLabel":"object | null"},"orders":{"oneOf":[{"type":"integer","description":"Orders Etsy attributes to the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.orders.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Orders Etsy attributes to the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.orders.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.orders","typeLabel":"integer | null"},"revenue":{"oneOf":[{"type":"object","description":"Revenue from those orders, in US dollars; null when Etsy did not give it.","required":["amount","currency"],"properties":{"amount":{"type":"string","description":"Decimal string with the currency's decimals.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.revenue.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","description":"ISO 4217. Etsy Ads money (budget, spend, revenue) is `USD` for every shop, whatever the shop's own currency; a listing's price is in the currency Etsy names for it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.revenue.oneOf.0.currency","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.revenue.oneOf.0","typeLabel":"object"},{"type":"null","description":"Revenue from those orders, in US dollars; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.revenue.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.revenue","typeLabel":"object | null"},"roas":{"oneOf":[{"description":"Return on ad spend: revenue ÷ spend; null when nothing was spent or either is unknown.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.roas.oneOf.0","typeLabel":"number"},{"description":"Return on ad spend: revenue ÷ spend; null when nothing was spent or either is unknown.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.roas.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics.roas","typeLabel":"number | null"}},"required":["impressions","clicks","click_rate","spend","orders","revenue","roas"],"additionalProperties":false,"description":"The listing over the period (for `mark_irrelevant`: the search term on this listing).","isRequired":true,"uniqueKey":"oneOf.0.actions.items.[INDEX].metrics","typeLabel":"object"}},"required":["listing_id","title","action","query","reason","override","prev_strategy","metrics"],"additionalProperties":false,"uniqueKey":"oneOf.0.actions.items.[INDEX]","typeLabel":"object"},"description":"The planned changes, highest spend first.","isRequired":true,"uniqueKey":"oneOf.0.actions","typeLabel":"object[]"},"held_back":{"default":[],"description":"What the rules matched but a guardrail held back (codes of kind `guardrail`, except `run_cap`: `capped_count` counts those), highest spend first, at most 20 (the `held_back` notice counts them all). Nothing here is changed by an apply; a seller who wants them acted on changes the strategy's guardrails.","type":"array","items":{"type":"object","properties":{"listing_id":{"type":"string","description":"The Etsy listing ID, as a string.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].listing_id","typeLabel":"string"},"title":{"type":"string","description":"The listing's title.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].title","typeLabel":"string"},"query":{"oneOf":[{"description":"For `search_terms`: the search term; null for listings.","type":"string","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].query.oneOf.0","typeLabel":"string"},{"description":"For `search_terms`: the search term; null for listings.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].query.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].query","typeLabel":"string | null"},"code":{"type":"string","enum":["min_clicks","rule_of_three","grace_period","run_cap","already_lower_click_cost","query_too_long","metric_unknown","conversion_rate_unknown","protection_unknown","unexpected_data"],"description":"Why it got no action. Guardrails (the rules matched; a guardrail held it back): `min_clicks` (fewer clicks than the strategy's floor), `rule_of_three` (no sale yet, but too few clicks for that to count as evidence at the shop's conversion rate), `grace_period` (newer than the strategy's grace period), `run_cap` (past the run's action cap). Rules (the rules matched; nothing to change): `already_lower_click_cost`, `query_too_long`. Data missing (not judged): `metric_unknown` (Etsy did not report a number the rules need), `conversion_rate_unknown`, `protection_unknown` (price, digital status, section or age could not be checked), `unexpected_data`. New codes may be added.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","description":"Why it was held back, in words.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].reason","typeLabel":"string"},"clicks_needed":{"oneOf":[{"type":"integer","description":"For `rule_of_three`: the clicks with no sale at which the rules would act on it; null otherwise.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].clicks_needed.oneOf.0","typeLabel":"integer"},{"type":"null","description":"For `rule_of_three`: the clicks with no sale at which the rules would act on it; null otherwise.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].clicks_needed.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].clicks_needed","typeLabel":"integer | null"},"metrics":{"type":"object","properties":{"impressions":{"oneOf":[{"type":"integer","description":"Times the ads were shown; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.impressions.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Times the ads were shown; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.impressions.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.impressions","typeLabel":"integer | null"},"clicks":{"oneOf":[{"type":"integer","description":"Clicks on the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.clicks.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Clicks on the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.clicks.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.clicks","typeLabel":"integer | null"},"click_rate":{"oneOf":[{"description":"Clicks ÷ impressions (0.0162 for 1.62%), from the counts; null when there were no impressions or a count is unknown.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.click_rate.oneOf.0","typeLabel":"number"},{"description":"Clicks ÷ impressions (0.0162 for 1.62%), from the counts; null when there were no impressions or a count is unknown.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.click_rate.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.click_rate","typeLabel":"number | null"},"spend":{"oneOf":[{"type":"object","description":"What the ads cost, in US dollars; null when Etsy did not give it.","required":["amount","currency"],"properties":{"amount":{"type":"string","description":"Decimal string with the currency's decimals.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.spend.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","description":"ISO 4217. Etsy Ads money (budget, spend, revenue) is `USD` for every shop, whatever the shop's own currency; a listing's price is in the currency Etsy names for it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.spend.oneOf.0.currency","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.spend.oneOf.0","typeLabel":"object"},{"type":"null","description":"What the ads cost, in US dollars; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.spend.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.spend","typeLabel":"object | null"},"orders":{"oneOf":[{"type":"integer","description":"Orders Etsy attributes to the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.orders.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Orders Etsy attributes to the ads; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.orders.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.orders","typeLabel":"integer | null"},"revenue":{"oneOf":[{"type":"object","description":"Revenue from those orders, in US dollars; null when Etsy did not give it.","required":["amount","currency"],"properties":{"amount":{"type":"string","description":"Decimal string with the currency's decimals.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.revenue.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","description":"ISO 4217. Etsy Ads money (budget, spend, revenue) is `USD` for every shop, whatever the shop's own currency; a listing's price is in the currency Etsy names for it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.revenue.oneOf.0.currency","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.revenue.oneOf.0","typeLabel":"object"},{"type":"null","description":"Revenue from those orders, in US dollars; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.revenue.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.revenue","typeLabel":"object | null"},"roas":{"oneOf":[{"description":"Return on ad spend: revenue ÷ spend; null when nothing was spent or either is unknown.","type":"number","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.roas.oneOf.0","typeLabel":"number"},{"description":"Return on ad spend: revenue ÷ spend; null when nothing was spent or either is unknown.","type":"null","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.roas.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics.roas","typeLabel":"number | null"}},"required":["impressions","clicks","click_rate","spend","orders","revenue","roas"],"additionalProperties":false,"description":"The listing over the period (for search terms: the term on this listing).","isRequired":true,"uniqueKey":"oneOf.0.held_back.items.[INDEX].metrics","typeLabel":"object"}},"required":["listing_id","title","query","code","reason","clicks_needed","metrics"],"additionalProperties":false,"uniqueKey":"oneOf.0.held_back.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.held_back","typeLabel":"object[]"},"capped":{"type":"boolean","description":"true when more listings matched than the action cap: the highest-spend ones were kept.","isRequired":true,"uniqueKey":"oneOf.0.capped","typeLabel":"boolean"},"max_actions_capped":{"type":"boolean","description":"true when the strategy's own action cap (or the default) was above what one apply sends (120 listings, 7 search terms), so this preview planned at most that; send `overrides.max_actions` to plan more (preview only: an apply sends no more). The saved settings are unchanged.","isRequired":true,"uniqueKey":"oneOf.0.max_actions_capped","typeLabel":"boolean"},"capped_count":{"type":"integer","description":"Listings (or search terms) that matched beyond the cap (0 when not capped).","isRequired":true,"uniqueKey":"oneOf.0.capped_count","typeLabel":"integer"},"projected_monthly_spend_freed":{"oneOf":[{"type":"object","description":"The paused listings' (or turned-off terms') spend over the period, as 30 days: ad spend freed, not guaranteed cash saved (the daily budget is shared, so Etsy may spend it on other listings). Only spend Etsy reported is added: with `spend_unknown_count` above 0 this is a lower bound (at least this much). In US dollars (Etsy Ads money for every shop); null when it is unknown.","required":["amount","currency"],"properties":{"amount":{"type":"string","description":"Decimal string with the currency's decimals.","isRequired":true,"uniqueKey":"oneOf.0.projected_monthly_spend_freed.oneOf.0.amount","typeLabel":"string"},"currency":{"type":"string","description":"ISO 4217. Etsy Ads money (budget, spend, revenue) is `USD` for every shop, whatever the shop's own currency; a listing's price is in the currency Etsy names for it.","isRequired":true,"uniqueKey":"oneOf.0.projected_monthly_spend_freed.oneOf.0.currency","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.projected_monthly_spend_freed.oneOf.0","typeLabel":"object"},{"type":"null","description":"The paused listings' (or turned-off terms') spend over the period, as 30 days: ad spend freed, not guaranteed cash saved (the daily budget is shared, so Etsy may spend it on other listings). Only spend Etsy reported is added: with `spend_unknown_count` above 0 this is a lower bound (at least this much). In US dollars (Etsy Ads money for every shop); null when it is unknown.","isRequired":true,"uniqueKey":"oneOf.0.projected_monthly_spend_freed.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.projected_monthly_spend_freed","typeLabel":"object | null"},"spend_unknown_count":{"type":"integer","description":"Paused listings whose spend Etsy didn't report: left out of `projected_monthly_spend_freed`, never added as 0, so above 0 that amount is \"at least\".","isRequired":true,"uniqueKey":"oneOf.0.spend_unknown_count","typeLabel":"integer"},"coverage":{"type":"object","properties":{"listings_total":{"oneOf":[{"type":"integer","description":"Etsy's count of the shop's advertised listings; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.coverage.listings_total.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Etsy's count of the shop's advertised listings; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.0.coverage.listings_total.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.coverage.listings_total","typeLabel":"integer | null"},"listings_scanned":{"type":"integer","description":"Listings read and judged (after removing repeats).","isRequired":true,"uniqueKey":"oneOf.0.coverage.listings_scanned","typeLabel":"integer"},"pages_read":{"type":"integer","isRequired":true,"uniqueKey":"oneOf.0.coverage.pages_read","typeLabel":"integer"},"complete":{"type":"boolean","description":"true when every listing that could match was read; false when the scan stopped at its page cap (notice `scan_truncated`): the plan covers part of the shop.","isRequired":true,"uniqueKey":"oneOf.0.coverage.complete","typeLabel":"boolean"},"stopped_at_spend_floor":{"type":"boolean","description":"true when the scan stopped early because no remaining listing could match any rule (the plan is still whole).","isRequired":true,"uniqueKey":"oneOf.0.coverage.stopped_at_spend_floor","typeLabel":"boolean"},"eligible":{"type":"integer","description":"Scanned listings no exclusion left out.","isRequired":true,"uniqueKey":"oneOf.0.coverage.eligible","typeLabel":"integer"},"excluded":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.coverage.excluded.items.[INDEX].reason","typeLabel":"string"},"count":{"type":"integer","isRequired":true,"uniqueKey":"oneOf.0.coverage.excluded.items.[INDEX].count","typeLabel":"integer"}},"required":["reason","count"],"additionalProperties":false,"uniqueKey":"oneOf.0.coverage.excluded.items.[INDEX]","typeLabel":"object"},"description":"Listings left out by an exclusion, by reason.","isRequired":true,"uniqueKey":"oneOf.0.coverage.excluded","typeLabel":"object[]"},"skipped":{"type":"integer","description":"Listings (or search terms) the rules matched but did not act on, and those not judged because data was missing: `skipped_by_reason` counts them by code. A listing no rule matches is not skipped.","isRequired":true,"uniqueKey":"oneOf.0.coverage.skipped","typeLabel":"integer"},"skipped_by_reason":{"default":[],"description":"`skipped` by code, most first.","type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["min_clicks","rule_of_three","grace_period","run_cap","already_lower_click_cost","query_too_long","metric_unknown","conversion_rate_unknown","protection_unknown","unexpected_data"],"description":"Why it got no action. Guardrails (the rules matched; a guardrail held it back): `min_clicks` (fewer clicks than the strategy's floor), `rule_of_three` (no sale yet, but too few clicks for that to count as evidence at the shop's conversion rate), `grace_period` (newer than the strategy's grace period), `run_cap` (past the run's action cap). Rules (the rules matched; nothing to change): `already_lower_click_cost`, `query_too_long`. Data missing (not judged): `metric_unknown` (Etsy did not report a number the rules need), `conversion_rate_unknown`, `protection_unknown` (price, digital status, section or age could not be checked), `unexpected_data`. New codes may be added.","isRequired":true,"uniqueKey":"oneOf.0.coverage.skipped_by_reason.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"kind":{"type":"string","enum":["guardrail","rule","data_missing"],"description":"`guardrail`: the rules matched and a guardrail held it back; `rule`: the rules matched, nothing to change; `data_missing`: not judged.","isRequired":true,"uniqueKey":"oneOf.0.coverage.skipped_by_reason.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"count":{"type":"integer","isRequired":true,"uniqueKey":"oneOf.0.coverage.skipped_by_reason.items.[INDEX].count","typeLabel":"integer"}},"required":["code","kind","count"],"additionalProperties":false,"uniqueKey":"oneOf.0.coverage.skipped_by_reason.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.coverage.skipped_by_reason","typeLabel":"object[]"},"unjudgeable":{"type":"integer","description":"Listings not judged at all because a number or a protection was unknown (never read as zero).","isRequired":true,"uniqueKey":"oneOf.0.coverage.unjudgeable","typeLabel":"integer"},"unreadable":{"type":"integer","description":"Rows Etsy sent that Alura could not read: never judged.","isRequired":true,"uniqueKey":"oneOf.0.coverage.unreadable","typeLabel":"integer"},"listing_ids_not_scanned":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.coverage.listing_ids_not_scanned.items.[INDEX]","typeLabel":"string"},"description":"Of `listing_ids`, those the scan did not reach (not advertised, unable to match the rules, or past the page cap); for search terms, those whose terms were not read.","isRequired":true,"uniqueKey":"oneOf.0.coverage.listing_ids_not_scanned","typeLabel":"string[]"},"search_terms":{"oneOf":[{"type":"object","description":"For `search_terms`: how the candidate listings and their terms were read; null for `listings`.","required":["candidate_listings","listings_read","failed_reads","below_spend_floor","unjudgeable_listings","terms_judged","already_off","unreadable_terms","too_long"],"properties":{"candidate_listings":{"type":"integer","description":"Listings that could hold a matching term.","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.candidate_listings","typeLabel":"integer"},"listings_read":{"type":"integer","description":"Of them, listings whose search terms Etsy served.","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.listings_read","typeLabel":"integer"},"failed_reads":{"type":"integer","description":"Of them, listings whose terms Etsy did not serve: never judged (notice `search_terms_unread`).","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.failed_reads","typeLabel":"integer"},"below_spend_floor":{"type":"integer","description":"Listings none of whose terms could match the rules: not read.","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.below_spend_floor","typeLabel":"integer"},"unjudgeable_listings":{"type":"integer","description":"Listings not read because a protection (age, digital, section) was unknown.","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.unjudgeable_listings","typeLabel":"integer"},"terms_judged":{"type":"integer","description":"Search terms judged (already-off ones excluded).","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.terms_judged","typeLabel":"integer"},"already_off":{"type":"integer","description":"Search terms Etsy already shows off: never judged again.","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.already_off","typeLabel":"integer"},"unreadable_terms":{"type":"integer","description":"Search term rows Alura could not read: never judged.","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.unreadable_terms","typeLabel":"integer"},"too_long":{"type":"integer","description":"Matching search terms longer than 200 characters, which Etsy's toggle can't take: skipped (notice `terms_too_long`).","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0.too_long","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.0","typeLabel":"object"},{"type":"null","description":"For `search_terms`: how the candidate listings and their terms were read; null for `listings`.","isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.coverage.search_terms","typeLabel":"object | null"}},"required":["listings_total","listings_scanned","pages_read","complete","stopped_at_spend_floor","eligible","excluded","skipped","skipped_by_reason","unjudgeable","unreadable","listing_ids_not_scanned","search_terms"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.coverage","typeLabel":"object"},"notices":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"`held_back` (listings or search terms the rules matched were held back by a guardrail: listed in `held_back`), `scan_truncated` (the scan stopped at its page cap, or, for search terms, more listings could hold a matching term than one preview reads: the plan covers part of the shop), `no_ads_campaign`, `conversion_rate_unknown` (zero-sale listings were left unjudged), `fees_unknown` (break-even is unknown), `sections_unavailable`, `digital_unavailable`, `ages_unavailable` (listings a rule needs them for were skipped), `rows_unreadable`; for search terms `search_terms_unread` (some listings' terms were not served: not judged), `terms_unreadable`, `terms_too_long`, `search_terms_window` (Etsy reports terms for its last 31 days only). New codes may be added.","isRequired":true,"uniqueKey":"oneOf.0.notices.items.[INDEX].code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.notices.items.[INDEX].detail","typeLabel":"string"}},"required":["code","detail"],"additionalProperties":false,"uniqueKey":"oneOf.0.notices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.notices","typeLabel":"object[]"},"plan_hash":{"type":"string","description":"The plan's hash (its actions and everything they were decided on). Send it with the apply (`plan_hash`): the apply is refused, nothing sent, unless it is still this plan.","isRequired":true,"uniqueKey":"oneOf.0.plan_hash","typeLabel":"string"},"fetched_at":{"oneOf":[{"type":"string","description":"When Alura read the scan from Etsy; null when nothing was read.","isRequired":true,"uniqueKey":"oneOf.0.fetched_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When Alura read the scan from Etsy; null when nothing was read.","isRequired":true,"uniqueKey":"oneOf.0.fetched_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.fetched_at","typeLabel":"string | null"},"source":{"type":"string","const":"live","isRequired":true,"uniqueKey":"oneOf.0.source","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["object","id","status","shop_id","target","created_at","expires_at","continuation","scan","fetched_at","source"],"properties":{"object":{"type":"string","const":"workspace.ads_optimize_run","isRequired":true,"uniqueKey":"oneOf.1.object","typeLabel":"string"},"id":{"type":"string","description":"The run ID: the preview it becomes keeps it.","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string"},"status":{"type":"string","const":"scanning","description":"`scanning`: the shop is still being read and nothing is planned yet. Send `continuation` back to read more.","isRequired":true,"uniqueKey":"oneOf.1.status","typeLabel":"string"},"shop_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.shop_id","typeLabel":"string"},"target":{"type":"string","enum":["listings","search_terms"],"isRequired":true,"uniqueKey":"oneOf.1.target","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","description":"ISO 8601, UTC.","isRequired":true,"uniqueKey":"oneOf.1.created_at","typeLabel":"string"},"expires_at":{"type":"string","description":"When the scan is dropped: one not finished by then is 410 `optimize_run_expired` (preview again).","isRequired":true,"uniqueKey":"oneOf.1.expires_at","typeLabel":"string"},"continuation":{"type":"string","description":"Send it back as `continuation` (alone) to read more: each request reads what the shop's minute of live Etsy reads allows.","isRequired":true,"uniqueKey":"oneOf.1.continuation","typeLabel":"string"},"scan":{"type":"object","properties":{"listings_read":{"type":"integer","description":"Advertised listings read so far (after removing repeats).","isRequired":true,"uniqueKey":"oneOf.1.scan.listings_read","typeLabel":"integer"},"listings_total":{"oneOf":[{"type":"integer","description":"Etsy's count of the shop's advertised listings; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.1.scan.listings_total.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Etsy's count of the shop's advertised listings; null when Etsy did not give it.","isRequired":true,"uniqueKey":"oneOf.1.scan.listings_total.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.scan.listings_total","typeLabel":"integer | null"},"pages_read":{"type":"integer","isRequired":true,"uniqueKey":"oneOf.1.scan.pages_read","typeLabel":"integer"},"search_terms":{"oneOf":[{"type":"object","description":"For `search_terms`, once the listings to read the terms of are known; null otherwise.","required":["listings_read","listings_total"],"properties":{"listings_read":{"type":"integer","description":"Listings whose search terms were read so far.","isRequired":true,"uniqueKey":"oneOf.1.scan.search_terms.oneOf.0.listings_read","typeLabel":"integer"},"listings_total":{"type":"integer","description":"Listings whose search terms the preview reads.","isRequired":true,"uniqueKey":"oneOf.1.scan.search_terms.oneOf.0.listings_total","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.scan.search_terms.oneOf.0","typeLabel":"object"},{"type":"null","description":"For `search_terms`, once the listings to read the terms of are known; null otherwise.","isRequired":true,"uniqueKey":"oneOf.1.scan.search_terms.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.scan.search_terms","typeLabel":"object | null"},"retry_after_s":{"type":"integer","description":"Seconds to wait before sending `continuation`: the shop's live Etsy reads of the last minute are used up until then. Sent earlier, it is 429 `live_rate_limited` (nothing read, free).","isRequired":true,"uniqueKey":"oneOf.1.scan.retry_after_s","typeLabel":"integer"}},"required":["listings_read","listings_total","pages_read","search_terms","retry_after_s"],"additionalProperties":false,"description":"How far the scan got.","isRequired":true,"uniqueKey":"oneOf.1.scan","typeLabel":"object"},"fetched_at":{"oneOf":[{"type":"string","description":"When Alura first read the scan from Etsy; null when nothing was read.","isRequired":true,"uniqueKey":"oneOf.1.fetched_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When Alura first read the scan from Etsy; null when nothing was read.","isRequired":true,"uniqueKey":"oneOf.1.fetched_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.fetched_at","typeLabel":"string | null"},"source":{"type":"string","const":"live","isRequired":true,"uniqueKey":"oneOf.1.source","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"example":{"object":"workspace.ads_optimize_run","id":"0b9f0e3a-6d2c-4f0e-9a51-3c2d8e7f1a42","status":"preview","shop_id":"22841907","target":"listings","created_at":"2026-10-17T12:00:00.000Z","expires_at":"2026-10-17T12:30:00.000Z","basis":"saved","strategy":{"id":"budget-saver","name":"Budget Saver","description":"Pause only listings that spend but never sell. No margin needed.","period":"all_time","action":"pause","rule_groups":[{"id":"budget-saver-1","conditions":[{"factor":"spend","op":"gt","value":10},{"factor":"orders","op":"eq","value":0}]}],"guardrails":{"min_clicks":10,"rule_of_three":true,"max_actions_per_run":50},"model_version":1},"period":{"from":"2024-10-18","to":"2026-10-17"},"margin_pct":null,"break_even_roas":null,"actions":[{"listing_id":"1834720563","title":"Hand-thrown ceramic mug","action":"pause","query":null,"reason":"Spend $42.50 > $10.00 and Orders 0 = 0","override":null,"prev_strategy":"efficient","metrics":{"impressions":2140,"clicks":31,"click_rate":0.0145,"spend":{"amount":"42.50","currency":"USD"},"orders":0,"revenue":{"amount":"0.00","currency":"USD"},"roas":0}}],"held_back":[{"listing_id":"1834720564","title":"Speckled ceramic bowl","query":null,"code":"rule_of_three","reason":"Not enough evidence yet: 18 clicks with no sale.","clicks_needed":143,"metrics":{"impressions":1210,"clicks":18,"click_rate":0.0149,"spend":{"amount":"12.00","currency":"USD"},"orders":0,"revenue":{"amount":"0.00","currency":"USD"},"roas":0}}],"capped":false,"max_actions_capped":false,"capped_count":0,"projected_monthly_spend_freed":{"amount":"1.75","currency":"USD"},"spend_unknown_count":0,"coverage":{"listings_total":3,"listings_scanned":3,"pages_read":1,"complete":true,"stopped_at_spend_floor":false,"eligible":3,"excluded":[{"reason":"Pinned — always advertise","count":1}],"skipped":1,"skipped_by_reason":[{"code":"rule_of_three","kind":"guardrail","count":1}],"unjudgeable":0,"unreadable":0,"listing_ids_not_scanned":[],"search_terms":null},"notices":[{"code":"held_back","detail":"1 listing matched the rules but was held back by a guardrail (rule of three: 1), with $12.00 of ad spend over the period. `held_back` lists it with the reason."}],"plan_hash":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","fetched_at":"2026-10-17T12:00:00.000Z","source":"live"},"examples":{"Example":{"title":"Example","value":{"object":"workspace.ads_optimize_run","id":"0b9f0e3a-6d2c-4f0e-9a51-3c2d8e7f1a42","status":"preview","shop_id":"22841907","target":"listings","created_at":"2026-10-17T12:00:00.000Z","expires_at":"2026-10-17T12:30:00.000Z","basis":"saved","strategy":{"id":"budget-saver","name":"Budget Saver","description":"Pause only listings that spend but never sell. No margin needed.","period":"all_time","action":"pause","rule_groups":[{"id":"budget-saver-1","conditions":[{"factor":"spend","op":"gt","value":10},{"factor":"orders","op":"eq","value":0}]}],"guardrails":{"min_clicks":10,"rule_of_three":true,"max_actions_per_run":50},"model_version":1},"period":{"from":"2024-10-18","to":"2026-10-17"},"margin_pct":null,"break_even_roas":null,"actions":[{"listing_id":"1834720563","title":"Hand-thrown ceramic mug","action":"pause","query":null,"reason":"Spend $42.50 > $10.00 and Orders 0 = 0","override":null,"prev_strategy":"efficient","metrics":{"impressions":2140,"clicks":31,"click_rate":0.0145,"spend":{"amount":"42.50","currency":"USD"},"orders":0,"revenue":{"amount":"0.00","currency":"USD"},"roas":0}}],"held_back":[{"listing_id":"1834720564","title":"Speckled ceramic bowl","query":null,"code":"rule_of_three","reason":"Not enough evidence yet: 18 clicks with no sale.","clicks_needed":143,"metrics":{"impressions":1210,"clicks":18,"click_rate":0.0149,"spend":{"amount":"12.00","currency":"USD"},"orders":0,"revenue":{"amount":"0.00","currency":"USD"},"roas":0}}],"capped":false,"max_actions_capped":false,"capped_count":0,"projected_monthly_spend_freed":{"amount":"1.75","currency":"USD"},"spend_unknown_count":0,"coverage":{"listings_total":3,"listings_scanned":3,"pages_read":1,"complete":true,"stopped_at_spend_floor":false,"eligible":3,"excluded":[{"reason":"Pinned — always advertise","count":1}],"skipped":1,"skipped_by_reason":[{"code":"rule_of_three","kind":"guardrail","count":1}],"unjudgeable":0,"unreadable":0,"listing_ids_not_scanned":[],"search_terms":null},"notices":[{"code":"held_back","detail":"1 listing matched the rules but was held back by a guardrail (rule of three: 1), with $12.00 of ad spend over the period. `held_back` lists it with the reason."}],"plan_hash":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","fetched_at":"2026-10-17T12:00:00.000Z","source":"live"}}},"exampleType":"examples"}},"exampleType":"examples"},"6a95de6d-6d83-467e-b640-f561db38cc02":{"description":"Error","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"}},"required":["type","title","status","code","detail","suggestion","retryable","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://docs.alura.io/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"Invalid request","suggestion":"Fix the request as the detail says, then send it again.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.alura.io/errors/invalid_request","title":"Invalid request","status":400,"code":"invalid_request","detail":"Invalid request","suggestion":"Fix the request as the detail says, then send it again.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"}}},"exampleType":"examples"}},"exampleType":"examples"},"dba3f9fa-25c0-4809-b4be-1fa39dc72533":{"description":"Error","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"}},"required":["type","title","status","code","detail","suggestion","retryable","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://docs.alura.io/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Unauthorized","suggestion":"Send a valid API key as `Authorization: Bearer alura_sk_...`.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.alura.io/errors/unauthorized","title":"Unauthorized","status":401,"code":"unauthorized","detail":"Unauthorized","suggestion":"Send a valid API key as `Authorization: Bearer alura_sk_...`.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"}}},"exampleType":"examples"}},"exampleType":"examples"},"907bc9c3-c527-43da-835d-9fa3043b7d8d":{"description":"Error","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"}},"required":["type","title","status","code","detail","suggestion","retryable","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://docs.alura.io/errors/credits_exhausted","title":"API credits exhausted","status":402,"code":"credits_exhausted","detail":"API credits exhausted","suggestion":"Upgrade the plan or wait for the monthly reset.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.alura.io/errors/credits_exhausted","title":"API credits exhausted","status":402,"code":"credits_exhausted","detail":"API credits exhausted","suggestion":"Upgrade the plan or wait for the monthly reset.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"}}},"exampleType":"examples"}},"exampleType":"examples"},"03540bcd-b525-4f21-a8f6-878a4101ba0b":{"description":"Error","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"}},"required":["type","title","status","code","detail","suggestion","retryable","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://docs.alura.io/errors/plan_required","title":"Plan required","status":403,"code":"plan_required","detail":"Plan required","suggestion":"Upgrade the workspace plan to use this operation.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.alura.io/errors/plan_required","title":"Plan required","status":403,"code":"plan_required","detail":"Plan required","suggestion":"Upgrade the workspace plan to use this operation.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"}}},"exampleType":"examples"}},"exampleType":"examples"},"510df408-dad6-4cbf-bc69-88d6a97523e9":{"description":"Error. `not_found` carries `shop_id`.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status","code","detail","suggestion","retryable","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"},"shop_id":{"description":"The Etsy shop ID Alura read for.","type":"string","uniqueKey":"shop_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","detail":"\u003cstring>","suggestion":"\u003cstring>","retryable":true,"request_id":"\u003cstring>","upgrade_url":"\u003cstring>","credits_needed":123,"credits_remaining":123,"resets_at":"2023-11-07T05:31:56Z","shop_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b2f6bcf6-b3c4-4abb-a46b-e3da40e9099f":{"description":"Error","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"}},"required":["type","title","status","code","detail","suggestion","retryable","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://docs.alura.io/errors/method_not_allowed","title":"Method not allowed","status":405,"code":"method_not_allowed","detail":"Method not allowed","suggestion":"Use one of the methods in the Allow header.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.alura.io/errors/method_not_allowed","title":"Method not allowed","status":405,"code":"method_not_allowed","detail":"Method not allowed","suggestion":"Use one of the methods in the Allow header.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"}}},"exampleType":"examples"}},"exampleType":"examples"},"4737bedb-33a4-496d-85f4-04856ffb94eb":{"description":"Error. `etsy_not_logged_in` carries `shop_id`. `etsy_shop_mismatch` carries `shop_id`, `state`, `holder`, `last_served_at`, `action`. `holder_offline` carries `shop_id`, `state`, `holder`, `last_served_at`, `action`. `login_expired` carries `shop_id`, `state`, `holder`, `last_served_at`, `action`. `never_connected` carries `shop_id`, `state`, `holder`, `last_served_at`, `action`. `saved_shops_off` carries `shop_id`, `state`, `holder`, `last_served_at`, `action`. `etsy_refused` carries `shop_id`. `settings_unreadable` carries `version`.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status","code","detail","suggestion","retryable","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"},"shop_id":{"description":"The Etsy shop ID Alura read for.","type":"string","uniqueKey":"shop_id","typeLabel":"string"},"state":{"description":"The shop's live state, the same as GET /v1/workspace/live shows for it.","type":"string","enum":["login_expired","etsy_shop_mismatch","holder_offline","never_connected","saved_shops_off"],"uniqueKey":"state","typeLabel":"enum\u003cstring>"},"holder":{"oneOf":[{"type":"object","description":"The browser the state is about; null when none holds the shop, or it is not known.","required":["label","last_seen_at"],"properties":{"label":{"type":"string","description":"The browser's name, as Settings lists it (\"Chrome on macOS · 64NN\").","isRequired":true,"uniqueKey":"holder.oneOf.0.label","typeLabel":"string"},"last_seen_at":{"oneOf":[{"description":"When it was last online (ISO 8601); null when unknown.","type":"string","isRequired":true,"uniqueKey":"holder.oneOf.0.last_seen_at.oneOf.0","typeLabel":"string"},{"description":"When it was last online (ISO 8601); null when unknown.","type":"null","isRequired":true,"uniqueKey":"holder.oneOf.0.last_seen_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"holder.oneOf.0.last_seen_at","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"holder.oneOf.0","typeLabel":"object"},{"type":"null","description":"The browser the state is about; null when none holds the shop, or it is not known.","uniqueKey":"holder.oneOf.1","typeLabel":"null"}],"uniqueKey":"holder","typeLabel":"object | null"},"last_served_at":{"oneOf":[{"description":"When a browser last served this shop (ISO 8601); null when none did.","type":"string","uniqueKey":"last_served_at.oneOf.0","typeLabel":"string"},{"description":"When a browser last served this shop (ISO 8601); null when none did.","type":"null","uniqueKey":"last_served_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"last_served_at","typeLabel":"string | null"},"action":{"description":"What fixes it, in one sentence for the seller.","type":"string","uniqueKey":"action","typeLabel":"string"},"version":{"type":"integer","minimum":0,"description":"The settings' version: 0 when none are saved, else bumped by 1 on every save, the app's and the API's.","uniqueKey":"version","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","detail":"\u003cstring>","suggestion":"\u003cstring>","retryable":true,"request_id":"\u003cstring>","upgrade_url":"\u003cstring>","credits_needed":123,"credits_remaining":123,"resets_at":"2023-11-07T05:31:56Z","shop_id":"\u003cstring>","state":"login_expired","holder":{"label":"\u003cstring>","last_seen_at":"\u003cstring>"},"last_served_at":"\u003cstring>","action":"\u003cstring>","version":1}}},"exampleType":"generated"}},"exampleType":"generated"},"41f087ee-9611-48ce-896a-0a3f4926029f":{"description":"Error","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"}},"required":["type","title","status","code","detail","suggestion","retryable","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://docs.alura.io/errors/listing_removed_on_etsy","title":"Listing removed on Etsy","status":410,"code":"listing_removed_on_etsy","detail":"Listing removed on Etsy","suggestion":"The listing no longer exists on Etsy. Search the shop's listings again.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.alura.io/errors/listing_removed_on_etsy","title":"Listing removed on Etsy","status":410,"code":"listing_removed_on_etsy","detail":"Listing removed on Etsy","suggestion":"The listing no longer exists on Etsy. Search the shop's listings again.","retryable":false,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"}}},"exampleType":"examples"}},"exampleType":"examples"},"da7f7393-a24e-4517-b98a-317c80d2fb3e":{"description":"Error. `margin_required` carries `strategy_id`.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status","code","detail","suggestion","retryable","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"},"strategy_id":{"type":"string","description":"The strategy that needs a margin.","uniqueKey":"strategy_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","detail":"\u003cstring>","suggestion":"\u003cstring>","retryable":true,"request_id":"\u003cstring>","upgrade_url":"\u003cstring>","credits_needed":123,"credits_remaining":123,"resets_at":"2023-11-07T05:31:56Z","strategy_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"913838e0-c390-4464-996a-6215b513f580":{"description":"Error. `etsy_rate_limited` carries `shop_id`, `retry_after_seconds`. `live_rate_limited` carries `shop_id`, `retry_after_seconds`.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status","code","detail","suggestion","retryable","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"},"shop_id":{"description":"The Etsy shop ID Alura read for.","type":"string","uniqueKey":"shop_id","typeLabel":"string"},"retry_after_seconds":{"type":"integer","minimum":1,"description":"Seconds to wait before retrying, the same as the Retry-After header.","uniqueKey":"retry_after_seconds","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","detail":"\u003cstring>","suggestion":"\u003cstring>","retryable":true,"request_id":"\u003cstring>","upgrade_url":"\u003cstring>","credits_needed":123,"credits_remaining":123,"resets_at":"2023-11-07T05:31:56Z","shop_id":"\u003cstring>","retry_after_seconds":2}}},"exampleType":"generated"}},"exampleType":"generated"},"587b6438-faad-485d-bd47-4421979bc3cd":{"description":"Error","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"}},"required":["type","title","status","code","detail","suggestion","retryable","request_id"],"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://docs.alura.io/errors/internal_error","title":"Internal error","status":500,"code":"internal_error","detail":"Internal error","suggestion":"Retry; if it keeps failing, report the request_id.","retryable":true,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"},"examples":{"Example":{"title":"Example","value":{"type":"https://docs.alura.io/errors/internal_error","title":"Internal error","status":500,"code":"internal_error","detail":"Internal error","suggestion":"Retry; if it keeps failing, report the request_id.","retryable":true,"request_id":"req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"}}},"exampleType":"examples"}},"exampleType":"examples"},"f0c26a3f-ce56-46e7-b6fe-adf50103edff":{"description":"Error. `etsy_changed` carries `shop_id`.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status","code","detail","suggestion","retryable","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"},"shop_id":{"description":"The Etsy shop ID Alura read for.","type":"string","uniqueKey":"shop_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","detail":"\u003cstring>","suggestion":"\u003cstring>","retryable":true,"request_id":"\u003cstring>","upgrade_url":"\u003cstring>","credits_needed":123,"credits_remaining":123,"resets_at":"2023-11-07T05:31:56Z","shop_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f8c20b14-8d9c-418d-b7ac-c71f34651ad5":{"description":"Error. `extension_offline` carries `shop_id`. `etsy_challenge` carries `shop_id`. `etsy_unavailable` carries `shop_id`, `reason`. `live_data_paused` carries `shop_id`.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status","code","detail","suggestion","retryable","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"},"shop_id":{"description":"The Etsy shop ID Alura read for.","type":"string","uniqueKey":"shop_id","typeLabel":"string"},"reason":{"description":"A saved shop's browser context was busy; retry after Retry-After.","type":"string","const":"shop_busy","uniqueKey":"reason","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","detail":"\u003cstring>","suggestion":"\u003cstring>","retryable":true,"request_id":"\u003cstring>","upgrade_url":"\u003cstring>","credits_needed":123,"credits_remaining":123,"resets_at":"2023-11-07T05:31:56Z","shop_id":"\u003cstring>","reason":"shop_busy"}}},"exampleType":"generated"}},"exampleType":"generated"},"f0a65db2-ff68-4fd2-a6c7-165fa55435cb":{"description":"Error. `upstream_timeout` carries `shop_id`, `hint`.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 problem details.","required":["type","title","status","code","detail","suggestion","retryable","request_id"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","description":"A code from the error catalog; new codes may be added.","x-extensible-enum":["invalid_request","unknown_parameter","invalid_cursor","cursor_window_exceeded","invalid_reference","id_type_mismatch","invalid_keyword","shop_id_required","listing_not_publishable","sales_window_not_covered","range_too_long_for_interval","target_not_available","unauthorized","credits_exhausted","plan_required","insufficient_scope","workspace_required","workspace_locked","your_shop_unavailable","writes_suspended","browser_refused","live_data_not_enabled","send_not_enabled","attachments_not_enabled","self_approval","role_required","impersonation_refused","recent_sign_in_required","etsy_scope_required","etsy_partner_required","not_found","not_collected","not_found_on_etsy","shop_opted_out","method_not_allowed","conflict","settings_conflict","settings_unreadable","optimize_settings_required","optimize_plan_changed","optimize_run_applied","optimize_run_applying","optimize_run_too_large","optimize_nothing_to_apply","optimize_nothing_to_revert","optimize_shop_busy","runs_unreadable","run_not_resumable","suggestion_not_pending","draft_sent","draft_dismissed","draft_sending","conversation_changed","key_limit_reached","etsy_not_logged_in","etsy_shop_mismatch","holder_offline","login_expired","never_connected","etsy_refused","extension_update_required","attachment_used","attachment_expired","attachment_unavailable","saved_shops_off","review_already_replied","insights_search_unavailable","reconnect_required","settings_not_fetched","listing_busy","settings_busy","shop_create_busy","idempotency_partial_unverifiable","listing_has_variations","listing_sold_out","changed_since","change_not_revertable","media_changed","text_changed","inventory_changed","base_unverifiable","listing_in_ab_test","activation_skipped","idempotency_processing","confirmation_required","test_shop_active_cap","write_outcome_unknown","margin_required","unprocessable","knowledge_limit_reached","status_required","listing_removed_on_etsy","optimize_run_expired","endpoint_removed","rate_limited","throttled","daily_credit_cap_exceeded","credits_reserved","fetch_limit_reached","write_rate_limited","sync_cooldown","shop_write_budget_exhausted","live_rate_limited","etsy_rate_limited","internal_error","write_misconfigured","etsy_changed","upstream_unavailable","extension_offline","etsy_unavailable","etsy_challenge","live_data_paused","live_data_unavailable","credits_unavailable","service_unavailable","fetch_unavailable","create_lock_unavailable","writes_paused","etsy_capacity","upstream_timeout"],"isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"suggestion":{"type":"string","isRequired":true,"uniqueKey":"suggestion","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"upgrade_url":{"type":"string","format":"uri","description":"credits_exhausted and plan_required: where to upgrade the plan.","uniqueKey":"upgrade_url","typeLabel":"string\u003curi>"},"credits_needed":{"type":"integer","description":"API credit refusals: what the call needed.","uniqueKey":"credits_needed","typeLabel":"integer"},"credits_remaining":{"type":"integer","description":"API credit refusals: what is left (of the month, or of the day for daily_credit_cap_exceeded).","uniqueKey":"credits_remaining","typeLabel":"integer"},"resets_at":{"type":"string","format":"date-time","description":"credits_exhausted and daily_credit_cap_exceeded: when the limit resets.","uniqueKey":"resets_at","typeLabel":"string\u003cdate-time>"},"shop_id":{"description":"The Etsy shop ID Alura read for.","type":"string","uniqueKey":"shop_id","typeLabel":"string"},"hint":{"description":"After an Etsy-side failure on `range=max`, read again: a shorter range that is likelier to answer.","type":"object","properties":{"range":{"type":"string","const":"last_30","isRequired":true,"uniqueKey":"hint.range","typeLabel":"string"}},"required":["range"],"additionalProperties":false,"uniqueKey":"hint","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"\u003cstring>","title":"\u003cstring>","status":123,"code":"\u003cstring>","detail":"\u003cstring>","suggestion":"\u003cstring>","retryable":true,"request_id":"\u003cstring>","upgrade_url":"\u003cstring>","credits_needed":123,"credits_remaining":123,"resets_at":"2023-11-07T05:31:56Z","shop_id":"\u003cstring>","hint":{"range":"last_30"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2aa7a7e0-c8b1-479f-b276-7bae04f815a2":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key: `Authorization: Bearer alura_sk_...`.","scopes":[],"schemeName":"apiKey"}}},"servers":{"616e7fd8-7d97-4980-bf47-ea03e1349236":{"url":"https://api.alura.io"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key: `Authorization: Bearer alura_sk_...`.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key: `Authorization: Bearer alura_sk_...`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"alura","siteName":"Alura API","title":"Preview optimizer run - Alura API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-22T21:53:07.683Z","originalFileLocation":"api-reference/workspace/ads/optimize/runs/preview.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=\"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura\u0026#x27;s Etsy Ads page. A preview changes nothing on Etsy.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Alura API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/alura/Zo6rWRwbAxOIKIxc/_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/alura/Zo6rWRwbAxOIKIxc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/alura/Zo6rWRwbAxOIKIxc/_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/alura/Zo6rWRwbAxOIKIxc/_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/alura/Zo6rWRwbAxOIKIxc/_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/alura/Zo6rWRwbAxOIKIxc/_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/alura/Zo6rWRwbAxOIKIxc/_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/alura/Zo6rWRwbAxOIKIxc/_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/alura/Zo6rWRwbAxOIKIxc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Preview optimizer run - Alura API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura\u0026#x27;s Etsy Ads page. A preview changes nothing on Etsy.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Alura API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://alura.mintlify.site/_mintlify/api/og/v2?division=Optimize\u0026amp;title=Preview+optimizer+run\u0026amp;description=Plan+which+Etsy+Ads+listings+to+pause+or+move+to+Lower+click+cost%2C+or+which+search+terms+to+turn+off%2C+with+the+same+optimizer+as+Alura%27s+Etsy+Ads+page.+A+previe\u0026amp;theme=1370fe7ac0b7d5ece8a1136a\u0026amp;signature=b6b0b2a536af9e0418837d5f86a80ea4b0847cef1ac4cd6ef067a94f401d5607\">\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=\"Preview optimizer run - Alura API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura\u0026#x27;s Etsy Ads page. A preview changes nothing on Etsy.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://alura.mintlify.site/_mintlify/api/og/v2?division=Optimize\u0026amp;title=Preview+optimizer+run\u0026amp;description=Plan+which+Etsy+Ads+listings+to+pause+or+move+to+Lower+click+cost%2C+or+which+search+terms+to+turn+off%2C+with+the+same+optimizer+as+Alura%27s+Etsy+Ads+page.+A+previe\u0026amp;theme=1370fe7ac0b7d5ece8a1136a\u0026amp;signature=b6b0b2a536af9e0418837d5f86a80ea4b0847cef1ac4cd6ef067a94f401d5607\">\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/alura/Zo6rWRwbAxOIKIxc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Alura API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#155EEF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/workspace/ads/optimize/runs/preview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.alura.io/#organization\",\"name\":\"Alura API\",\"url\":\"https://docs.alura.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/alura/HySS5CT36sWBL9EL/logo/light.svg?fit=max\u0026auto=format\u0026n=HySS5CT36sWBL9EL\u0026q=85\u0026s=6afcc5174d02ee0af4c233126964240a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.alura.io#website\",\"name\":\"Alura API\",\"url\":\"https://docs.alura.io\",\"publisher\":{\"@id\":\"https://docs.alura.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview#webpage\",\"url\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview\",\"name\":\"Preview optimizer run\",\"description\":\"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura's Etsy Ads page. A preview changes nothing on Etsy.\",\"dateModified\":\"2026-11-22T21:53:07.683Z\",\"isPartOf\":{\"@id\":\"https://docs.alura.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Chrome extension\",\"item\":\"https://docs.alura.io/api-reference/chrome-extension\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Etsy Ads\",\"item\":\"https://docs.alura.io/api-reference/workspace/ads/get\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Optimize\",\"item\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/settings/get\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Preview optimizer run\",\"item\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview#apireference\",\"headline\":\"Preview optimizer run\",\"name\":\"Preview optimizer run\",\"description\":\"Plan which Etsy Ads listings to pause or move to Lower click cost, or which search terms to turn off, with the same optimizer as Alura's Etsy Ads page. A preview changes nothing on Etsy.\",\"url\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.alura.io/api-reference/workspace/ads/optimize/runs/preview#webpage\"},\"dateModified\":\"2026-11-22T21:53:07.683Z\",\"publisher\":{\"@id\":\"https://docs.alura.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.alura.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Alura API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Alura API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/workspace/ads/optimize/runs/preview.md","siteName":"Alura API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"group":"Get started","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Credits and limits","href":"/api-reference/credits-and-limits"},{"title":"Errors","href":"/api-reference/errors"}]}]},{"group":"Research","pages":[{"group":"Lookup","pages":[{"title":"Look up URL or shop","deprecated":null,"version":null,"sidebarTitle":"Look up URL or shop","openapi":"/openapi.json get /v1/research/lookup","href":"/api-reference/research/lookup"}]},{"group":"Products","pages":[{"title":"Search products","deprecated":null,"version":null,"sidebarTitle":"Search products","openapi":"/openapi.json get /v1/research/products","href":"/api-reference/research/products/search"},{"title":"Get trending products","deprecated":null,"version":null,"sidebarTitle":"Get trending products","openapi":"/openapi.json get /v1/research/products/trending","href":"/api-reference/research/products/trending"},{"title":"Get product","deprecated":null,"version":null,"sidebarTitle":"Get product","openapi":"/openapi.json get /v1/research/products/{id}","href":"/api-reference/research/products/get"},{"title":"Get products by ID","openapi":"openapi-variants.json GET /v1/research/products","href":"/api-reference/research/products/getMany"},{"title":"Get similar products","deprecated":null,"version":null,"sidebarTitle":"Get similar products","openapi":"/openapi.json get /v1/research/products/{id}/similar","href":"/api-reference/research/products/similar"},{"title":"Get product history","deprecated":null,"version":null,"sidebarTitle":"Get product history","openapi":"/openapi.json get /v1/research/products/{id}/history","href":"/api-reference/research/products/history"},{"title":"Get sales histories","deprecated":null,"version":null,"sidebarTitle":"Get sales histories","openapi":"/openapi.json get /v1/research/history","href":"/api-reference/research/history/getmany"},{"title":"List product reviews","deprecated":null,"version":null,"sidebarTitle":"List product reviews","openapi":"/openapi.json get /v1/research/products/{id}/reviews","href":"/api-reference/research/products/reviews"}]},{"group":"Shops","pages":[{"title":"Search shops","deprecated":null,"version":null,"sidebarTitle":"Search shops","openapi":"/openapi.json get /v1/research/shops","href":"/api-reference/research/shops/search"},{"title":"Get trending shops","deprecated":null,"version":null,"sidebarTitle":"Get trending shops","openapi":"/openapi.json get /v1/research/shops/trending","href":"/api-reference/research/shops/trending"},{"title":"Get shop","deprecated":null,"version":null,"sidebarTitle":"Get shop","openapi":"/openapi.json get /v1/research/shops/{id}","href":"/api-reference/research/shops/get"},{"title":"List shop products","deprecated":null,"version":null,"sidebarTitle":"List shop products","openapi":"/openapi.json get /v1/research/shops/{id}/products","href":"/api-reference/research/shops/products"},{"title":"Get similar shops","deprecated":null,"version":null,"sidebarTitle":"Get similar shops","openapi":"/openapi.json get /v1/research/shops/{id}/similar","href":"/api-reference/research/shops/similar"},{"title":"List shop reviews","deprecated":null,"version":null,"sidebarTitle":"List shop reviews","openapi":"/openapi.json get /v1/research/shops/{id}/reviews","href":"/api-reference/research/shops/reviews"},{"title":"Get shop history","deprecated":null,"version":null,"sidebarTitle":"Get shop history","openapi":"/openapi.json get /v1/research/shops/{id}/history","href":"/api-reference/research/shops/history"}]},{"group":"Keywords","pages":[{"title":"Look up keywords","deprecated":null,"version":null,"sidebarTitle":"Look up keywords","openapi":"/openapi.json get /v1/research/keywords","href":"/api-reference/research/keywords/lookup"},{"title":"Get trending keywords","deprecated":null,"version":null,"sidebarTitle":"Get trending keywords","openapi":"/openapi.json get /v1/research/keywords/trending","href":"/api-reference/research/keywords/trending"},{"title":"Get keyword","deprecated":null,"version":null,"sidebarTitle":"Get keyword","openapi":"/openapi.json get /v1/research/keywords/{id}","href":"/api-reference/research/keywords/get"},{"title":"Get related keywords","deprecated":null,"version":null,"sidebarTitle":"Get related keywords","openapi":"/openapi.json get /v1/research/keywords/{id}/related","href":"/api-reference/research/keywords/related"},{"title":"Get top products","deprecated":null,"version":null,"sidebarTitle":"Get top products","openapi":"/openapi.json get /v1/research/keywords/{id}/products","href":"/api-reference/research/keywords/products"},{"title":"Get top shops","deprecated":null,"version":null,"sidebarTitle":"Get top shops","openapi":"/openapi.json get /v1/research/keywords/{id}/shops","href":"/api-reference/research/keywords/shops"},{"title":"Get keyword history","deprecated":null,"version":null,"sidebarTitle":"Get keyword history","openapi":"/openapi.json get /v1/research/keywords/{id}/history","href":"/api-reference/research/keywords/history"}]},{"group":"Saved","pages":[{"group":"Folders","pages":[{"title":"List saved folders","deprecated":null,"version":null,"sidebarTitle":"List saved folders","openapi":"/openapi.json get /v1/research/saved/folders","href":"/api-reference/research/saved/folders/list"},{"title":"Create saved folder","deprecated":null,"version":null,"sidebarTitle":"Create saved folder","openapi":"/openapi.json post /v1/research/saved/folders","href":"/api-reference/research/saved/folders/create"},{"title":"Get saved folder","deprecated":null,"version":null,"sidebarTitle":"Get saved folder","openapi":"/openapi.json get /v1/research/saved/folders/{id}","href":"/api-reference/research/saved/folders/get"},{"title":"Update saved folder","deprecated":null,"version":null,"sidebarTitle":"Update saved folder","openapi":"/openapi.json patch /v1/research/saved/folders/{id}","href":"/api-reference/research/saved/folders/update"},{"title":"Delete saved folder","deprecated":null,"version":null,"sidebarTitle":"Delete saved folder","openapi":"/openapi.json delete /v1/research/saved/folders/{id}","href":"/api-reference/research/saved/folders/delete"}]},{"group":"Lists","pages":[{"title":"List saved lists","deprecated":null,"version":null,"sidebarTitle":"List saved lists","openapi":"/openapi.json get /v1/research/saved/lists","href":"/api-reference/research/saved/lists/list"},{"title":"Create saved list","deprecated":null,"version":null,"sidebarTitle":"Create saved list","openapi":"/openapi.json post /v1/research/saved/lists","href":"/api-reference/research/saved/lists/create"},{"title":"Get saved list","deprecated":null,"version":null,"sidebarTitle":"Get saved list","openapi":"/openapi.json get /v1/research/saved/lists/{id}","href":"/api-reference/research/saved/lists/get"},{"title":"Update saved list","deprecated":null,"version":null,"sidebarTitle":"Update saved list","openapi":"/openapi.json patch /v1/research/saved/lists/{id}","href":"/api-reference/research/saved/lists/update"},{"title":"Delete saved list","deprecated":null,"version":null,"sidebarTitle":"Delete saved list","openapi":"/openapi.json delete /v1/research/saved/lists/{id}","href":"/api-reference/research/saved/lists/delete"}]},{"group":"Items","pages":[{"title":"List saved items","deprecated":null,"version":null,"sidebarTitle":"List saved items","openapi":"/openapi.json get /v1/research/saved/lists/{id}/items","href":"/api-reference/research/saved/items/list"},{"title":"List all saved items","deprecated":null,"version":null,"sidebarTitle":"List all saved items","openapi":"/openapi.json get /v1/research/saved/items","href":"/api-reference/research/saved/items/search"},{"title":"Add saved items","deprecated":null,"version":null,"sidebarTitle":"Add saved items","openapi":"/openapi.json post /v1/research/saved/lists/{id}/items","href":"/api-reference/research/saved/items/add"},{"title":"Remove saved items","deprecated":null,"version":null,"sidebarTitle":"Remove saved items","openapi":"/openapi.json delete /v1/research/saved/lists/{id}/items","href":"/api-reference/research/saved/items/remove"}]}]}]},{"group":"Your shop","pages":[{"group":"Shop","pages":[{"title":"List shops","deprecated":null,"version":null,"sidebarTitle":"List shops","openapi":"/openapi.json get /v1/workspace/shops","href":"/api-reference/workspace/shops/list"},{"title":"Get shop","deprecated":null,"version":null,"sidebarTitle":"Get shop","openapi":"/openapi.json get /v1/workspace/shops/{shop_id}","href":"/api-reference/workspace/shops/get"},{"title":"Update shop","deprecated":null,"version":null,"sidebarTitle":"Update shop","openapi":"/openapi.json patch /v1/workspace/shops/{shop_id}","href":"/api-reference/workspace/shops/update"},{"group":"Sections","pages":[{"title":"List sections","deprecated":null,"version":null,"sidebarTitle":"List sections","openapi":"/openapi.json get /v1/workspace/sections","href":"/api-reference/workspace/sections/list"},{"title":"Create section","deprecated":null,"version":null,"sidebarTitle":"Create section","openapi":"/openapi.json post /v1/workspace/sections","href":"/api-reference/workspace/sections/create"},{"title":"Update section","deprecated":null,"version":null,"sidebarTitle":"Update section","openapi":"/openapi.json patch /v1/workspace/sections/{id}","href":"/api-reference/workspace/sections/update"},{"title":"Delete section","deprecated":null,"version":null,"sidebarTitle":"Delete section","openapi":"/openapi.json delete /v1/workspace/sections/{id}","href":"/api-reference/workspace/sections/delete"}]},{"group":"Shipping profiles","pages":[{"title":"List shipping profiles","deprecated":null,"version":null,"sidebarTitle":"List shipping profiles","openapi":"/openapi.json get /v1/workspace/shipping-profiles","href":"/api-reference/workspace/shippingprofiles/list"},{"title":"Get shipping profile","deprecated":null,"version":null,"sidebarTitle":"Get shipping profile","openapi":"/openapi.json get /v1/workspace/shipping-profiles/{id}","href":"/api-reference/workspace/shippingprofiles/get"},{"title":"Create shipping profile","deprecated":null,"version":null,"sidebarTitle":"Create shipping profile","openapi":"/openapi.json post /v1/workspace/shipping-profiles","href":"/api-reference/workspace/shippingprofiles/create"},{"title":"Update shipping profile","deprecated":null,"version":null,"sidebarTitle":"Update shipping profile","openapi":"/openapi.json patch /v1/workspace/shipping-profiles/{id}","href":"/api-reference/workspace/shippingprofiles/update"},{"title":"Delete shipping profile","deprecated":null,"version":null,"sidebarTitle":"Delete shipping profile","openapi":"/openapi.json delete /v1/workspace/shipping-profiles/{id}","href":"/api-reference/workspace/shippingprofiles/delete"},{"group":"Destinations","pages":[{"title":"List destinations","deprecated":null,"version":null,"sidebarTitle":"List destinations","openapi":"/openapi.json get /v1/workspace/shipping-profiles/{id}/destinations","href":"/api-reference/workspace/shippingprofiles/destinations"},{"title":"Create destination","deprecated":null,"version":null,"sidebarTitle":"Create destination","openapi":"/openapi.json post /v1/workspace/shipping-profiles/{id}/destinations","href":"/api-reference/workspace/shippingprofiles/destinations/create"},{"title":"Update destination","deprecated":null,"version":null,"sidebarTitle":"Update destination","openapi":"/openapi.json patch /v1/workspace/shipping-profiles/{id}/destinations/{destination_id}","href":"/api-reference/workspace/shippingprofiles/destinations/update"},{"title":"Delete destination","deprecated":null,"version":null,"sidebarTitle":"Delete destination","openapi":"/openapi.json delete /v1/workspace/shipping-profiles/{id}/destinations/{destination_id}","href":"/api-reference/workspace/shippingprofiles/destinations/delete"}]},{"group":"Upgrades","pages":[{"title":"List delivery upgrades","deprecated":null,"version":null,"sidebarTitle":"List delivery upgrades","openapi":"/openapi.json get /v1/workspace/shipping-profiles/{id}/upgrades","href":"/api-reference/workspace/shippingprofiles/deliveryoptions"},{"title":"Create upgrade","deprecated":null,"version":null,"sidebarTitle":"Create upgrade","openapi":"/openapi.json post /v1/workspace/shipping-profiles/{id}/upgrades","href":"/api-reference/workspace/shippingprofiles/deliveryoptions/create"},{"title":"Update upgrade","deprecated":null,"version":null,"sidebarTitle":"Update upgrade","openapi":"/openapi.json patch /v1/workspace/shipping-profiles/{id}/upgrades/{upgrade_id}","href":"/api-reference/workspace/shippingprofiles/deliveryoptions/update"},{"title":"Delete upgrade","deprecated":null,"version":null,"sidebarTitle":"Delete upgrade","openapi":"/openapi.json delete /v1/workspace/shipping-profiles/{id}/upgrades/{upgrade_id}","href":"/api-reference/workspace/shippingprofiles/deliveryoptions/delete"}]}]},{"group":"Return policies","pages":[{"title":"List return policies","deprecated":null,"version":null,"sidebarTitle":"List return policies","openapi":"/openapi.json get /v1/workspace/return-policies","href":"/api-reference/workspace/returnpolicies/list"},{"title":"Get return policy","deprecated":null,"version":null,"sidebarTitle":"Get return policy","openapi":"/openapi.json get /v1/workspace/return-policies/{id}","href":"/api-reference/workspace/returnpolicies/get"},{"title":"Create return policy","deprecated":null,"version":null,"sidebarTitle":"Create return policy","openapi":"/openapi.json post /v1/workspace/return-policies","href":"/api-reference/workspace/returnpolicies/create"},{"title":"Update return policy","deprecated":null,"version":null,"sidebarTitle":"Update return policy","openapi":"/openapi.json patch /v1/workspace/return-policies/{id}","href":"/api-reference/workspace/returnpolicies/update"},{"title":"Delete return policy","deprecated":null,"version":null,"sidebarTitle":"Delete return policy","openapi":"/openapi.json delete /v1/workspace/return-policies/{id}","href":"/api-reference/workspace/returnpolicies/delete"},{"title":"Move policy listings","deprecated":null,"version":null,"sidebarTitle":"Move policy listings","openapi":"/openapi.json post /v1/workspace/return-policies/{id}/move-listings","href":"/api-reference/workspace/returnpolicies/movelistings"}]},{"group":"Processing profiles","pages":[{"title":"List profiles","deprecated":null,"version":null,"sidebarTitle":"List profiles","openapi":"/openapi.json get /v1/workspace/processing-profiles","href":"/api-reference/workspace/processingprofiles/list"},{"title":"Get profile","deprecated":null,"version":null,"sidebarTitle":"Get profile","openapi":"/openapi.json get /v1/workspace/processing-profiles/{id}","href":"/api-reference/workspace/processingprofiles/get"},{"title":"Create profile","deprecated":null,"version":null,"sidebarTitle":"Create profile","openapi":"/openapi.json post /v1/workspace/processing-profiles","href":"/api-reference/workspace/processingprofiles/create"},{"title":"Update profile","deprecated":null,"version":null,"sidebarTitle":"Update profile","openapi":"/openapi.json patch /v1/workspace/processing-profiles/{id}","href":"/api-reference/workspace/processingprofiles/update"},{"title":"Delete profile","deprecated":null,"version":null,"sidebarTitle":"Delete profile","openapi":"/openapi.json delete /v1/workspace/processing-profiles/{id}","href":"/api-reference/workspace/processingprofiles/delete"}]},{"group":"Holiday settings","pages":[{"title":"Get holiday settings","deprecated":null,"version":null,"sidebarTitle":"Get holiday settings","openapi":"/openapi.json get /v1/workspace/holiday-settings","href":"/api-reference/workspace/holidaysettings/list"},{"title":"Update holiday settings","deprecated":null,"version":null,"sidebarTitle":"Update holiday settings","openapi":"/openapi.json patch /v1/workspace/holiday-settings","href":"/api-reference/workspace/holidaysettings/update"}]},{"group":"Production partners","pages":[{"title":"List partners","deprecated":null,"version":null,"sidebarTitle":"List partners","openapi":"/openapi.json get /v1/workspace/production-partners","href":"/api-reference/workspace/productionpartners/list"}]}]},{"group":"Stats","pages":[{"title":"Get shop stats","deprecated":null,"version":null,"sidebarTitle":"Get shop stats","openapi":"/openapi.json get /v1/workspace/stats","href":"/api-reference/workspace/stats/get"},{"title":"Get variation stats","deprecated":null,"version":null,"sidebarTitle":"Get variation stats","openapi":"/openapi.json get /v1/workspace/stats/variations","href":"/api-reference/workspace/stats/variations"},{"title":"List ledger entries","deprecated":null,"version":null,"sidebarTitle":"List ledger entries","openapi":"/openapi.json get /v1/workspace/ledger","href":"/api-reference/workspace/ledger/list"}]},{"group":"Listings","pages":[{"title":"Search listings","deprecated":null,"version":null,"sidebarTitle":"Search listings","openapi":"/openapi.json get /v1/workspace/listings","href":"/api-reference/workspace/listings/search"},{"title":"Get listing","deprecated":null,"version":null,"sidebarTitle":"Get listing","openapi":"/openapi.json get /v1/workspace/listings/{id}","href":"/api-reference/workspace/listings/get"},{"title":"Get listing stats","deprecated":null,"version":null,"sidebarTitle":"Get listing stats","openapi":"/openapi.json get /v1/workspace/listings/{id}/stats","href":"/api-reference/workspace/listings/stats"},{"title":"Update listing","deprecated":null,"version":null,"sidebarTitle":"Update listing","openapi":"/openapi.json patch /v1/workspace/listings/{id}","href":"/api-reference/workspace/listings/update"},{"title":"Create listing","deprecated":null,"version":null,"sidebarTitle":"Create listing","openapi":"/openapi.json post /v1/workspace/listings","href":"/api-reference/workspace/listings/create"},{"title":"Duplicate listing","deprecated":null,"version":null,"sidebarTitle":"Duplicate listing","openapi":"/openapi.json post /v1/workspace/listings/{id}/duplicate","href":"/api-reference/workspace/listings/duplicate"},{"title":"Delete listing","deprecated":null,"version":null,"sidebarTitle":"Delete listing","openapi":"/openapi.json delete /v1/workspace/listings/{id}","href":"/api-reference/workspace/listings/delete"}]},{"group":"Orders","pages":[{"title":"Search orders","deprecated":null,"version":null,"sidebarTitle":"Search orders","openapi":"/openapi.json get /v1/workspace/orders","href":"/api-reference/workspace/orders/search"},{"title":"Get order","deprecated":null,"version":null,"sidebarTitle":"Get order","openapi":"/openapi.json get /v1/workspace/orders/{id}","href":"/api-reference/workspace/orders/get"},{"title":"Add shipment","deprecated":null,"version":null,"sidebarTitle":"Add shipment","openapi":"/openapi.json post /v1/workspace/orders/{id}/shipments","href":"/api-reference/workspace/orders/shipments/create"}]},{"group":"Reviews","pages":[{"title":"Search reviews","deprecated":null,"version":null,"sidebarTitle":"Search reviews","openapi":"/openapi.json get /v1/workspace/reviews","href":"/api-reference/workspace/reviews/search"}]},{"group":"Customers","pages":[{"title":"Search customers","deprecated":null,"version":null,"sidebarTitle":"Search customers","openapi":"/openapi.json get /v1/workspace/customers","href":"/api-reference/workspace/customers/search"},{"title":"Get customer","deprecated":null,"version":null,"sidebarTitle":"Get customer","openapi":"/openapi.json get /v1/workspace/customers/{id}","href":"/api-reference/workspace/customers/get"}]},{"group":"Changes","pages":[{"title":"List changes","deprecated":null,"version":null,"sidebarTitle":"List changes","openapi":"/openapi.json get /v1/workspace/changes","href":"/api-reference/workspace/changes/list"},{"title":"Get change","deprecated":null,"version":null,"sidebarTitle":"Get change","openapi":"/openapi.json get /v1/workspace/changes/{id}","href":"/api-reference/workspace/changes/get"},{"title":"Revert change","deprecated":null,"version":null,"sidebarTitle":"Revert change","openapi":"/openapi.json post /v1/workspace/changes/{id}/revert","href":"/api-reference/workspace/changes/revert"}]},{"group":"Syncs","pages":[{"title":"Start sync","deprecated":null,"version":null,"sidebarTitle":"Start sync","openapi":"/openapi.json post /v1/workspace/syncs","href":"/api-reference/workspace/syncs/start"},{"title":"Get sync","deprecated":null,"version":null,"sidebarTitle":"Get sync","openapi":"/openapi.json get /v1/workspace/syncs/{id}","href":"/api-reference/workspace/syncs/get"},{"title":"List syncs","deprecated":null,"version":null,"sidebarTitle":"List syncs","openapi":"/openapi.json get /v1/workspace/syncs","href":"/api-reference/workspace/syncs/list"}]},{"group":"Customer service","pages":[{"title":"Get customer service","deprecated":null,"version":null,"sidebarTitle":"Get customer service","openapi":"/openapi.json get /v1/workspace/customer-service","href":"/api-reference/workspace/customer_service/get"},{"title":"List service history","deprecated":null,"version":null,"sidebarTitle":"List service history","openapi":"/openapi.json get /v1/workspace/customer-service/history","href":"/api-reference/workspace/customer_service/history"}]},{"group":"API contract","pages":[{"title":"Get API contract","deprecated":null,"version":null,"sidebarTitle":"Get API contract","openapi":"/openapi.json get /v1/workspace/openapi.json","href":"/api-reference/workspace/openapi/get"}]},{"group":"Knowledge","pages":[{"title":"List saved replies","deprecated":null,"version":null,"sidebarTitle":"List saved replies","openapi":"/openapi.json get /v1/workspace/conversations/saved-replies","href":"/api-reference/workspace/conversations/savedreplies"},{"title":"Get voice","deprecated":null,"version":null,"sidebarTitle":"Get voice","openapi":"/openapi.json get /v1/workspace/knowledge/voice","href":"/api-reference/workspace/knowledge/voice/get"},{"title":"Update voice","deprecated":null,"version":null,"sidebarTitle":"Update voice","openapi":"/openapi.json patch /v1/workspace/knowledge/voice","href":"/api-reference/workspace/knowledge/voice/update"},{"title":"Get shop voice","deprecated":null,"version":null,"sidebarTitle":"Get shop voice","openapi":"/openapi.json get /v1/workspace/knowledge/voice/shops/{shop_id}","href":"/api-reference/workspace/knowledge/shopvoice/get"},{"title":"Update shop voice","deprecated":null,"version":null,"sidebarTitle":"Update shop voice","openapi":"/openapi.json patch /v1/workspace/knowledge/voice/shops/{shop_id}","href":"/api-reference/workspace/knowledge/shopvoice/update"},{"title":"List policies","deprecated":null,"version":null,"sidebarTitle":"List policies","openapi":"/openapi.json get /v1/workspace/knowledge/policies","href":"/api-reference/workspace/knowledge/policies/list"},{"title":"List guidance","deprecated":null,"version":null,"sidebarTitle":"List guidance","openapi":"/openapi.json get /v1/workspace/knowledge/guidance","href":"/api-reference/workspace/knowledge/guidance/list"},{"title":"Get guidance","deprecated":null,"version":null,"sidebarTitle":"Get guidance","openapi":"/openapi.json get /v1/workspace/knowledge/guidance/{id}","href":"/api-reference/workspace/knowledge/guidance/get"},{"title":"Create guidance","deprecated":null,"version":null,"sidebarTitle":"Create guidance","openapi":"/openapi.json post /v1/workspace/knowledge/guidance","href":"/api-reference/workspace/knowledge/guidance/create"},{"title":"Update guidance","deprecated":null,"version":null,"sidebarTitle":"Update guidance","openapi":"/openapi.json patch /v1/workspace/knowledge/guidance/{id}","href":"/api-reference/workspace/knowledge/guidance/update"},{"title":"Delete guidance","deprecated":null,"version":null,"sidebarTitle":"Delete guidance","openapi":"/openapi.json delete /v1/workspace/knowledge/guidance/{id}","href":"/api-reference/workspace/knowledge/guidance/delete"},{"title":"List articles","deprecated":null,"version":null,"sidebarTitle":"List articles","openapi":"/openapi.json get /v1/workspace/knowledge/articles","href":"/api-reference/workspace/knowledge/articles/list"},{"title":"Get article","deprecated":null,"version":null,"sidebarTitle":"Get article","openapi":"/openapi.json get /v1/workspace/knowledge/articles/{id}","href":"/api-reference/workspace/knowledge/articles/get"},{"title":"Create article","deprecated":null,"version":null,"sidebarTitle":"Create article","openapi":"/openapi.json post /v1/workspace/knowledge/articles","href":"/api-reference/workspace/knowledge/articles/create"},{"title":"Update article","deprecated":null,"version":null,"sidebarTitle":"Update article","openapi":"/openapi.json patch /v1/workspace/knowledge/articles/{id}","href":"/api-reference/workspace/knowledge/articles/update"},{"title":"Delete article","deprecated":null,"version":null,"sidebarTitle":"Delete article","openapi":"/openapi.json delete /v1/workspace/knowledge/articles/{id}","href":"/api-reference/workspace/knowledge/articles/delete"},{"title":"Approve guidance","deprecated":null,"version":null,"sidebarTitle":"Approve guidance","openapi":"/openapi.json post /v1/workspace/knowledge/guidance/{id}/approve","href":"/api-reference/workspace/knowledge/guidance/approve"},{"title":"Reject guidance","deprecated":null,"version":null,"sidebarTitle":"Reject guidance","openapi":"/openapi.json post /v1/workspace/knowledge/guidance/{id}/reject","href":"/api-reference/workspace/knowledge/guidance/reject"},{"title":"Approve article","deprecated":null,"version":null,"sidebarTitle":"Approve article","openapi":"/openapi.json post /v1/workspace/knowledge/articles/{id}/approve","href":"/api-reference/workspace/knowledge/articles/approve"},{"title":"Reject article","deprecated":null,"version":null,"sidebarTitle":"Reject article","openapi":"/openapi.json post /v1/workspace/knowledge/articles/{id}/reject","href":"/api-reference/workspace/knowledge/articles/reject"},{"title":"Search knowledge","deprecated":null,"version":null,"sidebarTitle":"Search knowledge","openapi":"/openapi.json post /v1/workspace/knowledge/search","href":"/api-reference/workspace/knowledge/search"}]}]},{"group":"Chrome extension","pages":[{"group":"Get started","pages":[{"title":"Using the Chrome extension","sidebarTitle":"Overview","href":"/api-reference/chrome-extension"},{"title":"Get shop live status","deprecated":null,"version":null,"sidebarTitle":"Get shop live status","openapi":"/openapi.json get /v1/workspace/shops/{shop_id}/live","href":"/api-reference/workspace/shops/live/get"},{"title":"Get live status","deprecated":null,"version":null,"sidebarTitle":"Get live status","openapi":"/openapi.json get /v1/workspace/live","href":"/api-reference/workspace/live/get"}]},{"group":"Etsy Ads","pages":[{"title":"Get Etsy Ads","deprecated":null,"version":null,"sidebarTitle":"Get Etsy Ads","openapi":"/openapi.json get /v1/workspace/ads","href":"/api-reference/workspace/ads/get"},{"title":"Get Etsy Ads stats","deprecated":null,"version":null,"sidebarTitle":"Get Etsy Ads stats","openapi":"/openapi.json get /v1/workspace/ads/stats","href":"/api-reference/workspace/ads/stats"},{"title":"Update Etsy Ads","deprecated":null,"version":null,"sidebarTitle":"Update Etsy Ads","openapi":"/openapi.json patch /v1/workspace/ads","href":"/api-reference/workspace/ads/update"},{"title":"Search ad listings","deprecated":null,"version":null,"sidebarTitle":"Search ad listings","openapi":"/openapi.json get /v1/workspace/ads/listings","href":"/api-reference/workspace/ads/listings/search"},{"title":"Get ad listing","deprecated":null,"version":null,"sidebarTitle":"Get ad listing","openapi":"/openapi.json get /v1/workspace/ads/listings/{listing_id}","href":"/api-reference/workspace/ads/listings/get"},{"title":"Update ad listings","deprecated":null,"version":null,"sidebarTitle":"Update ad listings","openapi":"/openapi.json patch /v1/workspace/ads/listings","href":"/api-reference/workspace/ads/listings/update"},{"title":"List ad search terms","deprecated":null,"version":null,"sidebarTitle":"List ad search terms","openapi":"/openapi.json get /v1/workspace/ads/listings/{listing_id}/search-terms","href":"/api-reference/workspace/ads/listings/searchterms"},{"title":"List ad orders","deprecated":null,"version":null,"sidebarTitle":"List ad orders","openapi":"/openapi.json get /v1/workspace/ads/orders","href":"/api-reference/workspace/ads/orders/search"},{"group":"Ad groups","pages":[{"title":"List ad groups","deprecated":null,"version":null,"sidebarTitle":"List ad groups","openapi":"/openapi.json get /v1/workspace/ads/groups","href":"/api-reference/workspace/ads/groups/list"},{"title":"Create ad group","deprecated":null,"version":null,"sidebarTitle":"Create ad group","openapi":"/openapi.json post /v1/workspace/ads/groups","href":"/api-reference/workspace/ads/groups/create"},{"title":"Rename ad group","deprecated":null,"version":null,"sidebarTitle":"Rename ad group","openapi":"/openapi.json patch /v1/workspace/ads/groups/{group_id}","href":"/api-reference/workspace/ads/groups/rename"},{"title":"Delete ad group","deprecated":null,"version":null,"sidebarTitle":"Delete ad group","openapi":"/openapi.json delete /v1/workspace/ads/groups/{group_id}","href":"/api-reference/workspace/ads/groups/delete"},{"title":"Set listings ad group","deprecated":null,"version":null,"sidebarTitle":"Set listings ad group","openapi":"/openapi.json put /v1/workspace/ads/groups/listings","href":"/api-reference/workspace/ads/groups/listings"}]},{"group":"Optimize","pages":[{"title":"Get optimizer settings","deprecated":null,"version":null,"sidebarTitle":"Get optimizer settings","openapi":"/openapi.json get /v1/workspace/ads/optimize/settings","href":"/api-reference/workspace/ads/optimize/settings/get"},{"title":"Save optimizer settings","description":"Replace one shop's Etsy Ads optimizer settings with a whole new settings object. Alura's Etsy Ads page uses the same settings.","deprecated":null,"version":null,"sidebarTitle":"Save optimizer settings","openapi":"/openapi.json put /v1/workspace/ads/optimize/settings","href":"/api-reference/workspace/ads/optimize/settings/put"},{"title":"Preview optimizer run","deprecated":null,"version":null,"sidebarTitle":"Preview optimizer run","openapi":"/openapi.json post /v1/workspace/ads/optimize/runs","href":"/api-reference/workspace/ads/optimize/runs/preview"},{"title":"Get optimizer run","description":"Read one Etsy Ads optimizer run by its ID: a preview while it is kept, a preview still reading the shop, or a run in the shop's history.","deprecated":null,"version":null,"sidebarTitle":"Get optimizer run","openapi":"/openapi.json get /v1/workspace/ads/optimize/runs/{id}","href":"/api-reference/workspace/ads/optimize/runs/get"},{"title":"List optimizer runs","deprecated":null,"version":null,"sidebarTitle":"List optimizer runs","openapi":"/openapi.json get /v1/workspace/ads/optimize/runs","href":"/api-reference/workspace/ads/optimize/runs/list"},{"title":"Apply optimizer run","deprecated":null,"version":null,"sidebarTitle":"Apply optimizer run","openapi":"/openapi.json post /v1/workspace/ads/optimize/runs/{id}/apply","href":"/api-reference/workspace/ads/optimize/runs/apply"},{"title":"Revert optimizer run","deprecated":null,"version":null,"sidebarTitle":"Revert optimizer run","openapi":"/openapi.json post /v1/workspace/ads/optimize/runs/{id}/revert","href":"/api-reference/workspace/ads/optimize/runs/revert"}]}]},{"group":"Etsy Sales","pages":[{"title":"List promotions","deprecated":null,"version":null,"sidebarTitle":"List promotions","openapi":"/openapi.json get /v1/workspace/promotions","href":"/api-reference/workspace/promotions/search"},{"title":"Get promotion","deprecated":null,"version":null,"sidebarTitle":"Get promotion","openapi":"/openapi.json get /v1/workspace/promotions/{id}","href":"/api-reference/workspace/promotions/get"}]},{"group":"Marketplace Insights","pages":[{"title":"Get search insights","deprecated":null,"version":null,"sidebarTitle":"Get search insights","openapi":"/openapi.json get /v1/workspace/marketplace-insights/searches","href":"/api-reference/workspace/marketplaceinsights/searches/get"},{"title":"List related terms","deprecated":null,"version":null,"sidebarTitle":"List related terms","openapi":"/openapi.json get /v1/workspace/marketplace-insights/searches/terms","href":"/api-reference/workspace/marketplaceinsights/searches/terms"}]},{"group":"Traffic and search terms","pages":[{"title":"Get listing traffic","deprecated":null,"version":null,"sidebarTitle":"Get listing traffic","openapi":"/openapi.json get /v1/workspace/listings/{id}/traffic","href":"/api-reference/workspace/listings/traffic"},{"title":"Listing search terms","deprecated":null,"version":null,"sidebarTitle":"Listing search terms","openapi":"/openapi.json get /v1/workspace/listings/{id}/search-terms","href":"/api-reference/workspace/listings/searchterms"},{"title":"Search terms, batch","deprecated":null,"version":null,"sidebarTitle":"Search terms, batch","openapi":"/openapi.json get /v1/workspace/listings/search-terms","href":"/api-reference/workspace/listings/searchterms/batch"},{"title":"List shop search terms","deprecated":null,"version":null,"sidebarTitle":"List shop search terms","openapi":"/openapi.json get /v1/workspace/search-terms","href":"/api-reference/workspace/searchterms/search"}]},{"group":"Messages","pages":[{"title":"List conversations","deprecated":null,"version":null,"sidebarTitle":"List conversations","openapi":"/openapi.json get /v1/workspace/conversations","href":"/api-reference/workspace/conversations/search"},{"title":"Search conversations","deprecated":null,"version":null,"sidebarTitle":"Search conversations","openapi":"/openapi.json post /v1/workspace/conversations/search","href":"/api-reference/workspace/conversations/query"},{"title":"Get conversation","deprecated":null,"version":null,"sidebarTitle":"Get conversation","openapi":"/openapi.json get /v1/workspace/conversations/{id}","href":"/api-reference/workspace/conversations/get"},{"title":"Get order conversation","deprecated":null,"version":null,"sidebarTitle":"Get order conversation","openapi":"/openapi.json get /v1/workspace/orders/{id}/conversation","href":"/api-reference/workspace/orders/conversation/get"},{"title":"List labels","deprecated":null,"version":null,"sidebarTitle":"List labels","openapi":"/openapi.json get /v1/workspace/conversations/labels","href":"/api-reference/workspace/conversations/labels"},{"title":"Update conversation","deprecated":null,"version":null,"sidebarTitle":"Update conversation","openapi":"/openapi.json patch /v1/workspace/conversations/{id}","href":"/api-reference/workspace/conversations/update"},{"title":"Set buyer note","deprecated":null,"version":null,"sidebarTitle":"Set buyer note","openapi":"/openapi.json put /v1/workspace/conversations/{id}/buyer-note","href":"/api-reference/workspace/conversations/buyernote/set"},{"title":"Hand off conversation","deprecated":null,"version":null,"sidebarTitle":"Hand off conversation","openapi":"/openapi.json post /v1/workspace/conversations/{id}/handoff","href":"/api-reference/workspace/conversations/handoff"},{"title":"Send message","deprecated":null,"version":null,"sidebarTitle":"Send message","openapi":"/openapi.json post /v1/workspace/conversations/{id}/messages","href":"/api-reference/workspace/conversations/messages/send"},{"title":"Send order message","deprecated":null,"version":null,"sidebarTitle":"Send order message","openapi":"/openapi.json post /v1/workspace/orders/{id}/messages","href":"/api-reference/workspace/orders/messages/send"},{"title":"Upload attachment","deprecated":null,"version":null,"sidebarTitle":"Upload attachment","openapi":"/openapi.json post /v1/workspace/conversations/attachments","href":"/api-reference/workspace/conversations/attachments/upload"},{"group":"Drafts","pages":[{"title":"List draft replies","deprecated":null,"version":null,"sidebarTitle":"List draft replies","openapi":"/openapi.json get /v1/workspace/conversations/{id}/drafts","href":"/api-reference/workspace/conversations/drafts/list"},{"title":"Create draft reply","deprecated":null,"version":null,"sidebarTitle":"Create draft reply","openapi":"/openapi.json post /v1/workspace/conversations/{id}/drafts","href":"/api-reference/workspace/conversations/drafts/create"},{"title":"Dismiss draft reply","deprecated":null,"version":null,"sidebarTitle":"Dismiss draft reply","openapi":"/openapi.json delete /v1/workspace/conversations/{id}/drafts/{draft_id}","href":"/api-reference/workspace/conversations/drafts/dismiss"}]}]},{"group":"Reviews and orders","pages":[{"title":"Reply to review","deprecated":null,"version":null,"sidebarTitle":"Reply to review","openapi":"/openapi.json post /v1/workspace/reviews/{id}/reply","href":"/api-reference/workspace/reviews/reply"},{"title":"Set order note","deprecated":null,"version":null,"sidebarTitle":"Set order note","openapi":"/openapi.json put /v1/workspace/orders/{id}/note","href":"/api-reference/workspace/orders/note/set"}]}]},{"group":"Etsy","pages":[{"group":"Catalog","pages":[{"title":"Search categories","deprecated":null,"version":null,"sidebarTitle":"Search categories","openapi":"/openapi.json get /v1/etsy/categories","href":"/api-reference/etsy/categories/search"},{"title":"Get category","deprecated":null,"version":null,"sidebarTitle":"Get category","openapi":"/openapi.json get /v1/etsy/categories/{id}","href":"/api-reference/etsy/categories/get"},{"title":"Get category properties","deprecated":null,"version":null,"sidebarTitle":"Get category properties","openapi":"/openapi.json get /v1/etsy/categories/{id}/properties","href":"/api-reference/etsy/categories/properties"},{"title":"List languages","deprecated":null,"version":null,"sidebarTitle":"List languages","openapi":"/openapi.json get /v1/etsy/languages","href":"/api-reference/etsy/languages/list"}]},{"group":"Selling","pages":[{"title":"Get listing rules","deprecated":null,"version":null,"sidebarTitle":"Get listing rules","openapi":"/openapi.json get /v1/etsy/listing-rules","href":"/api-reference/etsy/listingrules/get"},{"title":"Get fees","deprecated":null,"version":null,"sidebarTitle":"Get fees","openapi":"/openapi.json get /v1/etsy/fees","href":"/api-reference/etsy/fees/get"}]},{"group":"Countries \u0026 currencies","pages":[{"title":"List countries","deprecated":null,"version":null,"sidebarTitle":"List countries","openapi":"/openapi.json get /v1/etsy/countries","href":"/api-reference/etsy/countries/list"},{"title":"Get country","deprecated":null,"version":null,"sidebarTitle":"Get country","openapi":"/openapi.json get /v1/etsy/countries/{code}","href":"/api-reference/etsy/countries/get"},{"title":"List currencies","deprecated":null,"version":null,"sidebarTitle":"List currencies","openapi":"/openapi.json get /v1/etsy/currencies","href":"/api-reference/etsy/currencies/list"},{"title":"Get currency","deprecated":null,"version":null,"sidebarTitle":"Get currency","openapi":"/openapi.json get /v1/etsy/currencies/{code}","href":"/api-reference/etsy/currencies/get"}]},{"group":"Shipping","pages":[{"title":"Get shipping carriers","deprecated":null,"version":null,"sidebarTitle":"Get shipping carriers","openapi":"/openapi.json get /v1/etsy/shipping-carriers","href":"/api-reference/etsy/shippingcarriers/get"}]},{"group":"News \u0026 updates","pages":[{"title":"List feed","deprecated":null,"version":null,"sidebarTitle":"List feed","openapi":"/openapi.json get /v1/etsy/feed","href":"/api-reference/etsy/feed/list"},{"title":"List updates","deprecated":null,"version":null,"sidebarTitle":"List updates","openapi":"/openapi.json get /v1/etsy/updates","href":"/api-reference/etsy/updates/list"},{"title":"Get update","deprecated":null,"version":null,"sidebarTitle":"Get update","openapi":"/openapi.json get /v1/etsy/updates/{id}","href":"/api-reference/etsy/updates/get"},{"title":"List news","deprecated":null,"version":null,"sidebarTitle":"List news","openapi":"/openapi.json get /v1/etsy/news","href":"/api-reference/etsy/news/list"},{"title":"Get article","deprecated":null,"version":null,"sidebarTitle":"Get article","openapi":"/openapi.json get /v1/etsy/news/{slug}","href":"/api-reference/etsy/news/get"}]}]},{"group":"Webhooks \u0026 events","pages":[{"group":"Webhook endpoints","pages":[{"title":"Create webhook","deprecated":null,"version":null,"sidebarTitle":"Create webhook","openapi":"/openapi.json post /v1/webhooks","href":"/api-reference/webhooks/endpoints/create"},{"title":"List webhooks","deprecated":null,"version":null,"sidebarTitle":"List webhooks","openapi":"/openapi.json get /v1/webhooks","href":"/api-reference/webhooks/endpoints/list"},{"title":"Get webhook","deprecated":null,"version":null,"sidebarTitle":"Get webhook","openapi":"/openapi.json get /v1/webhooks/{id}","href":"/api-reference/webhooks/endpoints/get"},{"title":"Update webhook","deprecated":null,"version":null,"sidebarTitle":"Update webhook","openapi":"/openapi.json patch /v1/webhooks/{id}","href":"/api-reference/webhooks/endpoints/update"},{"title":"Delete webhook","deprecated":null,"version":null,"sidebarTitle":"Delete webhook","openapi":"/openapi.json delete /v1/webhooks/{id}","href":"/api-reference/webhooks/endpoints/delete"},{"title":"Send test event","deprecated":null,"version":null,"sidebarTitle":"Send test event","openapi":"/openapi.json post /v1/webhooks/{id}/test","href":"/api-reference/webhooks/endpoints/test"},{"title":"Rotate secret","deprecated":null,"version":null,"sidebarTitle":"Rotate secret","openapi":"/openapi.json post /v1/webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/endpoints/rotatesecret"}]},{"group":"Deliveries","pages":[{"title":"List deliveries","deprecated":null,"version":null,"sidebarTitle":"List deliveries","openapi":"/openapi.json get /v1/webhooks/{id}/deliveries","href":"/api-reference/webhooks/deliveries/list"}]},{"group":"Events","pages":[{"title":"List events","deprecated":null,"version":null,"sidebarTitle":"List events","openapi":"/openapi.json get /v1/events","href":"/api-reference/events/list"},{"title":"Get event","deprecated":null,"version":null,"sidebarTitle":"Get event","openapi":"/openapi.json get /v1/events/{id}","href":"/api-reference/events/get"}]}]},{"group":"Account","pages":[{"group":"Me","pages":[{"title":"Get current user","deprecated":null,"version":null,"sidebarTitle":"Get current user","openapi":"/openapi.json get /v1/me","href":"/api-reference/account/me/get"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"sidebarTitle":"List workspaces","openapi":"/openapi.json get /v1/me/workspaces","href":"/api-reference/account/workspaces/list"},{"title":"Switch workspace","deprecated":null,"version":null,"sidebarTitle":"Switch workspace","openapi":"/openapi.json post /v1/me/workspace","href":"/api-reference/account/workspace/switch"}]},{"group":"Usage","pages":[{"title":"Get usage","deprecated":null,"version":null,"sidebarTitle":"Get usage","openapi":"/openapi.json get /v1/usage","href":"/api-reference/account/usage/get"},{"title":"Get usage by day","deprecated":null,"version":null,"sidebarTitle":"Get usage by day","openapi":"/openapi.json get /v1/usage/by-day","href":"/api-reference/account/usage/byday"},{"title":"List usage events","deprecated":null,"version":null,"sidebarTitle":"List usage events","openapi":"/openapi.json get /v1/usage/events","href":"/api-reference/account/usage/events"}]}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/connect-ai"}]}]},"basePath":"","title":"Preview optimizer run - Alura API","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}