> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alura.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get API contract

> Get the OpenAPI document of every operation your API key can call, with each one's parameters, fields and error codes.

**Cost:** Free.

```bash
curl "https://api.alura.io/v1/workspace/openapi.json" \
  -H "Authorization: Bearer $ALURA_API_KEY"
```

Any API key can call it.

The OpenAPI 3.1 document of every operation this API key can call, narrowed to the key's scopes. Each operation has its parameters, request body, response fields, error statuses and `x-alura-errors`, the error codes it declares; `x-alura-error-catalog` has every error code those operations can answer, with its status, title, `retryable` and suggestion.


## OpenAPI

````yaml /openapi.json get /v1/workspace/openapi.json
openapi: 3.1.0
info:
  title: Alura API
  version: 1.0.0
  description: Etsy market research for scripts and AI assistants.
servers:
  - url: https://api.alura.io
security:
  - apiKey: []
paths:
  /v1/workspace/openapi.json:
    get:
      summary: Get API contract
      description: >-
        The OpenAPI 3.1 document of every operation this API key can call,
        narrowed to the key's scopes. Each operation has its parameters, request
        body, response fields, error statuses and `x-alura-errors`, the error
        codes it declares; `x-alura-error-catalog` has every error code those
        operations can answer, with its status, title, `retryable` and
        suggestion.


        Cost: free.
      operationId: workspace.openapi.get
      parameters:
        - name: fields
          in: query
          required: false
          description: >-
            Comma-separated dotted paths to return; `id`, `object` and `as_of`
            always come back.
          schema:
            type: string
      responses:
        '200':
          description: OK
          headers:
            Request-Id:
              $ref: '#/components/headers/Request-Id'
            Alura-Credits-Cost:
              $ref: '#/components/headers/Alura-Credits-Cost'
            Alura-Credits-Remaining:
              $ref: '#/components/headers/Alura-Credits-Remaining'
          content:
            application/json:
              schema:
                description: An OpenAPI 3.1 document.
                type: object
                additionalProperties: {}
              example:
                openapi: 3.1.0
                info:
                  title: Alura API
                  version: 1.0.0
                  description: Etsy market research for scripts and AI assistants.
                servers:
                  - url: https://api.alura.io
                security:
                  - apiKey: []
                x-alura-error-catalog:
                  invalid_request:
                    status: 400
                    title: Invalid request
                    retryable: false
                    suggestion: Fix the request as the detail says, then send it again.
                    type: https://docs.alura.io/errors/invalid_request
                  unknown_parameter:
                    status: 400
                    title: Unknown parameter
                    retryable: false
                    suggestion: Remove the parameter or use one this operation accepts.
                    type: https://docs.alura.io/errors/unknown_parameter
                  invalid_cursor:
                    status: 400
                    title: Invalid cursor
                    retryable: false
                    suggestion: >-
                      Start again from the first page without a cursor; a cursor
                      only works with the query that produced it.
                    type: https://docs.alura.io/errors/invalid_cursor
                  cursor_window_exceeded:
                    status: 400
                    title: Cursor window exceeded
                    retryable: false
                    suggestion: Narrow the query; paging stops after 10,000 results.
                    type: https://docs.alura.io/errors/cursor_window_exceeded
                  invalid_reference:
                    status: 400
                    title: Invalid reference
                    retryable: false
                    suggestion: >-
                      An id in the request is not a valid Etsy id; `field` names
                      it. Fix it, then send the request again.
                    type: https://docs.alura.io/errors/invalid_reference
                  id_type_mismatch:
                    status: 400
                    title: Wrong ID type
                    retryable: false
                    suggestion: Pass an ID of the type this operation takes.
                    type: https://docs.alura.io/errors/id_type_mismatch
                  invalid_keyword:
                    status: 400
                    title: Invalid keyword
                    retryable: false
                    suggestion: Send keywords of 1-100 characters.
                    type: https://docs.alura.io/errors/invalid_keyword
                  shop_id_required:
                    status: 400
                    title: Shop ID required
                    retryable: false
                    suggestion: >-
                      Pass `shop_id`: this workspace has several connected
                      shops, listed in `shops`.
                    type: https://docs.alura.io/errors/shop_id_required
                  listing_not_publishable:
                    status: 400
                    title: Listing not publishable
                    retryable: false
                    suggestion: >-
                      Nothing was written. Etsy needs what `missing` names
                      before a listing goes active (null when Etsy refused
                      without naming it): add it, or keep the listing as a draft
                      (`state: "draft"`) and publish it later.
                    type: https://docs.alura.io/errors/listing_not_publishable
                  sales_window_not_covered:
                    status: 400
                    title: Sales window not covered
                    retryable: false
                    suggestion: >-
                      Alura cannot answer this for the shop named in `shop_id`:
                      `reason` says why (`uncovered`, `before_coverage`,
                      `after_complete_through` or `gap_day`), with its
                      `coverage_from`, `complete_through` and any `gap_day`.
                      Pick a date its sales data covers, leave that shop out
                      with `shop_id`, or retry after its next sync.
                    type: https://docs.alura.io/errors/sales_window_not_covered
                  range_too_long_for_interval:
                    status: 400
                    title: Range too long for daily points
                    retryable: false
                    suggestion: >-
                      Ask for at most `max_days` days with `interval=day`, or
                      leave `interval` out for Etsy's own (monthly) buckets.
                    type: https://docs.alura.io/errors/range_too_long_for_interval
                  target_not_available:
                    status: 400
                    title: Target not available
                    retryable: false
                    suggestion: Optimize `listings` for now; search-term runs come later.
                    type: https://docs.alura.io/errors/target_not_available
                  unauthorized:
                    status: 401
                    title: Unauthorized
                    retryable: false
                    suggestion: >-
                      Send a valid API key as `Authorization: Bearer
                      alura_sk_...`.
                    type: https://docs.alura.io/errors/unauthorized
                  credits_exhausted:
                    status: 402
                    title: API credits exhausted
                    retryable: false
                    suggestion: Upgrade the plan or wait for the monthly reset.
                    type: https://docs.alura.io/errors/credits_exhausted
                  plan_required:
                    status: 403
                    title: Plan required
                    retryable: false
                    suggestion: Upgrade the workspace plan to use this operation.
                    type: https://docs.alura.io/errors/plan_required
                  insufficient_scope:
                    status: 403
                    title: Insufficient scope
                    retryable: false
                    suggestion: >-
                      Use a key or grant that carries the scope this operation
                      needs.
                    type: https://docs.alura.io/errors/insufficient_scope
                  workspace_required:
                    status: 403
                    title: Workspace required
                    retryable: false
                    suggestion: Choose a workspace with switch_workspace, then retry.
                    type: https://docs.alura.io/errors/workspace_required
                  workspace_locked:
                    status: 403
                    title: Workspace locked
                    retryable: false
                    suggestion: >-
                      API keys are bound to one workspace; create a key in the
                      other workspace.
                    type: https://docs.alura.io/errors/workspace_locked
                  your_shop_unavailable:
                    status: 403
                    title: Your shop not available
                    retryable: false
                    suggestion: >-
                      Reading and managing your own shops through the API is not
                      on for this workspace yet, or Alura has paused it.
                      Research operations are not affected. Contact Alura
                      support for access.
                    type: https://docs.alura.io/errors/your_shop_unavailable
                  writes_suspended:
                    status: 403
                    title: Writes suspended
                    retryable: false
                    suggestion: >-
                      Writes to Etsy through the API are suspended for this
                      workspace or key; contact Alura support.
                    type: https://docs.alura.io/errors/writes_suspended
                  browser_refused:
                    status: 403
                    title: API keys are refused from browsers
                    retryable: false
                    suggestion: >-
                      Call the API from a server or script, and keep the key out
                      of web pages.
                    type: https://docs.alura.io/errors/browser_refused
                  live_data_not_enabled:
                    status: 403
                    title: Live data not enabled for this workspace
                    retryable: false
                    suggestion: >-
                      Live Etsy data isn't enabled for this workspace; nothing
                      was read from Etsy. Contact Alura support.
                    type: https://docs.alura.io/errors/live_data_not_enabled
                  send_not_enabled:
                    status: 403
                    title: Sending messages not enabled for this workspace
                    retryable: false
                    suggestion: >-
                      Sending messages to buyers isn't enabled for this
                      workspace; nothing was sent. Save the reply as a draft for
                      the seller to send instead.
                    type: https://docs.alura.io/errors/send_not_enabled
                  attachments_not_enabled:
                    status: 403
                    title: Message attachments not enabled for this workspace
                    retryable: false
                    suggestion: >-
                      Message attachments aren't enabled for this workspace;
                      nothing was uploaded or sent. Send the message without
                      attachments.
                    type: https://docs.alura.io/errors/attachments_not_enabled
                  self_approval:
                    status: 403
                    title: Self-approval refused
                    retryable: false
                    suggestion: >-
                      A suggestion is approved with another key, or by the
                      seller in Alura, never with the key or connection that
                      suggested it.
                    type: https://docs.alura.io/errors/self_approval
                  role_required:
                    status: 403
                    title: Owner or admin required
                    retryable: false
                    suggestion: Ask a workspace owner or admin to manage API keys.
                    type: https://docs.alura.io/errors/role_required
                  impersonation_refused:
                    status: 403
                    title: Not while viewing as a user
                    retryable: false
                    suggestion: >-
                      Keys cannot be created or rotated during an impersonation
                      session; the user must do it.
                    type: https://docs.alura.io/errors/impersonation_refused
                  recent_sign_in_required:
                    status: 403
                    title: Recent sign-in required
                    retryable: false
                    suggestion: Sign in again, then retry within 10 minutes.
                    type: https://docs.alura.io/errors/recent_sign_in_required
                  etsy_scope_required:
                    status: 403
                    title: Etsy permission missing
                    retryable: false
                    suggestion: >-
                      Reconnect the Etsy shop at `reconnect_url` and allow the
                      permissions in `missing_scopes`.
                    type: https://docs.alura.io/errors/etsy_scope_required
                  etsy_partner_required:
                    status: 403
                    title: Etsy partner approval required
                    retryable: false
                    suggestion: >-
                      Etsy lets only approved fulfillment partners do this for
                      this order. Do it on Etsy instead; reconnecting does not
                      help.
                    type: https://docs.alura.io/errors/etsy_partner_required
                  not_found:
                    status: 404
                    title: Not found
                    retryable: false
                    suggestion: Check the ID, or search for it first.
                    type: https://docs.alura.io/errors/not_found
                  not_collected:
                    status: 404
                    title: Not collected yet
                    retryable: false
                    suggestion: >-
                      Alura has not collected this item and is not fetching new
                      ones of its kind from Etsy now. Search for items Alura
                      already has instead.
                    type: https://docs.alura.io/errors/not_collected
                  not_found_on_etsy:
                    status: 404
                    title: Not found on Etsy
                    retryable: false
                    suggestion: Etsy has no such item; check the ID or name.
                    type: https://docs.alura.io/errors/not_found_on_etsy
                  shop_opted_out:
                    status: 404
                    title: Shop opted out
                    retryable: false
                    suggestion: >-
                      This shop asked Alura not to track it; its data is not
                      available.
                    type: https://docs.alura.io/errors/shop_opted_out
                  method_not_allowed:
                    status: 405
                    title: Method not allowed
                    retryable: false
                    suggestion: Use one of the methods in the Allow header.
                    type: https://docs.alura.io/errors/method_not_allowed
                  conflict:
                    status: 409
                    title: Conflict
                    retryable: false
                    suggestion: Reload the resource and retry with its current state.
                    type: https://docs.alura.io/errors/conflict
                  settings_conflict:
                    status: 409
                    title: Settings changed since
                    retryable: false
                    suggestion: >-
                      Nothing was saved: the settings were saved since the
                      `version` you sent. `settings` and `version` are what is
                      stored now (null and 0: nothing is). Apply your change to
                      them, then retry with that `version`.
                    type: https://docs.alura.io/errors/settings_conflict
                  settings_unreadable:
                    status: 409
                    title: Settings unreadable
                    retryable: false
                    suggestion: >-
                      This shop has saved settings Alura cannot read, so nothing
                      was read or changed. Contact Alura support.
                    type: https://docs.alura.io/errors/settings_unreadable
                  optimize_settings_required:
                    status: 409
                    title: Settings required
                    retryable: false
                    suggestion: >-
                      This preview used the safe default (Budget Saver) because
                      no optimizer settings are saved. Save settings (`PUT
                      /v1/workspace/ads/optimize/settings`) or send
                      `overrides.strategy`, preview again, then apply.
                    type: https://docs.alura.io/errors/optimize_settings_required
                  optimize_plan_changed:
                    status: 409
                    title: Plan changed since the preview
                    retryable: false
                    suggestion: >-
                      Nothing was sent to Etsy: what the preview was planned
                      from changed (its `plan_hash`, or the saved settings).
                      Preview again, then apply the new run.
                    type: https://docs.alura.io/errors/optimize_plan_changed
                  optimize_run_applied:
                    status: 409
                    title: Run already applied
                    retryable: false
                    suggestion: >-
                      A run is applied once. Read it at `GET
                      /v1/workspace/ads/optimize/runs/{id}`; preview again for a
                      new run.
                    type: https://docs.alura.io/errors/optimize_run_applied
                  optimize_run_applying:
                    status: 409
                    title: Run still applying
                    retryable: true
                    suggestion: >-
                      Its writes are still in flight. Retry once it has finished
                      (`GET /v1/workspace/ads/optimize/runs/{id}`).
                    type: https://docs.alura.io/errors/optimize_run_applying
                  optimize_run_too_large:
                    status: 409
                    title: Run too large
                    retryable: false
                    suggestion: >-
                      Preview again with fewer actions (`overrides.max_actions`,
                      or `listing_ids`), then apply.
                    type: https://docs.alura.io/errors/optimize_run_too_large
                  optimize_nothing_to_apply:
                    status: 409
                    title: Nothing to apply
                    retryable: false
                    suggestion: >-
                      Etsy already shows every change this preview planned, or
                      none could be read; nothing was sent. Preview again.
                    type: https://docs.alura.io/errors/optimize_nothing_to_apply
                  optimize_nothing_to_revert:
                    status: 409
                    title: Nothing to revert
                    retryable: false
                    suggestion: >-
                      No change of this run can be undone here now: `skipped`
                      says why for each. Nothing was sent to Etsy.
                    type: https://docs.alura.io/errors/optimize_nothing_to_revert
                  optimize_shop_busy:
                    status: 409
                    title: Shop busy
                    retryable: true
                    suggestion: >-
                      Another session (Alura's Etsy Ads page or another run) is
                      changing this shop's Etsy Ads. Wait for Retry-After, then
                      retry.
                    type: https://docs.alura.io/errors/optimize_shop_busy
                  runs_unreadable:
                    status: 409
                    title: Runs unreadable
                    retryable: false
                    suggestion: >-
                      This shop has saved optimizer runs Alura cannot read, so
                      nothing can be applied or undone until support repairs
                      them. Contact Alura support with the run ids.
                    type: https://docs.alura.io/errors/runs_unreadable
                  run_not_resumable:
                    status: 409
                    title: Run not resumable under this key
                    retryable: false
                    suggestion: >-
                      Nothing was sent to Etsy: this request key's earlier
                      attempt can't be resumed exactly. Read what it changed,
                      then send the request with a new key to start a fresh run.
                    type: https://docs.alura.io/errors/run_not_resumable
                  suggestion_not_pending:
                    status: 409
                    title: Suggestion not pending
                    retryable: false
                    suggestion: >-
                      Only a suggestion waiting for review (`status: suggested`)
                      can be approved or rejected; read it again to see its
                      status.
                    type: https://docs.alura.io/errors/suggestion_not_pending
                  draft_sent:
                    status: 409
                    title: Draft already sent
                    retryable: false
                    suggestion: >-
                      The seller sent this draft; nothing was changed. Read the
                      conversation for the reply as sent, or create a new draft
                      for a new reply.
                    type: https://docs.alura.io/errors/draft_sent
                  draft_dismissed:
                    status: 409
                    title: Draft dismissed
                    retryable: false
                    suggestion: >-
                      This draft was dismissed, by the seller or by a newer
                      draft; nothing was changed. List the conversation's drafts
                      for the pending one, or create a new draft.
                    type: https://docs.alura.io/errors/draft_dismissed
                  draft_sending:
                    status: 409
                    title: Draft being sent
                    retryable: true
                    suggestion: >-
                      The seller is sending a draft of this conversation from
                      Alura; nothing was changed. Retry in a moment: once the
                      send settles, the draft reads `used` or `stale`.
                    type: https://docs.alura.io/errors/draft_sending
                  conversation_changed:
                    status: 409
                    title: Conversation changed
                    retryable: false
                    suggestion: >-
                      A newer message arrived after the one you answered (or the
                      draft is stale); nothing was sent. Read the conversation
                      again and answer its newest message.
                    type: https://docs.alura.io/errors/conversation_changed
                  key_limit_reached:
                    status: 409
                    title: API key limit reached
                    retryable: false
                    suggestion: >-
                      Revoke a key you no longer use; a workspace has at most 25
                      active keys.
                    type: https://docs.alura.io/errors/key_limit_reached
                  etsy_not_logged_in:
                    status: 409
                    title: Not logged into Etsy
                    retryable: false
                    suggestion: Log into Etsy in Chrome, then retry.
                    type: https://docs.alura.io/errors/etsy_not_logged_in
                  etsy_shop_mismatch:
                    status: 409
                    title: Logged into another Etsy shop
                    retryable: false
                    suggestion: >-
                      Chrome is logged into a different Etsy shop. Switch Etsy
                      in Chrome to this shop, then retry.
                    type: https://docs.alura.io/errors/etsy_shop_mismatch
                  holder_offline:
                    status: 409
                    title: Browser holding the shop offline
                    retryable: false
                    suggestion: >-
                      The browser that holds this shop is offline. Open Chrome
                      on that computer (see `holder` and `action`), then retry.
                    type: https://docs.alura.io/errors/holder_offline
                  login_expired:
                    status: 409
                    title: Etsy login expired
                    retryable: false
                    suggestion: >-
                      This shop's Etsy login expired in the browser that holds
                      it. Sign in to this shop on Etsy in that browser (see
                      `holder` and `action`), then retry.
                    type: https://docs.alura.io/errors/login_expired
                  never_connected:
                    status: 409
                    title: No browser for this shop
                    retryable: false
                    suggestion: >-
                      No browser with the Alura extension has served this shop
                      yet. Install the Alura Chrome extension and open this shop
                      on Etsy there (see `action`), then retry.
                    type: https://docs.alura.io/errors/never_connected
                  etsy_refused:
                    status: 409
                    title: Etsy refused the request
                    retryable: false
                    suggestion: >-
                      Etsy refused this request for the signed-in session. Open
                      Etsy Shop Manager in Chrome, check it is signed in as the
                      account that owns this shop, then retry.
                    type: https://docs.alura.io/errors/etsy_refused
                  extension_update_required:
                    status: 409
                    title: Alura extension update required
                    retryable: false
                    suggestion: >-
                      The Alura extension in the seller's Chrome is too old for
                      this; nothing was sent. Update it (chrome://extensions,
                      Update, or reinstall from the Chrome Web Store), then
                      retry.
                    type: https://docs.alura.io/errors/extension_update_required
                  attachment_used:
                    status: 409
                    title: Attachment already sent
                    retryable: false
                    suggestion: >-
                      Each attachment goes with one message, and this one was
                      sent already (or its send may have reached the buyer).
                      Upload the file again for another message.
                    type: https://docs.alura.io/errors/attachment_used
                  attachment_expired:
                    status: 409
                    title: Attachment expired
                    retryable: false
                    suggestion: >-
                      Attachments must be sent within 24 hours of their upload.
                      Upload the file again, then send.
                    type: https://docs.alura.io/errors/attachment_expired
                  attachment_unavailable:
                    status: 409
                    title: Attachment not ready
                    retryable: false
                    suggestion: >-
                      This attachment's upload did not finish (it failed, or
                      Etsy's answer was lost); nothing was sent. Upload the file
                      again, then send.
                    type: https://docs.alura.io/errors/attachment_unavailable
                  saved_shops_off:
                    status: 409
                    title: Saved shops off
                    retryable: false
                    suggestion: >-
                      Saved shops are switched off in the Chrome profile running
                      the Alura extension, so nothing was sent to this shop.
                      Open Etsy Shop Manager in that profile to turn them back
                      on, then retry.
                    type: https://docs.alura.io/errors/saved_shops_off
                  review_already_replied:
                    status: 409
                    title: Review already answered
                    retryable: false
                    suggestion: >-
                      This review already has a response on Etsy, and Etsy takes
                      one per review and never an edit. Nothing was posted or
                      charged; read the response on Etsy.
                    type: https://docs.alura.io/errors/review_already_replied
                  insights_search_unavailable:
                    status: 409
                    title: Etsy shows no insights for this search
                    retryable: false
                    suggestion: >-
                      Etsy did not show this shop's Marketplace Insights for the
                      term, so nothing was charged. `reason` says why:
                      `weekly_limit_reached` (Etsy's free plan allows a few
                      searches a week; Etsy Plus has no limit) or
                      `term_not_allowed` (Etsy shows nothing for this term).
                    type: https://docs.alura.io/errors/insights_search_unavailable
                  reconnect_required:
                    status: 409
                    title: Reconnect required
                    retryable: false
                    suggestion: Reconnect the Etsy shop at `reconnect_url`, then retry.
                    type: https://docs.alura.io/errors/reconnect_required
                  settings_not_fetched:
                    status: 409
                    title: Settings not fetched yet
                    retryable: true
                    suggestion: >-
                      Start a sync of the shop (POST /v1/workspace/syncs), then
                      retry once it has fetched the shop's settings.
                    type: https://docs.alura.io/errors/settings_not_fetched
                  listing_busy:
                    status: 409
                    title: Listing busy
                    retryable: true
                    suggestion: >-
                      Another change to this listing is still saving on Etsy.
                      Wait for Retry-After, then retry.
                    type: https://docs.alura.io/errors/listing_busy
                  settings_busy:
                    status: 409
                    title: Setting busy
                    retryable: true
                    suggestion: >-
                      Another change to this shop setting is still saving on
                      Etsy; nothing was sent. Wait for Retry-After, then retry.
                    type: https://docs.alura.io/errors/settings_busy
                  shop_create_busy:
                    status: 409
                    title: Shop busy creating a listing
                    retryable: true
                    suggestion: >-
                      Another listing is still being created in this shop. Wait
                      for Retry-After, then retry.
                    type: https://docs.alura.io/errors/shop_create_busy
                  idempotency_partial_unverifiable:
                    status: 409
                    title: Earlier attempt unverifiable
                    retryable: true
                    suggestion: >-
                      Nothing was sent. An earlier attempt left a draft Alura
                      cannot match to this request; wait for Retry-After, then
                      retry.
                    type: >-
                      https://docs.alura.io/errors/idempotency_partial_unverifiable
                  listing_has_variations:
                    status: 409
                    title: Listing has variations
                    retryable: false
                    suggestion: >-
                      A price, quantity, processing profile or SKU change would
                      hit every variant. Send `apply_to: "all_variants"` for
                      price, quantity or processing profile (never for SKU), or
                      change single variants with `offerings` in the same update
                      (PATCH /v1/workspace/listings/{id}, or update_my_listing),
                      picking each by its property values.
                    type: https://docs.alura.io/errors/listing_has_variations
                  listing_sold_out:
                    status: 409
                    title: Listing sold out on Etsy
                    retryable: false
                    suggestion: >-
                      The listing is sold out on Etsy (no stock left), and Etsy
                      refuses every change to a sold-out listing. Nothing was
                      written. The seller restocks it on Etsy (quantity 1 or
                      more); then send the change again. Alura never restocks a
                      listing by itself.
                    type: https://docs.alura.io/errors/listing_sold_out
                  changed_since:
                    status: 409
                    title: Listing changed since
                    retryable: false
                    suggestion: >-
                      The listing on Etsy no longer holds what this change set
                      (`changed` names the fields), so reverting it could
                      destroy a later edit. Nothing was written. Look at the
                      listing, then make the edit you want with update.
                    type: https://docs.alura.io/errors/changed_since
                  change_not_revertable:
                    status: 409
                    title: Change not revertable
                    retryable: false
                    suggestion: >-
                      This change cannot be undone: `reason` says why
                      (`legacy_app_write`, `before_from_cache`, `delete`,
                      `publish_fee`, `shipment_notified_buyer`, `images`,
                      `quantity`, `reactivates_listing`, `not_landed`,
                      `outcome_unknown`, ...). Nothing was written. For
                      `outcome_unknown`, read the change again once its outcome
                      is known (it may have landed); otherwise make the edit you
                      want with update.
                    type: https://docs.alura.io/errors/change_not_revertable
                  media_changed:
                    status: 409
                    title: Listing media changed
                    retryable: false
                    suggestion: >-
                      The listing's images, videos or files on Etsy are not the
                      ones this write was based on (`images_expected`,
                      `videos_expected`, `files_expected`): the detail names
                      which part and which IDs differ. Nothing was written. Read
                      the listing again (GET /v1/workspace/listings/{id}, or
                      get_my_listing), then send the write with the current IDs.
                    type: https://docs.alura.io/errors/media_changed
                  text_changed:
                    status: 409
                    title: Text changed
                    retryable: false
                    suggestion: >-
                      A text on Etsy is not the one this write was based on (its
                      `*_expected` version): `changed` names which. Nothing was
                      written. Read the text whole again, show the user what
                      changed if it matters, then send the write with the new
                      version.
                    type: https://docs.alura.io/errors/text_changed
                  inventory_changed:
                    status: 409
                    title: Inventory changed
                    retryable: false
                    suggestion: >-
                      The listing's number of products on Etsy is not
                      `products_expected`. Nothing was written. Read the
                      inventory again (get_my_listing with include:
                      ["inventory"]), then send the write with the current
                      count.
                    type: https://docs.alura.io/errors/inventory_changed
                  base_unverifiable:
                    status: 503
                    title: Base not verifiable
                    retryable: true
                    suggestion: >-
                      Alura could not read from Etsy the text or inventory this
                      write names a version of, so it could not check it, and
                      nothing was written. Retry after Retry-After.
                    type: https://docs.alura.io/errors/base_unverifiable
                  listing_in_ab_test:
                    status: 409
                    title: Listing in an A/B test
                    retryable: false
                    suggestion: >-
                      The listing is in a running Alura A/B test, which changes
                      it on Etsy by itself. End the test in Alura, then retry.
                    type: https://docs.alura.io/errors/listing_in_ab_test
                  activation_skipped:
                    status: 409
                    title: Listing not published
                    retryable: false
                    suggestion: >-
                      The rest of the change failed, so Alura did not ask Etsy
                      to publish. Fix the change, then send it again.
                    type: https://docs.alura.io/errors/activation_skipped
                  idempotency_processing:
                    status: 409
                    title: Request still processing
                    retryable: true
                    suggestion: Retry the same request after a moment.
                    type: https://docs.alura.io/errors/idempotency_processing
                  confirmation_required:
                    status: 409
                    title: Confirmation required
                    retryable: false
                    suggestion: >-
                      Nothing was changed. A call without dry_run asks the
                      seller to confirm this change, in the host's prompt or
                      with an approval link to send them; once they approve,
                      call again with the same arguments.
                    type: https://docs.alura.io/errors/confirmation_required
                  test_shop_active_cap:
                    status: 409
                    title: Test shop active-listing cap
                    retryable: false
                    suggestion: >-
                      Nothing was sent. Alura's test shop may hold at most `cap`
                      listings activated through the API at once; deactivate or
                      delete one of the listings it activated (a draft left by a
                      publish that did not land counts until it is deleted),
                      then retry, or create this one as a draft.
                    type: https://docs.alura.io/errors/test_shop_active_cap
                  write_outcome_unknown:
                    status: 409
                    title: Earlier write's outcome unknown
                    retryable: true
                    suggestion: >-
                      The same write was sent earlier and Alura does not know
                      whether it landed on Etsy; nothing was sent again. Check
                      the change at `change_id` before writing again.
                    type: https://docs.alura.io/errors/write_outcome_unknown
                  margin_required:
                    status: 422
                    title: Margin required
                    retryable: false
                    suggestion: >-
                      This strategy judges listings against break-even, which
                      needs the shop's margin. Save a margin in the optimizer
                      settings, send `overrides.margin_pct`, or use a strategy
                      without break-even rules (Budget Saver needs none).
                    type: https://docs.alura.io/errors/margin_required
                  unprocessable:
                    status: 422
                    title: Unprocessable
                    retryable: false
                    suggestion: Fix the request as the detail says.
                    type: https://docs.alura.io/errors/unprocessable
                  knowledge_limit_reached:
                    status: 422
                    title: Knowledge limit reached
                    retryable: false
                    suggestion: Pause or delete an active entry, or save this one paused.
                    type: https://docs.alura.io/errors/knowledge_limit_reached
                  status_required:
                    status: 422
                    title: Status required
                    retryable: false
                    suggestion: >-
                      Changing what an active entry says needs `status` in the
                      same request: `"active"` to keep using it, `"paused"` to
                      stop.
                    type: https://docs.alura.io/errors/status_required
                  listing_removed_on_etsy:
                    status: 410
                    title: Listing removed on Etsy
                    retryable: false
                    suggestion: >-
                      The listing no longer exists on Etsy. Search the shop's
                      listings again.
                    type: https://docs.alura.io/errors/listing_removed_on_etsy
                  optimize_run_expired:
                    status: 410
                    title: Preview expired
                    retryable: false
                    suggestion: >-
                      Previews are kept 30 minutes. Preview again: `POST
                      /v1/workspace/ads/optimize/runs`.
                    type: https://docs.alura.io/errors/optimize_run_expired
                  endpoint_removed:
                    status: 410
                    title: Endpoint removed
                    retryable: false
                    suggestion: >-
                      Use the endpoint the detail and the `Link` header name;
                      the changelog says what changed.
                    type: https://docs.alura.io/errors/endpoint_removed
                  rate_limited:
                    status: 429
                    title: Rate limited
                    retryable: true
                    suggestion: Wait for Retry-After, then retry.
                    type: https://docs.alura.io/errors/rate_limited
                  throttled:
                    status: 429
                    title: Throttled
                    retryable: true
                    suggestion: >-
                      Wait for Retry-After, then keep under `policy.limit`
                      requests a minute until `throttled_until`, and ask for
                      fewer distinct shop and product sub-lists.
                    type: https://docs.alura.io/errors/throttled
                  daily_credit_cap_exceeded:
                    status: 429
                    title: Daily API credit ceiling reached
                    retryable: true
                    suggestion: Retry after the next UTC midnight.
                    type: https://docs.alura.io/errors/daily_credit_cap_exceeded
                  credits_reserved:
                    status: 429
                    title: API credits held by calls in flight
                    retryable: true
                    suggestion: Retry in a few seconds.
                    type: https://docs.alura.io/errors/credits_reserved
                  fetch_limit_reached:
                    status: 429
                    title: Fetch limit reached
                    retryable: true
                    suggestion: >-
                      Wait for Retry-After before asking for items Alura has not
                      seen; items Alura already has still answer. The plan's
                      daily fetch caps are on
                      https://docs.alura.io/api-reference/rate-limits#fetch-caps.
                    type: https://docs.alura.io/errors/fetch_limit_reached
                  write_rate_limited:
                    status: 429
                    title: Write rate limited
                    retryable: true
                    suggestion: >-
                      The workspace made its plan's write requests for this
                      minute. Wait for Retry-After, then retry.
                    type: https://docs.alura.io/errors/write_rate_limited
                  sync_cooldown:
                    status: 429
                    title: Sync cooldown
                    retryable: true
                    suggestion: >-
                      Every shop was synced too recently, or the workspace used
                      its daily syncs. Wait for Retry-After
                      (`shops[].next_allowed_at` per shop), then retry.
                    type: https://docs.alura.io/errors/sync_cooldown
                  shop_write_budget_exhausted:
                    status: 429
                    title: Shop write budget used up
                    retryable: true
                    suggestion: >-
                      The shop has used its Etsy write budget for now. Wait for
                      Retry-After, then retry.
                    type: https://docs.alura.io/errors/shop_write_budget_exhausted
                  live_rate_limited:
                    status: 429
                    title: Live data rate limited
                    retryable: true
                    suggestion: >-
                      Too many live requests for this shop right now. Wait for
                      Retry-After, then retry.
                    type: https://docs.alura.io/errors/live_rate_limited
                  etsy_rate_limited:
                    status: 429
                    title: Etsy rate limited
                    retryable: true
                    suggestion: >-
                      Etsy itself asked the browser to slow down; nothing more
                      was sent. Wait for Retry-After, then retry.
                    type: https://docs.alura.io/errors/etsy_rate_limited
                  internal_error:
                    status: 500
                    title: Internal error
                    retryable: true
                    suggestion: Retry; if it keeps failing, report the request_id.
                    type: https://docs.alura.io/errors/internal_error
                  write_misconfigured:
                    status: 500
                    title: Write not sent
                    retryable: false
                    suggestion: >-
                      Nothing reached Etsy: a configuration problem on Alura's
                      side refused the write. Report the request_id; retrying
                      does not help until it is fixed.
                    type: https://docs.alura.io/errors/write_misconfigured
                  etsy_changed:
                    status: 502
                    title: Data temporarily unavailable
                    retryable: true
                    suggestion: >-
                      This data is temporarily unavailable; Alura has been
                      alerted. Retry later.
                    type: https://docs.alura.io/errors/etsy_changed
                  upstream_unavailable:
                    status: 502
                    title: Upstream unavailable
                    retryable: true
                    suggestion: Retry shortly.
                    type: https://docs.alura.io/errors/upstream_unavailable
                  extension_offline:
                    status: 503
                    title: Alura extension offline
                    retryable: true
                    suggestion: >-
                      Open Chrome with the Alura extension, then retry after
                      Retry-After.
                    type: https://docs.alura.io/errors/extension_offline
                  etsy_unavailable:
                    status: 503
                    title: Etsy unavailable
                    retryable: true
                    suggestion: >-
                      Etsy is not answering for this shop right now. Wait for
                      Retry-After, then retry.
                    type: https://docs.alura.io/errors/etsy_unavailable
                  etsy_challenge:
                    status: 503
                    title: Etsy security check
                    retryable: true
                    suggestion: >-
                      Etsy asked the browser for a security check, and Alura
                      stopped sending until it is done. Open any Etsy page in
                      Chrome where the Alura extension runs, complete the check,
                      then retry after Retry-After.
                    type: https://docs.alura.io/errors/etsy_challenge
                  live_data_paused:
                    status: 503
                    title: Live data paused
                    retryable: true
                    suggestion: >-
                      Live data is paused for now; nothing was read or changed.
                      Retry later.
                    type: https://docs.alura.io/errors/live_data_paused
                  live_data_unavailable:
                    status: 503
                    title: Live data unavailable
                    retryable: true
                    suggestion: >-
                      Alura could not check whether live data is allowed right
                      now; nothing was read from Etsy. Retry shortly.
                    type: https://docs.alura.io/errors/live_data_unavailable
                  credits_unavailable:
                    status: 503
                    title: API credits unavailable
                    retryable: true
                    suggestion: Retry shortly.
                    type: https://docs.alura.io/errors/credits_unavailable
                  service_unavailable:
                    status: 503
                    title: Service unavailable
                    retryable: true
                    suggestion: Retry shortly; if it keeps failing, report the request_id.
                    type: https://docs.alura.io/errors/service_unavailable
                  fetch_unavailable:
                    status: 503
                    title: Fetching unavailable
                    retryable: true
                    suggestion: >-
                      Alura cannot fetch new items from Etsy right now; retry
                      later.
                    type: https://docs.alura.io/errors/fetch_unavailable
                  create_lock_unavailable:
                    status: 503
                    title: Listing creation unavailable
                    retryable: true
                    suggestion: Nothing was created. Wait for Retry-After, then retry.
                    type: https://docs.alura.io/errors/create_lock_unavailable
                  writes_paused:
                    status: 503
                    title: Writes paused
                    retryable: true
                    suggestion: >-
                      Alura has paused writes to Etsy through the API for now;
                      nothing was sent. Retry later.
                    type: https://docs.alura.io/errors/writes_paused
                  etsy_capacity:
                    status: 503
                    title: Etsy writes paused
                    retryable: true
                    suggestion: >-
                      Alura is holding writes to Etsy for a moment. Wait for
                      Retry-After, then retry.
                    type: https://docs.alura.io/errors/etsy_capacity
                  upstream_timeout:
                    status: 504
                    title: Timed out
                    retryable: true
                    suggestion: >-
                      A read is safe to retry after Retry-After. If it keeps
                      failing, narrow the request or report the request_id.
                      Never resend a write whose result is unknown.
                    type: https://docs.alura.io/errors/upstream_timeout
                paths:
                  /v1/etsy/categories:
                    get:
                      operationId: etsy.categories.search
                      summary: Search categories
                      description: >-
                        Finds Etsy categories that hold every word of `q` in
                        their name or path (in any letter case, also inside a
                        longer word), each with its full path. Best matches
                        first: the name is `q`, then starts with it, contains
                        it, holds every word, then the rest; within each,
                        shallower categories first, then by name. Without `q`,
                        lists the top-level categories.


                        Cost: free.
                      parameters:
                        - name: q
                          in: query
                          required: false
                          description: >-
                            Words to find, for example `mugs` or `kitchen mugs`.
                            A category matches when every word appears, in any
                            letter case and also inside a longer word, in its
                            name or in its path (the names above it). Without
                            it, the top-level categories are listed.
                          schema:
                            description: >-
                              Words to find, for example `mugs` or `kitchen
                              mugs`. A category matches when every word appears,
                              in any letter case and also inside a longer word,
                              in its name or in its path (the names above it).
                              Without it, the top-level categories are listed.
                            type: string
                            minLength: 1
                            maxLength: 100
                        - name: limit
                          in: query
                          required: false
                          description: 'Page size: default 25, at most 100.'
                          schema:
                            type: integer
                            minimum: 1
                            maximum: 100
                        - name: cursor
                          in: query
                          required: false
                          description: >-
                            The `next_cursor` of the previous page. Bound to the
                            query, the workspace and the key.
                          schema:
                            type: string
                        - name: fields
                          in: query
                          required: false
                          description: >-
                            Comma-separated dotted paths to return; `id`,
                            `object` and `as_of` always come back.
                          schema:
                            type: string
                      responses:
                        '200':
                          description: OK
                          headers:
                            Request-Id:
                              $ref: '#/components/headers/Request-Id'
                            Alura-Credits-Cost:
                              $ref: '#/components/headers/Alura-Credits-Cost'
                            Alura-Credits-Remaining:
                              $ref: '#/components/headers/Alura-Credits-Remaining'
                          content:
                            application/json:
                              schema:
                                type: object
                                properties:
                                  object:
                                    type: string
                                    const: list
                                  data:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        object:
                                          type: string
                                          const: category
                                        id:
                                          type: string
                                          description: Etsy seller-taxonomy ID, as a string.
                                        name:
                                          type: string
                                          description: The category's name, as Etsy writes it.
                                        path:
                                          type: array
                                          items:
                                            type: string
                                          description: >-
                                            Names from the top level down to this
                                            category.
                                      required:
                                        - object
                                        - id
                                        - name
                                        - path
                                      additionalProperties: false
                                  has_more:
                                    type: boolean
                                  next_cursor:
                                    type:
                                      - string
                                      - 'null'
                                  total:
                                    type: object
                                    properties:
                                      value:
                                        type: integer
                                        minimum: -9007199254740991
                                        maximum: 9007199254740991
                                      relation:
                                        type: string
                                        enum:
                                          - eq
                                          - gte
                                    required:
                                      - value
                                      - relation
                                    additionalProperties: false
                                required:
                                  - object
                                  - data
                                  - has_more
                                  - next_cursor
                                  - total
                                additionalProperties: false
                        '400':
                          $ref: '#/components/responses/Problem400'
                        '401':
                          $ref: '#/components/responses/Problem401'
                        '402':
                          $ref: '#/components/responses/Problem402'
                        '403':
                          $ref: '#/components/responses/Problem403'
                        '404':
                          $ref: '#/components/responses/Problem404'
                        '405':
                          $ref: '#/components/responses/Problem405'
                        '429':
                          $ref: '#/components/responses/Problem429'
                        '500':
                          $ref: '#/components/responses/Problem500'
                        '503':
                          $ref: '#/components/responses/Problem503'
                      x-alura-credits:
                        credits: 0
                        unit: call
                      x-alura-scopes:
                        - research:read
                      x-alura-errors: []
        '400':
          $ref: '#/components/responses/Problem400'
        '401':
          $ref: '#/components/responses/Problem401'
        '402':
          $ref: '#/components/responses/Problem402'
        '403':
          $ref: '#/components/responses/Problem403'
        '404':
          $ref: '#/components/responses/Problem404'
        '405':
          $ref: '#/components/responses/Problem405'
        '429':
          $ref: '#/components/responses/Problem429'
        '500':
          $ref: '#/components/responses/Problem500'
        '503':
          $ref: '#/components/responses/Problem503'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl "https://api.alura.io/v1/workspace/openapi.json" \
              -H "Authorization: Bearer $ALURA_API_KEY"
        - lang: typescript
          label: TypeScript
          source: >-
            const res = await
            fetch('https://api.alura.io/v1/workspace/openapi.json', {
              headers: {
                Authorization: `Bearer ${process.env.ALURA_API_KEY}`,
              },
            });

            console.log(await res.json());
        - lang: python
          label: Python
          source: |-
            import json
            import os
            import urllib.request

            request = urllib.request.Request(
                "https://api.alura.io/v1/workspace/openapi.json",
                headers={
                    "Authorization": f"Bearer {os.environ['ALURA_API_KEY']}",
                },
            )
            with urllib.request.urlopen(request) as response:
                print(json.load(response))
components:
  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
  responses:
    Problem400:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          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
    Problem401:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          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
    Problem402:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          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
    Problem403:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          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
    Problem404:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          example:
            type: https://docs.alura.io/errors/not_found
            title: Not found
            status: 404
            code: not_found
            detail: Not found
            suggestion: Check the ID, or search for it first.
            retryable: false
            request_id: req_01JQ5W3H8M2N4P6R8T0V2X4Z6B
    Problem405:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          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
    Problem429:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          example:
            type: https://docs.alura.io/errors/rate_limited
            title: Rate limited
            status: 429
            code: rate_limited
            detail: Rate limited
            suggestion: Wait for Retry-After, then retry.
            retryable: true
            request_id: req_01JQ5W3H8M2N4P6R8T0V2X4Z6B
    Problem500:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          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
    Problem503:
      description: Error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          example:
            type: https://docs.alura.io/errors/base_unverifiable
            title: Base not verifiable
            status: 503
            code: base_unverifiable
            detail: Base not verifiable
            suggestion: >-
              Alura could not read from Etsy the text or inventory this write
              names a version of, so it could not check it, and nothing was
              written. Retry after Retry-After.
            retryable: true
            request_id: req_01JQ5W3H8M2N4P6R8T0V2X4Z6B
  schemas:
    Problem:
      type: object
      description: RFC 9457 problem details.
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: 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
        detail:
          type: string
        suggestion:
          type: string
        retryable:
          type: boolean
        request_id:
          type: string
        upgrade_url:
          type: string
          format: uri
          description: 'credits_exhausted and plan_required: where to upgrade the plan.'
        credits_needed:
          type: integer
          description: 'API credit refusals: what the call needed.'
        credits_remaining:
          type: integer
          description: >-
            API credit refusals: what is left (of the month, or of the day for
            daily_credit_cap_exceeded).
        resets_at:
          type: string
          format: date-time
          description: >-
            credits_exhausted and daily_credit_cap_exceeded: when the limit
            resets.
      required:
        - type
        - title
        - status
        - code
        - detail
        - suggestion
        - retryable
        - request_id
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'An API key: `Authorization: Bearer alura_sk_...`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.