{"openapi":"3.1.0","info":{"title":"Simplero API","version":"v2","description":"## Authentication\n\nAuthenticate via **HTTP Basic Auth** (API key as username, password left blank) or the **X-API-Key** header.\n\nGet your API key from the Simplero admin under Settings \u003e Integrations.\n\n## User-Agent\n\nInclude your app name and contact email in the User-Agent header: `MyApp (me@example.com)`.\n\n## Pagination\n\nList endpoints accept `page` and `per_page` (1–100, default 20).\n\n## Retrying writes with Idempotency-Key\n\nSend an optional `Idempotency-Key` header on POST, PATCH, PUT or DELETE to `/api/v2`.\nChoose a unique key for each new operation and reuse it for retries of that operation.\nKeys must contain 1–255 characters and cannot be only whitespace. Surrounding spaces are significant.\nEach API key has its own namespace; internal Coach/MCP requests are scoped to the account and user.\nWithout the header, behavior is unchanged. GET and HEAD ignore it; v1 does not support it.\n\nAfter a request completes, its status and exact response body are saved for 24 hours, including\nhandled 4xx errors. An identical retry returns that saved response with `Idempotent-Replayed: true`,\nwithout running the action again. A queued action replays its queued response without scheduling another job.\nAuthentication is checked on every request.\n\nReuse the same method, path, query string, content type and exact body bytes. JSON formatting and\nkey order count; multipart uploads must reuse the same boundary and serialized body.\n\nThe header can produce these errors; other endpoint errors retain their own meanings:\n\n- **409:** `A request with this Idempotency-Key is still in progress`. Wait before retrying with the same key.\n- **422:** `Idempotency-Key was used for a different request`. Use the original request when retrying.\n  Empty, whitespace-only or overlong keys also return 422.\n- **403:** Permissions changed after the original request. The saved response cannot be shown.\n  The original operation may already have taken effect: check its result before submitting another operation.\n- **503:** If the idempotency store cannot be checked, this attempt does not run the action. Retry with the same key.\n\nUnhandled exceptions and 5xx responses are not saved, and their keys can be retried. A failed response\ndoes not prove that no side effects occurred. The in-progress lease lasts five minutes; a crash, lease\nexpiry, cache eviction or outage can allow another execution. If saving a successful response fails,\nthe original response is still returned and the lease remains until expiry where possible.\nCheck the outcome of uncertain operations before retrying. This is bounded retry protection, not an\nexactly-once payment guarantee. After a saved response expires, the same key may run again.\n\nFor example, run this exact request twice with your API key. The second response has the same status\nand body, plus `Idempotent-Replayed: true`:\n\n```sh\ncurl -i https://simplero.com/api/v2/tags \\\n  -H 'X-API-Key: YOUR_API_KEY' \\\n  -H 'User-Agent: MyIntegration (developer@example.com)' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Idempotency-Key: onboarding-tag-2026-11-07-001' \\\n  --data '{\"name\":\"Onboarding\"}'\n```\n"},"servers":[{"url":"https://simplero.com"}],"security":[{"apiKeyHeader":[]}],"tags":[{"name":"Account","description":"The settings of the account the API key belongs to: senders, company details, GDPR and cookie\nconsent, invoicing, dunning, cart opt-in and the global tax settings.\n\nSettings come in two groups, each with the admin permission that guards it: general settings need\n\"Account settings\", invoicing, cart and tax settings need \"Products\". A key whose role lacks a group\ndoes not see that group's fields and cannot change them. `tax_percent` and `tax_strategy` are\nreadable by every key.\n\nTax rates per country and region are at `/api/v2/tax_regions`. Shipping rates for physical products\nare at `/api/v2/shipping_regions` and `/api/v2/shipping_rates`.","x-displayName":"Account settings"},{"name":"Actions","description":"The exact shape of `args` depends on the value of `action`. Before creating or updating an Action,\nuse `GET actions/available` to list the action ids available for a given target type (e.g. `Customer`, `Ticket`),\nthen `GET actions/detail` with that id to get the typed `args` schema.\n"},{"name":"Assets","description":"`actions/delete` is permanent: the file is removed and can't be restored with `actions/resurrect`. Anything\nthat uses the asset loses it, the same as deleting it in the admin. Only a video revision is soft-deleted.\n"},{"name":"Blocks","description":"To create or modify the content of a saved block, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n\n\nTo create or modify the content of a saved block, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n"},{"name":"Builder Docs","description":"A builder doc is the content tree behind a page built with the page builder. It belongs to an owner\n(e.g. a `landing_page` or a `page`), and its content is read and edited through that owner's builder endpoints.\n\nAdmin links like `https://\u003caccount host\u003e/admin/builder_docs/123` identify a builder doc by id. Resolve one with\n`GET builder_docs/:id`, then use the returned `builder_api_path` to read or edit its content.\n","x-displayName":"Builder docs"},{"name":"Charges","description":"A charge is one receipt: a purchase's original payment, an installment, or a\nsubscription renewal, each with its own `invoice_number` and `paid_at`. This is\nthe v2 replacement for the deprecated `GET /api/v1/invoices`.\n\nAmounts are in cents, as everywhere else in v2: v1's `their_total` of `12.50`\nis `their_total_cents` of `1250` here. Each payment method includes how much of\nthis charge it paid (`amount_cents`); v1 calls that `amount` and sends major units.\n\nMigrating from v1, the equivalent parameters are:\n\n- v1 always returned only invoiced (paid) charges. v2 returns every charge,\n  including installments and renewals that have not been billed yet, so add\n  `state=paid` to reproduce the v1 result set.\n- `created_at_from` / `created_at_to` → `created_at[from]` / `created_at[to]`\n- `paid_at_from` / `paid_at_to` → `paid_at[from]` / `paid_at[to]`.\n  Both date ranges are inclusive and day-granular: a timestamp is widened to\n  the whole day, where v1 compared against the exact timestamp given.\n- `invoice_number_from` + `invoice_number_to` →\n  `invoice_number_int[op]=between\u0026invoice_number_int[value]=100\u0026invoice_number_int[value2]=200`.\n  For a one-sided range use `op=gte` or `op=lte` with a single `value`.\n- `dir=asc` / `dir=desc` → unchanged; sorts by invoice number. Omit it and\n  results come back in `id` order, which keeps charges that were never\n  invoiced (`invoice_number_int` is `NULL`) from sorting to the front.\n  `dir` only affects `page`-based pagination — cursor pagination (`after`)\n  always walks in ascending `id` order regardless of `dir`.\n\nEvery charge-level field v1 returned is on this resource, though some were\nrenamed. What v1 nested inside each invoice — the product and the billing\nparty — lives on its own resource, which you fetch by the id on the charge:\n\n- `their_price` / `their_tax` / `their_total`, `our_price` / `our_tax` /\n  `our_total` → the same names with a `_cents` suffix, as integers.\n- `items` → `line_items`\n- `transaction_transaction_ids` → `gateway_transaction_ids`\n- `fees` → `payment_processor_fee_cents`\n- `product.name` → `GET /api/v2/products/:id`, by `product_id`\n- the nested `purchase` block → `GET /api/v2/purchases/:id`, by\n  `purchase_id`. See the Purchases resource for exactly which buyer and\n  billing fields it carries. v1's `first_name` is `first_names` there.\n\nAn admin can delete a mistaken paid invoice from the purchase page. The same action\nis here, `POST /api/v2/charges/:id/actions/erase_paid_invoice`, so a key that can\nmanage purchases can do it too (ENG-35121). To cancel a paid invoice with a credit\nnote instead of deleting it, use `POST /api/v2/charges/:id/actions/cancel_as_mistake`.\nIt is the purchase page's \"Cancel charge (entered by mistake)\".\n"},{"name":"Chat Bot Conversations","description":"Conversations visitors have with this account's AI bots. Not Chat (messaging with contacts), which is a separate feature.","x-displayName":"Bot conversations"},{"name":"Chat Bot Messages","description":"Messages in conversations visitors have with this account's AI bots. Not Chat (messaging with contacts), which is a separate feature.","x-displayName":"Bot conversation messages"},{"name":"Coaching Programs","description":"Packages of 1:1 coaching sessions. Add each kind of session with POST /api/v2/coaching_sessions (how many, how long, which scheduling link). Sell a program by adding it to a product: POST /api/v2/products/{id}/actions/add_content with coaching_program_ids. Needs a full-access key or an unrestricted administrator."},{"name":"Coaching Sessions","description":"One kind of session in a coaching program: how many each client gets, how long each one is, and the scheduling link clients book them on. Filter by coaching_program_id. Needs a full-access key or an unrestricted administrator."},{"name":"Course Facets","description":"The facets shown on courses, in their saved order. Reading needs course read access; reordering needs course manage access, like the admin page.","x-displayName":"Course facets"},{"name":"Customers","description":"The list endpoint's `q` parameter also searches phone numbers in the contact's phone number\nand Phone custom fields. Full numbers and fragments of at least four digits match regardless\nof punctuation or spacing, for example `q=5035550198` matches a stored `503.555.0198`.\nPhone matches respect the same account and list filters as text matches.\n\nCustomers are contacts. `send_chat_message` sends a Simplero Chat message to the contact in the\nshared account conversation shown in Interactions. This is contact messaging, not a Coach or\naccount-bot conversation (`chat_bot_*` / `bot_*`). An API key acting as an account admin sends\nas that admin when `user_id` is omitted; `user_id` can select another account administrator as\nthe displayed sender. Automations and account-level API keys must provide an administrator\n`user_id`. Contacts without a Simplero user and contacts who have declined chats can't receive\nChat: the action answers 422 with a clear error and sends nothing.\n\n`actions/delete` refuses a contact with active or paused purchases. A deleted contact can be restored with\n`actions/resurrect` for 30 days; after that it is removed for good.\n"},{"name":"Deletion Logs","description":"Audit entries for permanent deletes, retained for 13 months. Requires a full-access key or unrestricted administrator. Snapshots omit embedded records and cannot automatically restore deleted data. Pages are newest first: use `page` to continue in that order. For ascending-ID cursor traversal, start with `after=0` and follow `next_after`; do not switch from newest-first pages to cursor pagination. `from` and `to` are inclusive ISO 8601 timestamps."},{"name":"Docs","description":"To create or modify the content of a doc, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n\n\nTo create or modify the content of a doc, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n"},{"name":"Domains","description":"The domains whose DNS Simplero manages. Domains can't be created, changed or\ndeleted over the API, because adding a domain moves its DNS to DNSimple and a\nwrong record can take the whole domain offline; that stays in the admin.\n\nA domain's DNS records are at `GET /api/v2/dns_records?domain_id={id}`. The\n`pagination.total` of that call is the record count the admin list shows.\n"},{"name":"Landing Pages","description":"To create or modify the content of a landing page, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n\n\nTo create or modify the content of a landing page, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n"},{"name":"Library Mailings","description":"Emails that can be used by automations and triggers."},{"name":"Pages","description":"To create or modify the content of a page, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n\n\nTo create or modify the content of a page, first create the record,\nthen use the various builder endpoints below to manage its content tree (only when its a builder doc page).\n\nThere's 2 ways to create/manage builder content\n 1. HTML sections (preferred)\n      * 3 endpoints: html_section show, html_section update (create/update), html_section embed.\n      * Anything HTML goes. Very flexible.\n      * You can still chose to embed structured nodes inside it using the embed endpoint to get html embed code for a structured node.\n      * See the description of the html_section update endpoint (POST builder/content/html_section) for detailed info on how this works (when it creates vs updates, how to use the embed endpoint, etc.).\n 2. Structured\n      * A hierarchical builder where you add sections \u003e rows \u003e columns \u003e elements.\n      * Has endpoints to list available nodes, including filtering available node children for a given node id.\n      * You add things hierarchically one by one (i.e add section with settings, then add a row with parent id set to the section's returned node id).\n\nIf you want fancy pages, prefer using the HTML section endpoint + embedding structured nodes inside it (like embedding order form or input fields/buttons/etc.)\n\nLook at what you build (the node tree does not show how the page looks):\n  * Before you style a page, read GET builder/content/design_guide: what each setting looks like, and what to avoid.\n  * After you build or change a page, open GET builder/content/preview_url in your own browser and look at it on a\n    desktop and on a phone. Fix what looks wrong, e.g. text squeezed into a narrow column by large padding.\n    If you have the pages--screenshot tool (Simplero.coach), use it instead: it shows you both screens.\n\nVersion history:\n  * GET builder/content/versions lists the working lineage (newest first) plus publish/working status.\n  * GET builder/content/versions/:version_id returns that version's node tree.\n  * POST builder/content/versions/:version_id/restore makes a new working draft from that snapshot.\n  * POST builder/content/undo and POST builder/content/redo move through the editor's undo history without publishing.\n  * POST builder/content/discard_unpublished_changes throws away the draft and reconnects to the published version.\n    Use this when publish fails because the working draft is disconnected from the published lineage.\n"},{"name":"Site Groups","description":"Creating a group also creates its forum. The API does not grant the caller access, so grant people with the Customer actions site_group_grant and site_group_revoke. Join requests are at /api/v2/site_group_requests."},{"name":"Triggers","description":"A trigger binds an event on an owner (Tag, Link, Account, Product, …) to an Action.\nTo start an automation when an event fires, create the Action first\n(`Customer-start_automation` with `args.automation_id`), then POST a trigger that\npoints at that action.\n\n`event` accepts either a fully-qualified interface event id (e.g. `Link-click`,\n`Tag-add`, `Account-page_view`) or a legacy event name (e.g. `click`, `tag_add`).\nUse `GET triggers/available` to list the event ids valid for a given\n`owner_type`, then `GET triggers/detail` for the typed `args` schema.\n\nPage-view triggers are owned by the current account (`owner_type: Account`,\n`event: Account-page_view`) and take the URL in `args`: `{ \"url\": \"...\", \"op\": \"exact\" }`\n(`op` is one of `exact`, `include`, `begin`, `end`). The legacy `page_view` name\nis accepted and stored as `Account-page_view`, using the same `args` format; its\n`url` / `url_match` are taken as `args.url` / `args.op` when `args` is not given.\n\nA product purchase trigger is owned by the product (`owner_type: Product`).\n`event: purchase_new` is \"Purchase: Activated, first time only\": the first\nactivation of that purchase, not a renewal. `event: purchase_activate` is\n\"Purchase: Activated/Renewed\". Neither event takes extra `args` (`detail`\nreturns an empty args schema). Set `only_once: true` when a later purchase\nby the same contact should not fire the trigger again. Point the action at\n`Customer-start_automation` with `args.automation_id`.\n\n`condition_rule` is a query-builder tree. It is only enforced when `always_run` is\nfalse. Set both in the same request.\n"}],"paths":{"/api/v2/access_grants":{"get":{"summary":"List access grants","tags":["Access Grants"],"x-simplero-resource-type":"access_grants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AccessGrant"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"resource_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"resource_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"access_state","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]}},"/api/v2/access_grants/{id}":{"get":{"summary":"Get a access grant","tags":["Access Grants"],"x-simplero-resource-type":"access_grants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AccessGrant"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a access grant","tags":["Access Grants"],"x-simplero-resource-type":"access_grants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AccessGrant"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessGrantOptional"}}}}}},"/api/v2/access_rules/{id}":{"delete":{"summary":"Disable an access rule","tags":["Access Rules"],"x-simplero-resource-type":"access_rules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Turns the rule off. The row stays. People who received access from the rule lose it,\nunless keep_current_grants is true. This is the same as removing the rule in the admin.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"keep_current_grants","in":"query","required":false,"schema":{"type":"boolean","description":"When true, people who already have access keep it."},"description":"When true, people who already have access keep it."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]},"get":{"summary":"Get a access rule","tags":["Access Rules"],"x-simplero-resource-type":"access_rules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AccessRule"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a access rule","tags":["Access Rules"],"x-simplero-resource-type":"access_rules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AccessRule"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRuleOptional"}}}}}},"/api/v2/access_rules":{"get":{"summary":"List access rules","tags":["Access Rules"],"x-simplero-resource-type":"access_rules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AccessRule"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"provider_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"provider_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"resource_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"resource_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"enabled","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a access rule","tags":["Access Rules"],"x-simplero-resource-type":"access_rules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AccessRule"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}}}},"/api/v2/account":{"get":{"summary":"Read the account settings","tags":["Account"],"x-simplero-resource-type":"account","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"handle":{"type":"string"},"currency_code":{"type":"string"},"tax_percent":{"type":"number","nullable":true,"description":"Tax percent used when editing and showing prices, 0 to under 100. Can be null when left blank in the admin; the API does not accept null."},"tax_strategy":{"type":"string","enum":["eu_vat","simple","no_tax"],"description":"no_tax: never add tax. simple: for businesses outside the EU/UK; EU VAT is still added when relevant. eu_vat: for businesses in the EU or the UK."},"name":{"type":"string"},"sender_name":{"type":"string"},"sender_email":{"type":"string","nullable":true,"description":"A new address creates a verified email and sends a verification email. Wins over sender_verified_email_id when both change."},"sender_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"reply_to":{"type":"string","nullable":true,"description":"A new address creates a verified email and sends a verification email. Wins over reply_to_verified_email_id when both change."},"reply_to_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"support_email":{"type":"string"},"company_name":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"address_2":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"region_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"phone_number":{"type":"string","nullable":true},"company_legal_id":{"type":"string","nullable":true},"company_legal_id_private":{"type":"boolean","nullable":true},"customer_locale":{"type":"string","enum":["en","da","nl","fr","de","it","ja-JP","no","pt","es","sv","pl","sk","fi","hu"],"description":"Language of emails, checkout and member pages."},"force_order_form_locale":{"type":"boolean","nullable":true},"show_currency_symbols":{"type":"boolean","description":"Show £ or € instead of GBP or EUR. Currencies that share a symbol ($, kr, ¥) keep their code."},"time_zone":{"type":"string","description":"A Rails time zone name, e.g. \"Copenhagen\"."},"first_day_of_week":{"type":"integer","enum":[0,1],"description":"0 = Sunday, 1 = Monday"},"time_format_24h":{"type":"boolean","nullable":true},"terms":{"type":"string","nullable":true},"terms_title":{"type":"string","nullable":true},"terms_url":{"type":"string","nullable":true},"privacy_policy_url":{"type":"string","nullable":true},"footer_include_details":{"type":"boolean","nullable":true},"broadcast_footer":{"type":"string","nullable":true},"when_name_missing":{"type":"string","nullable":true,"description":"Greeting name used when a contact has no name. Null means the default for the customer locale."},"use_system_greetings":{"type":"boolean","nullable":true},"greetings":{"type":"string","nullable":true},"email_filler_copy":{"type":"string","nullable":true},"request_gdpr_consent":{"type":"string","enum":["off","eu_only","on"]},"gdpr_consent_lists_message":{"type":"string","nullable":true},"gdpr_consent_checkout_message":{"type":"string","nullable":true},"cookie_consent_type":{"type":"string","enum":["none","info","opt_in","always_opt_in"]},"google_consent_mode_advanced":{"type":"boolean","description":"Google Consent Mode advanced: Google tags load before visitors choose, and send Google cookieless pings while a visitor has not accepted cookies. Only used when cookie_consent_type is opt_in or always_opt_in. Not on every account yet: turning it on where it is not available is refused."},"verified_sender_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that emails are sent from. Only with verified senders turned on."},"verified_reply_to_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that replies go to. Only with verified senders turned on."},"invoice_bcc":{"type":"string","nullable":true},"credit_note_bcc":{"type":"string","nullable":true},"next_invoice_id":{"type":"integer","nullable":true},"invoice_number_format":{"type":"string","description":"Must contain {{number}}."},"invoice_sender_name":{"type":"string","nullable":true},"invoice_sender_email":{"type":"string","nullable":true},"invoice_sender_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"text_for_invoice":{"type":"string","nullable":true},"max_failed_charges":{"type":"integer"},"days_between_charge_retries":{"type":"integer"},"restart_period_on_reactivation":{"type":"boolean"},"renewal_warn_period_days":{"type":"integer","nullable":true},"renewal_warn_days":{"type":"integer","nullable":true},"failed_payment_subject":{"type":"string","nullable":true},"failed_payment_description":{"type":"string","nullable":true},"failed_purchase_text":{"type":"string","nullable":true},"charge_notification_pay_button_text":{"type":"string","nullable":true},"text_for_login_email":{"type":"string","nullable":true},"cart_optin_type":{"type":"string","enum":["default","custom","none"],"description":"Label, sublabel, list and pre-checked only stick with \"custom\"."},"cart_optin_label":{"type":"string","nullable":true},"cart_optin_sublabel":{"type":"string","nullable":true},"cart_optin_list_id":{"type":"integer","nullable":true,"description":"A list of this account."},"cart_optin_pre_checked":{"type":"boolean"},"default_wants_marketing":{"type":"boolean","nullable":true},"main_list_id":{"type":"integer","description":"A list of this account."},"new_purchase_notification_emails":{"type":"string","nullable":true},"show_installments_total":{"type":"boolean"},"show_repurchase_warning":{"type":"boolean"},"coupon_code_open_by_default":{"type":"boolean"},"save_checkout_leads":{"type":"string","enum":["outside_gdpr","always","never"],"description":"When the one-step order form saves the buyer's email before they submit, so abandoned-cart automations can reach them. outside_gdpr: every buyer except those subject to GDPR (EU, UK). always: every buyer. never: only on submit."},"checkout_captcha_always":{"type":"boolean","description":"Every logged-out checkout with a new NMI or Spreedly card asks for reCAPTCHA. When off, only when card testing is suspected."},"download_limit_count":{"type":"integer","nullable":true},"download_limit_days":{"type":"integer","nullable":true},"pdf_stamp_text":{"type":"string","nullable":true},"show_incl_tax":{"type":"boolean","description":"Default for new products: list prices including tax."},"force_country_from_ip":{"type":"boolean","description":"Set the customer's country from their IP address instead of letting them choose."},"shipping_tax_mode":{"type":"string","enum":["goods_rate","pass_through_untaxed"],"description":"How shipping on physical products is taxed. goods_rate: like the items it ships. pass_through_untaxed: no tax on shipping, for shipping passed on at exact cost on the buyer's behalf and booked separately (e.g. a Danish cost outlay)."},"verified_invoice_sender_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that invoices are sent from. Only with verified senders turned on."}}}}}}}},"401":{"description":"Unauthorized"}},"description":"Returns only the groups the key may manage. Values are as stored: a blank sender or reply-to falls back to the account defaults when emails are sent."},"patch":{"summary":"Update the account settings","tags":["Account"],"x-simplero-resource-type":"account","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"handle":{"type":"string"},"currency_code":{"type":"string"},"tax_percent":{"type":"number","nullable":true,"description":"Tax percent used when editing and showing prices, 0 to under 100. Can be null when left blank in the admin; the API does not accept null."},"tax_strategy":{"type":"string","enum":["eu_vat","simple","no_tax"],"description":"no_tax: never add tax. simple: for businesses outside the EU/UK; EU VAT is still added when relevant. eu_vat: for businesses in the EU or the UK."},"name":{"type":"string"},"sender_name":{"type":"string"},"sender_email":{"type":"string","nullable":true,"description":"A new address creates a verified email and sends a verification email. Wins over sender_verified_email_id when both change."},"sender_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"reply_to":{"type":"string","nullable":true,"description":"A new address creates a verified email and sends a verification email. Wins over reply_to_verified_email_id when both change."},"reply_to_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"support_email":{"type":"string"},"company_name":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"address_2":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"region_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"phone_number":{"type":"string","nullable":true},"company_legal_id":{"type":"string","nullable":true},"company_legal_id_private":{"type":"boolean","nullable":true},"customer_locale":{"type":"string","enum":["en","da","nl","fr","de","it","ja-JP","no","pt","es","sv","pl","sk","fi","hu"],"description":"Language of emails, checkout and member pages."},"force_order_form_locale":{"type":"boolean","nullable":true},"show_currency_symbols":{"type":"boolean","description":"Show £ or € instead of GBP or EUR. Currencies that share a symbol ($, kr, ¥) keep their code."},"time_zone":{"type":"string","description":"A Rails time zone name, e.g. \"Copenhagen\"."},"first_day_of_week":{"type":"integer","enum":[0,1],"description":"0 = Sunday, 1 = Monday"},"time_format_24h":{"type":"boolean","nullable":true},"terms":{"type":"string","nullable":true},"terms_title":{"type":"string","nullable":true},"terms_url":{"type":"string","nullable":true},"privacy_policy_url":{"type":"string","nullable":true},"footer_include_details":{"type":"boolean","nullable":true},"broadcast_footer":{"type":"string","nullable":true},"when_name_missing":{"type":"string","nullable":true,"description":"Greeting name used when a contact has no name. Null means the default for the customer locale."},"use_system_greetings":{"type":"boolean","nullable":true},"greetings":{"type":"string","nullable":true},"email_filler_copy":{"type":"string","nullable":true},"request_gdpr_consent":{"type":"string","enum":["off","eu_only","on"]},"gdpr_consent_lists_message":{"type":"string","nullable":true},"gdpr_consent_checkout_message":{"type":"string","nullable":true},"cookie_consent_type":{"type":"string","enum":["none","info","opt_in","always_opt_in"]},"google_consent_mode_advanced":{"type":"boolean","description":"Google Consent Mode advanced: Google tags load before visitors choose, and send Google cookieless pings while a visitor has not accepted cookies. Only used when cookie_consent_type is opt_in or always_opt_in. Not on every account yet: turning it on where it is not available is refused."},"verified_sender_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that emails are sent from. Only with verified senders turned on."},"verified_reply_to_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that replies go to. Only with verified senders turned on."},"invoice_bcc":{"type":"string","nullable":true},"credit_note_bcc":{"type":"string","nullable":true},"next_invoice_id":{"type":"integer","nullable":true},"invoice_number_format":{"type":"string","description":"Must contain {{number}}."},"invoice_sender_name":{"type":"string","nullable":true},"invoice_sender_email":{"type":"string","nullable":true},"invoice_sender_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"text_for_invoice":{"type":"string","nullable":true},"max_failed_charges":{"type":"integer"},"days_between_charge_retries":{"type":"integer"},"restart_period_on_reactivation":{"type":"boolean"},"renewal_warn_period_days":{"type":"integer","nullable":true},"renewal_warn_days":{"type":"integer","nullable":true},"failed_payment_subject":{"type":"string","nullable":true},"failed_payment_description":{"type":"string","nullable":true},"failed_purchase_text":{"type":"string","nullable":true},"charge_notification_pay_button_text":{"type":"string","nullable":true},"text_for_login_email":{"type":"string","nullable":true},"cart_optin_type":{"type":"string","enum":["default","custom","none"],"description":"Label, sublabel, list and pre-checked only stick with \"custom\"."},"cart_optin_label":{"type":"string","nullable":true},"cart_optin_sublabel":{"type":"string","nullable":true},"cart_optin_list_id":{"type":"integer","nullable":true,"description":"A list of this account."},"cart_optin_pre_checked":{"type":"boolean"},"default_wants_marketing":{"type":"boolean","nullable":true},"main_list_id":{"type":"integer","description":"A list of this account."},"new_purchase_notification_emails":{"type":"string","nullable":true},"show_installments_total":{"type":"boolean"},"show_repurchase_warning":{"type":"boolean"},"coupon_code_open_by_default":{"type":"boolean"},"save_checkout_leads":{"type":"string","enum":["outside_gdpr","always","never"],"description":"When the one-step order form saves the buyer's email before they submit, so abandoned-cart automations can reach them. outside_gdpr: every buyer except those subject to GDPR (EU, UK). always: every buyer. never: only on submit."},"checkout_captcha_always":{"type":"boolean","description":"Every logged-out checkout with a new NMI or Spreedly card asks for reCAPTCHA. When off, only when card testing is suspected."},"download_limit_count":{"type":"integer","nullable":true},"download_limit_days":{"type":"integer","nullable":true},"pdf_stamp_text":{"type":"string","nullable":true},"show_incl_tax":{"type":"boolean","description":"Default for new products: list prices including tax."},"force_country_from_ip":{"type":"boolean","description":"Set the customer's country from their IP address instead of letting them choose."},"shipping_tax_mode":{"type":"string","enum":["goods_rate","pass_through_untaxed"],"description":"How shipping on physical products is taxed. goods_rate: like the items it ships. pass_through_untaxed: no tax on shipping, for shipping passed on at exact cost on the buyer's behalf and booked separately (e.g. a Danish cost outlay)."},"verified_invoice_sender_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that invoices are sent from. Only with verified senders turned on."}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Send only the fields to change, at the top level of the body. Runs the same validations as the admin\nsettings pages. Unknown and read-only fields are refused; read-only fields echoed back unchanged\nfrom a GET are ignored. Handle, domain, currency, custom code and branding are not writable here.\nTax settings need \"Products\"; tax rates per country are at `/api/v2/tax_regions`.\n\nWith verified senders turned on, the senders are `verified_sender_id`, `verified_reply_to_id` and\n`verified_invoice_sender_id`. The plain sender fields they replace are then read-only.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"sender_name":{"type":"string"},"sender_email":{"type":"string","nullable":true,"description":"A new address creates a verified email and sends a verification email. Wins over sender_verified_email_id when both change."},"sender_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"reply_to":{"type":"string","nullable":true,"description":"A new address creates a verified email and sends a verification email. Wins over reply_to_verified_email_id when both change."},"reply_to_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"support_email":{"type":"string"},"company_name":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"address_2":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"region_code":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"phone_number":{"type":"string","nullable":true},"company_legal_id":{"type":"string","nullable":true},"company_legal_id_private":{"type":"boolean","nullable":true},"customer_locale":{"type":"string","enum":["en","da","nl","fr","de","it","ja-JP","no","pt","es","sv","pl","sk","fi","hu"],"description":"Language of emails, checkout and member pages."},"force_order_form_locale":{"type":"boolean","nullable":true},"show_currency_symbols":{"type":"boolean","description":"Show £ or € instead of GBP or EUR. Currencies that share a symbol ($, kr, ¥) keep their code."},"time_zone":{"type":"string","description":"A Rails time zone name, e.g. \"Copenhagen\"."},"first_day_of_week":{"type":"integer","enum":[0,1],"description":"0 = Sunday, 1 = Monday"},"time_format_24h":{"type":"boolean","nullable":true},"terms":{"type":"string","nullable":true},"terms_title":{"type":"string","nullable":true},"terms_url":{"type":"string","nullable":true},"privacy_policy_url":{"type":"string","nullable":true},"footer_include_details":{"type":"boolean","nullable":true},"broadcast_footer":{"type":"string","nullable":true},"when_name_missing":{"type":"string","nullable":true,"description":"Greeting name used when a contact has no name. Null means the default for the customer locale."},"use_system_greetings":{"type":"boolean","nullable":true},"greetings":{"type":"string","nullable":true},"email_filler_copy":{"type":"string","nullable":true},"request_gdpr_consent":{"type":"string","enum":["off","eu_only","on"]},"gdpr_consent_lists_message":{"type":"string","nullable":true},"gdpr_consent_checkout_message":{"type":"string","nullable":true},"cookie_consent_type":{"type":"string","enum":["none","info","opt_in","always_opt_in"]},"google_consent_mode_advanced":{"type":"boolean","description":"Google Consent Mode advanced: Google tags load before visitors choose, and send Google cookieless pings while a visitor has not accepted cookies. Only used when cookie_consent_type is opt_in or always_opt_in. Not on every account yet: turning it on where it is not available is refused."},"verified_sender_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that emails are sent from. Only with verified senders turned on."},"verified_reply_to_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that replies go to. Only with verified senders turned on."},"invoice_bcc":{"type":"string","nullable":true},"credit_note_bcc":{"type":"string","nullable":true},"next_invoice_id":{"type":"integer","nullable":true},"invoice_number_format":{"type":"string","description":"Must contain {{number}}."},"invoice_sender_name":{"type":"string","nullable":true},"invoice_sender_email":{"type":"string","nullable":true},"invoice_sender_verified_email_id":{"type":"integer","nullable":true,"description":"A verified email of this account."},"text_for_invoice":{"type":"string","nullable":true},"max_failed_charges":{"type":"integer"},"days_between_charge_retries":{"type":"integer"},"restart_period_on_reactivation":{"type":"boolean"},"renewal_warn_period_days":{"type":"integer","nullable":true},"renewal_warn_days":{"type":"integer","nullable":true},"failed_payment_subject":{"type":"string","nullable":true},"failed_payment_description":{"type":"string","nullable":true},"failed_purchase_text":{"type":"string","nullable":true},"charge_notification_pay_button_text":{"type":"string","nullable":true},"text_for_login_email":{"type":"string","nullable":true},"cart_optin_type":{"type":"string","enum":["default","custom","none"],"description":"Label, sublabel, list and pre-checked only stick with \"custom\"."},"cart_optin_label":{"type":"string","nullable":true},"cart_optin_sublabel":{"type":"string","nullable":true},"cart_optin_list_id":{"type":"integer","nullable":true,"description":"A list of this account."},"cart_optin_pre_checked":{"type":"boolean"},"default_wants_marketing":{"type":"boolean","nullable":true},"main_list_id":{"type":"integer","description":"A list of this account."},"new_purchase_notification_emails":{"type":"string","nullable":true},"show_installments_total":{"type":"boolean"},"show_repurchase_warning":{"type":"boolean"},"coupon_code_open_by_default":{"type":"boolean"},"save_checkout_leads":{"type":"string","enum":["outside_gdpr","always","never"],"description":"When the one-step order form saves the buyer's email before they submit, so abandoned-cart automations can reach them. outside_gdpr: every buyer except those subject to GDPR (EU, UK). always: every buyer. never: only on submit."},"checkout_captcha_always":{"type":"boolean","description":"Every logged-out checkout with a new NMI or Spreedly card asks for reCAPTCHA. When off, only when card testing is suspected."},"download_limit_count":{"type":"integer","nullable":true},"download_limit_days":{"type":"integer","nullable":true},"pdf_stamp_text":{"type":"string","nullable":true},"tax_percent":{"type":"number","nullable":true,"description":"Tax percent used when editing and showing prices, 0 to under 100. Can be null when left blank in the admin; the API does not accept null."},"tax_strategy":{"type":"string","enum":["eu_vat","simple","no_tax"],"description":"no_tax: never add tax. simple: for businesses outside the EU/UK; EU VAT is still added when relevant. eu_vat: for businesses in the EU or the UK."},"show_incl_tax":{"type":"boolean","description":"Default for new products: list prices including tax."},"force_country_from_ip":{"type":"boolean","description":"Set the customer's country from their IP address instead of letting them choose."},"shipping_tax_mode":{"type":"string","enum":["goods_rate","pass_through_untaxed"],"description":"How shipping on physical products is taxed. goods_rate: like the items it ships. pass_through_untaxed: no tax on shipping, for shipping passed on at exact cost on the buyer's behalf and booked separately (e.g. a Danish cost outlay)."},"verified_invoice_sender_id":{"type":"integer","nullable":true,"description":"A verified email of this account (see /verified_emails) that invoices are sent from. Only with verified senders turned on."}}}}}}}},"/api/v2/account_currencies":{"get":{"summary":"List account currencies","tags":["Account Currencies"],"x-simplero-resource-type":"account_currencies","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AccountCurrency"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]}},"/api/v2/account_currencies/{id}":{"get":{"summary":"Get a account currency","tags":["Account Currencies"],"x-simplero-resource-type":"account_currencies","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AccountCurrency"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/actions/available":{"get":{"summary":"List available actions for a target type","tags":["Actions"],"x-simplero-resource-type":"actions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Fully qualified action id, e.g. `Customer-library_mailing`."},"title":{"type":"string","description":"Human-readable title of the action."}},"required":["id","title"]}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"description":"Returns the action ids and titles available for a given target type. Target type is the model the\naction runs on (e.g. `Customer`, `Ticket`, `Deal`). Pass `automation: true` to filter to actions\nthat can run inside automations/triggers.\n\nUse this together with `GET actions/detail` to discover the typed `args` schema for each action\nbefore creating or updating an Action.\n","parameters":[{"name":"target_type","in":"query","required":false,"schema":{"type":"string","description":"Model name the action runs on. Defaults to `Customer`."},"description":"Model name the action runs on. Defaults to `Customer`."},{"name":"automation","in":"query","required":false,"schema":{"type":"boolean","description":"When true, restrict to actions that can run inside automations/triggers."},"description":"When true, restrict to actions that can run inside automations/triggers."}]}},"/api/v2/actions/detail":{"get":{"summary":"Get the typed args schema for an action","tags":["Actions"],"x-simplero-resource-type":"actions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"The action id."},"title":{"type":"string","description":"Human-readable title of the action."},"args":{"type":"object","additionalProperties":{"type":"object"},"description":"Map of arg name → JSON schema describing its type."}},"required":["id","title","args"]}}}}}},"401":{"description":"Unauthorized"}},"description":"Returns the typed `args` schema for a fully qualified action id, e.g. `Customer-library_mailing`.\nUse this to learn what to pass in the `args` field when creating or updating an Action.\n\nDuration args are surfaced as their underlying `_count` / `_unit` / `_sign` / `_seconds` sub-args,\nnot as a single `duration` type.\n","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","description":"Fully qualified action id, e.g. `Customer-library_mailing`."},"description":"Fully qualified action id, e.g. `Customer-library_mailing`."}]}},"/api/v2/actions":{"get":{"summary":"List actions","tags":["Actions"],"x-simplero-resource-type":"actions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Action"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]},"post":{"summary":"Create a action","tags":["Actions"],"x-simplero-resource-type":"actions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Action"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}}}},"/api/v2/actions/{id}":{"get":{"summary":"Get a action","tags":["Actions"],"x-simplero-resource-type":"actions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Action"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a action","tags":["Actions"],"x-simplero-resource-type":"actions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Action"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionOptional"}}}}}},"/api/v2/administratorships":{"get":{"summary":"List administrators","tags":["Administratorships"],"x-simplero-resource-type":"administratorships","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Administratorship"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"last_login_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"ticket_assignee","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"show_on_ticket","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"enabled","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"admin_role_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"date","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via user - first_names, last_name, email, username)."},"description":"Search records (matches via user - first_names, last_name, email, username)."}]}},"/api/v2/administratorships/{id}":{"get":{"summary":"Get a administrator","tags":["Administratorships"],"x-simplero-resource-type":"administratorships","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Administratorship"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/administratorships/{id}/actions/delete":{"post":{"summary":"Delete Administratorship","tags":["Administratorships"],"x-simplero-resource-type":"administratorships","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliate_clicks":{"get":{"summary":"List affiliate clicks","tags":["Affiliate Clicks"],"x-simplero-resource-type":"affiliate_clicks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AffiliateClick"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_link_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"affiliate_program_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ip_address","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"url","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"path","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["unique","repeat"]}},{"name":"product_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page_type","in":"query","required":false,"schema":{"type":"string","enum":["product_sales_page","product_order_form"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via url, ip_address, affiliate - name, first_names, last_name, email)."},"description":"Search records (matches via url, ip_address, affiliate - name, first_names, last_name, email)."}]}},"/api/v2/affiliate_clicks/{id}":{"get":{"summary":"Get a affiliate click","tags":["Affiliate Clicks"],"x-simplero-resource-type":"affiliate_clicks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AffiliateClick"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/affiliate_links":{"get":{"summary":"List affiliate links","tags":["Affiliate Links"],"x-simplero-resource-type":"affiliate_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AffiliateLink"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"affiliate_program_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a affiliate link","tags":["Affiliate Links"],"x-simplero-resource-type":"affiliate_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AffiliateLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffiliateLink"}}}}}},"/api/v2/affiliate_links/{id}":{"get":{"summary":"Get a affiliate link","tags":["Affiliate Links"],"x-simplero-resource-type":"affiliate_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AffiliateLink"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a affiliate link","tags":["Affiliate Links"],"x-simplero-resource-type":"affiliate_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AffiliateLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffiliateLinkOptional"}}}}}},"/api/v2/affiliate_programs":{"get":{"summary":"List affiliate programs","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AffiliateProgram"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]},"post":{"summary":"Create a affiliate program","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AffiliateProgram"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffiliateProgram"}}}}}},"/api/v2/affiliate_programs/{id}":{"get":{"summary":"Get a affiliate program","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AffiliateProgram"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a affiliate program","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AffiliateProgram"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffiliateProgramOptional"}}}}}},"/api/v2/affiliate_programs/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/affiliate_programs/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/affiliate_programs/{id}/actions/reset_registration_token":{"post":{"summary":"Reset registration link","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliate_programs/{id}/actions/pay_affiliates":{"post":{"summary":"Pay affiliates","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Starts paying affiliates the commission they are owed through the program's PayPal payout method, in the background. Answers 422 with the reason when the payout method is manual or PayPal is not set up. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliate_programs/{id}/actions/star":{"post":{"summary":"Star","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliate_programs/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Affiliate Programs"],"x-simplero-resource-type":"affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates":{"get":{"summary":"List affiliates","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Affiliate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"payout_state","in":"query","required":false,"schema":{"type":"string","enum":["payable","missing_paypal_email","missing_documentation","review_documentation","has_documentation","not_payoutable_via_paypal_masspay"]}},{"name":"affiliate_program_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"last_unit_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"last_payout_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]},"post":{"summary":"Create a affiliate","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Affiliate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Affiliate"}}}}}},"/api/v2/affiliates/{id}":{"get":{"summary":"Get a affiliate","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Affiliate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a affiliate","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Affiliate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AffiliateOptional"}}}}}},"/api/v2/affiliates/{id}/actions/post_to_conversation":{"post":{"summary":"Post message to conversation","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"},"message":{"type":"string"}}}}}}}},"/api/v2/affiliates/{id}/actions/add_to_conversation":{"post":{"summary":"Add to conversation","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/affiliates/{id}/actions/approve":{"post":{"summary":"Approve","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/reject":{"post":{"summary":"Reject","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/retire":{"post":{"summary":"Retire","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/resend_welcome":{"post":{"summary":"Resend welcome","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/approve_documentation":{"post":{"summary":"Approve documentation","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/request_documentation":{"post":{"summary":"Request documentation","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/mark_paid":{"post":{"summary":"Mark paid","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/send_login_link":{"post":{"summary":"Send login link","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/affiliates/{id}/actions/move_to_other_affiliate_program":{"post":{"summary":"Move to other affiliate program","tags":["Affiliates"],"x-simplero-resource-type":"affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"affiliate_program_id":{"type":"integer","description":"AffiliateProgram"}}}}}}}},"/api/v2/agentic_workflow_files":{"get":{"summary":"List agentic workflow files","tags":["Agentic Workflow Files"],"x-simplero-resource-type":"agentic_workflow_files","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgenticWorkflowFile"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"agentic_workflow_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"path","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a agentic workflow file","tags":["Agentic Workflow Files"],"x-simplero-resource-type":"agentic_workflow_files","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflowFile"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgenticWorkflowFile"}}}}}},"/api/v2/agentic_workflow_files/{id}":{"get":{"summary":"Get a agentic workflow file","tags":["Agentic Workflow Files"],"x-simplero-resource-type":"agentic_workflow_files","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflowFile"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a agentic workflow file","tags":["Agentic Workflow Files"],"x-simplero-resource-type":"agentic_workflow_files","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflowFile"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgenticWorkflowFileOptional"}}}}}},"/api/v2/agentic_workflow_runs/{id}/activity":{"get":{"summary":"Read a run's activity log","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"turns":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["agent","tool","user"],"description":"Who or what the turn came from."},"text":{"type":"string","description":"The turn itself, in the agent's own words. Markdown."}}}},"live":{"type":"boolean","description":"False once the run has ended and nothing more will be added."}}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Everything the agent has narrated, most recent last, as it now stands. This is a window onto the\nwork rather than part of it: the log is bounded, so a long run's oldest turns are dropped.\n\n`kind` says how to read a turn — `agent` is the agent's own narration, `tool` is a one-line label\nof something it did, and `user` is a message that was sent to the run.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/agentic_workflow_runs/{id}/actions/message":{"post":{"summary":"Send a message to a run","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflowRun"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Everything a caller says to a run once it is under way. Send `answer` when the run is waiting on\na question — `waiting_on` on the run says what it asked. A run picks messages up on its own; there\nis nothing else to call afterwards.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","description":"What to tell the run, in the words it should read."},"type":{"type":"string","enum":["general","question","answer"],"description":"Defaults to `general`."}},"required":["content"]}}}}}},"/api/v2/agentic_workflow_runs":{"get":{"summary":"List agentic workflow runs","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgenticWorkflowRun"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":[0,1,2,3,4,5,6]}},{"name":"agentic_workflow_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a agentic workflow run","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflowRun"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgenticWorkflowRun"}}}}}},"/api/v2/agentic_workflow_runs/{id}":{"get":{"summary":"Get a agentic workflow run","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflowRun"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/agentic_workflow_runs/{id}/actions/pause":{"post":{"summary":"Pause","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/agentic_workflow_runs/{id}/actions/resume":{"post":{"summary":"Resume","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/agentic_workflow_runs/{id}/actions/stop":{"post":{"summary":"Stop","tags":["Agentic Workflow Runs"],"x-simplero-resource-type":"agentic_workflow_runs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/agentic_workflows":{"get":{"summary":"List agentic workflows","tags":["Agentic Workflows"],"x-simplero-resource-type":"agentic_workflows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgenticWorkflow"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via key, name)."},"description":"Search records (matches via key, name)."}]},"post":{"summary":"Create a agentic workflow","tags":["Agentic Workflows"],"x-simplero-resource-type":"agentic_workflows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflow"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgenticWorkflow"}}}}}},"/api/v2/agentic_workflows/{id}":{"get":{"summary":"Get a agentic workflow","tags":["Agentic Workflows"],"x-simplero-resource-type":"agentic_workflows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflow"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a agentic workflow","tags":["Agentic Workflows"],"x-simplero-resource-type":"agentic_workflows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AgenticWorkflow"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgenticWorkflowOptional"}}}}}},"/api/v2/ai_credit_usage":{"get":{"summary":"Read AI credit usage by contact","tags":["Ai Credit Usage"],"x-simplero-resource-type":"ai_credit_usage","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"contact_id":{"type":"integer"},"email":{"type":"string","nullable":true},"deleted_at":{"type":"string","format":"date-time","nullable":true},"credits_consumed":{"type":"number"},"bots":{"type":"array","items":{"type":"object","properties":{"bot_id":{"type":"integer","nullable":true},"credits_consumed":{"type":"number"},"current_window_start":{"type":"string","format":"date-time","nullable":true},"current_window_reset_at":{"type":"string","format":"date-time","nullable":true},"credits_remaining":{"type":"number","nullable":true},"allowance":{"type":"number","nullable":true}}}},"current_window_start":{"type":"string","format":"date-time","nullable":true},"current_window_reset_at":{"type":"string","format":"date-time","nullable":true},"credits_remaining":{"type":"number","nullable":true},"allowance":{"type":"number","nullable":true}}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"description":"Tracked credits for a site over [from, to), in UTC. Lists contacts with usage in the range;\ncontact_id also returns a contact with zero usage. Pending wallet debits are included.\nTop-level quota fields describe the site/account default, or bot quota when bot_id is supplied.\nEach bot breakdown includes its own quota. Null means unknown or unlimited; no personal wallet is exposed.\nHistorical usage includes soft-deleted contacts, identified by deleted_at.\n","parameters":[{"name":"site_id","in":"query","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}},{"name":"contact_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"bot_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}]}},"/api/v2/alternative_prices":{"get":{"summary":"List alternative prices","tags":["Alternative Prices"],"x-simplero-resource-type":"alternative_prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AlternativePrice"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"priceable_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"priceable_type","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a alternative price","tags":["Alternative Prices"],"x-simplero-resource-type":"alternative_prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AlternativePrice"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlternativePrice"}}}}}},"/api/v2/alternative_prices/{id}":{"get":{"summary":"Get a alternative price","tags":["Alternative Prices"],"x-simplero-resource-type":"alternative_prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AlternativePrice"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a alternative price","tags":["Alternative Prices"],"x-simplero-resource-type":"alternative_prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AlternativePrice"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlternativePriceOptional"}}}}}},"/api/v2/asset_bookmarks":{"get":{"summary":"List bookmarks","tags":["Asset Bookmarks"],"x-simplero-resource-type":"asset_bookmarks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetBookmark"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"asset_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a bookmark","tags":["Asset Bookmarks"],"x-simplero-resource-type":"asset_bookmarks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AssetBookmark"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBookmark"}}}}}},"/api/v2/asset_bookmarks/{id}":{"get":{"summary":"Get a bookmark","tags":["Asset Bookmarks"],"x-simplero-resource-type":"asset_bookmarks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AssetBookmark"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a bookmark","tags":["Asset Bookmarks"],"x-simplero-resource-type":"asset_bookmarks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AssetBookmark"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBookmarkOptional"}}}}}},"/api/v2/asset_bookmarks/{id}/actions/delete":{"post":{"summary":"Delete Bookmark","tags":["Asset Bookmarks"],"x-simplero-resource-type":"asset_bookmarks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the bookmark without deleting the asset.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets":{"post":{"summary":"Create a media file","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Asset"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Upload a file (image, video, document, etc.) via multipart form data.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The file to upload (multipart)"},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"alt_text":{"type":"string","description":"Text describing the image for screen readers and when it fails to load."},"public":{"type":"boolean","description":"Whether links to the file are publicly accessible. When false, links are private and encoded."},"filename":{"type":"string","readOnly":true},"content_type":{"type":"string","readOnly":true},"size":{"type":"integer","readOnly":true},"duration_seconds":{"type":"integer","readOnly":true},"width":{"type":"integer","readOnly":true},"height":{"type":"integer","readOnly":true},"last_played_at":{"type":"string","format":"date-time","readOnly":true,"description":"When a member last played the video or audio. Updated at most once a day; blank if never played."},"media_type":{"type":"string","readOnly":true},"url":{"type":"string","readOnly":true},"transcript":{"type":"string","readOnly":true},"source_asset_id":{"type":"integer","readOnly":true,"description":"The original asset ID for an immutable image crop. Empty for other assets."},"crop_rectangle":{"type":"object","properties":{"x":{"type":"integer"},"y":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"}},"nullable":true,"readOnly":true,"description":"The crop rectangle in current oriented original-image pixels; its relative region survives replacement. Empty for other assets."},"image_generation":{"type":"object","properties":{"prompt":{"type":"string"},"style":{"type":"string"},"model":{"type":"string"},"size":{"type":"string"},"user_id":{"type":"integer","nullable":true}},"nullable":true,"readOnly":true,"description":"The prompt, art style, model, size, and creator user ID of an approved AI-generated image. Empty for other assets."},"still_frame_asset_id":{"type":"integer","description":"For video assets, the ID of an image asset (in this account) to use as the still frame / poster. Only settable on video assets."},"bookmarks":{"type":"array","items":{"$ref":"#/components/schemas/AssetBookmark"},"readOnly":true,"description":"The asset's shared chapter markers, ordered by position in seconds."},"bookmark_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"The asset's shared chapter markers, ordered by position in seconds."},"transcript_sentences_with_timestamps":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The segment text."},"start":{"type":"number","description":"Start time in seconds."},"end":{"type":"number","description":"End time in seconds."}},"required":["text","start","end"]},"nullable":true,"readOnly":true,"description":"Sentence-level transcript segments with start/end timestamps in seconds. Null when no timestamped transcript is available."},"has_transcript":{"type":"boolean","readOnly":true,"description":"Whether the original asset has timestamped transcript segments. A plain transcript can exist without them. Renditions read transcript fields from their original."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["file"]}}}}},"get":{"summary":"List media files","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"ai_generated","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"user_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"size","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"media_type","in":"query","required":false,"schema":{"type":"string","enum":["video","audio","image","pdf","svg","javascript","css","font","other"]}},{"name":"conversion_state","in":"query","required":false,"schema":{"type":"string"}},{"name":"conversion_started_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"conversion_finished_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"job_locked_host","in":"query","required":false,"schema":{"type":"string"}},{"name":"job_locked_pid","in":"query","required":false,"schema":{"type":"string"}},{"name":"transcription_status","in":"query","required":false,"schema":{"type":"string","enum":["transcribed","transcription_in_progress","not_transcribed"]}},{"name":"unused","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"last_played_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"not_played","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"aspect_ratio","in":"query","required":false,"schema":{"type":"string","enum":["ratio_16_9","ratio_9_16","ratio_4_5","ratio_5_4","ratio_4_3","ratio_3_4","square","portrait","landscape"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via filename, title, content_type)."},"description":"Search records (matches via filename, title, content_type)."}]}},"/api/v2/assets/create_from_url":{"post":{"summary":"Create an asset from a URL","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Asset"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Import a file (image, video, document, etc.) into the media library from an external HTTP(S) URL — no multipart upload needed.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","readOnly":true},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"alt_text":{"type":"string","description":"Text describing the image for screen readers and when it fails to load."},"public":{"type":"boolean","description":"Whether links to the file are publicly accessible. When false, links are private and encoded."},"filename":{"type":"string","readOnly":true},"content_type":{"type":"string","readOnly":true},"size":{"type":"integer","readOnly":true},"duration_seconds":{"type":"integer","readOnly":true},"width":{"type":"integer","readOnly":true},"height":{"type":"integer","readOnly":true},"last_played_at":{"type":"string","format":"date-time","readOnly":true,"description":"When a member last played the video or audio. Updated at most once a day; blank if never played."},"media_type":{"type":"string","readOnly":true},"transcript":{"type":"string","readOnly":true},"source_asset_id":{"type":"integer","readOnly":true,"description":"The original asset ID for an immutable image crop. Empty for other assets."},"crop_rectangle":{"type":"object","properties":{"x":{"type":"integer"},"y":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"}},"nullable":true,"readOnly":true,"description":"The crop rectangle in current oriented original-image pixels; its relative region survives replacement. Empty for other assets."},"image_generation":{"type":"object","properties":{"prompt":{"type":"string"},"style":{"type":"string"},"model":{"type":"string"},"size":{"type":"string"},"user_id":{"type":"integer","nullable":true}},"nullable":true,"readOnly":true,"description":"The prompt, art style, model, size, and creator user ID of an approved AI-generated image. Empty for other assets."},"still_frame_asset_id":{"type":"integer","description":"For video assets, the ID of an image asset (in this account) to use as the still frame / poster. Only settable on video assets."},"bookmarks":{"type":"array","items":{"$ref":"#/components/schemas/AssetBookmark"},"readOnly":true,"description":"The asset's shared chapter markers, ordered by position in seconds."},"bookmark_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"The asset's shared chapter markers, ordered by position in seconds."},"transcript_sentences_with_timestamps":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The segment text."},"start":{"type":"number","description":"Start time in seconds."},"end":{"type":"number","description":"End time in seconds."}},"required":["text","start","end"]},"nullable":true,"readOnly":true,"description":"Sentence-level transcript segments with start/end timestamps in seconds. Null when no timestamped transcript is available."},"has_transcript":{"type":"boolean","readOnly":true,"description":"Whether the original asset has timestamped transcript segments. A plain transcript can exist without them. Renditions read transcript fields from their original."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}}}}}}},"/api/v2/assets/{id}/crop":{"post":{"summary":"Create an image crop","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Asset"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates or reuses an immutable crop recipe from oriented source pixels. The crop follows replacements of the original image. Output images are generated on demand; display width belongs to the placement.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"crop":{"type":"object","properties":{"x":{"type":"integer"},"y":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"}},"required":["x","y","width","height"]},"aspect_ratio":{"type":"number","description":"Optional destination-required width-to-height ratio, preserved when the original is replaced."}},"required":["crop"]}}}}}},"/api/v2/assets/{id}/scaled_url":{"get":{"summary":"Get a scaled image URL","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string"}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Generates a URL for a scaled version of an image asset at the given dimensions.\n\nAt least one of `width` or `height` must be provided. When both are given, `constrain`\ndetermines how the image is fit into the box.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"width","in":"query","required":false,"schema":{"type":"integer","description":"Desired width in pixels."},"description":"Desired width in pixels."},{"name":"height","in":"query","required":false,"schema":{"type":"integer","description":"Desired height in pixels."},"description":"Desired height in pixels."},{"name":"constrain","in":"query","required":false,"schema":{"type":"string","enum":["fit","fill","crop"],"description":"How to constrain the image when both width and height are given. Defaults to `fit`. `fit` keeps the image inside the box; `fill` covers the box (one dimension may exceed it); `crop` covers and crops to the box."},"description":"How to constrain the image when both width and height are given. Defaults to `fit`. `fit` keeps the image inside the box; `fill` covers the box (one dimension may exceed it); `crop` covers and crops to the box."},{"name":"convert","in":"query","required":false,"schema":{"type":"string","enum":["webp","png"],"description":"Convert the image to a different format."},"description":"Convert the image to a different format."},{"name":"retina","in":"query","required":false,"schema":{"type":"boolean","description":"Generate a 2x retina-sized URL."},"description":"Generate a 2x retina-sized URL."}]}},"/api/v2/assets/{id}":{"get":{"summary":"Get a media file","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Asset"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a media file","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Asset"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOptional"}}}}}},"/api/v2/assets/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/assets/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/assets/{id}/actions/restart_encoding":{"post":{"summary":"Restart encoding","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/force_restart_encoding":{"post":{"summary":"Force restart encoding (will restart if any service job is not locked)","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/apply_loudness_filter":{"post":{"summary":"Normalize audio levels","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/deepgram":{"post":{"summary":"Transcribe","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"language":{"type":"string"},"diarize":{"type":"string"},"merge_summary":{"type":"string"},"force":{"type":"string"}}}}}}}},"/api/v2/assets/{id}/actions/extract_text":{"post":{"summary":"Extract text","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/recreate_bookmarks":{"post":{"summary":"Regenerate bookmarks from transcript","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/show_transcript":{"post":{"summary":"Show transcript in lesson","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/hide_transcript":{"post":{"summary":"Hide transcript in lesson","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/show_subtitles":{"post":{"summary":"Show subtitles in video player","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/hide_subtitles":{"post":{"summary":"Hide subtitles in video player","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/assets/{id}/actions/delete":{"post":{"summary":"Delete Media file","tags":["Assets"],"x-simplero-resource-type":"assets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/attachments/{id}":{"delete":{"summary":"Delete an attachment","tags":["Attachments"],"x-simplero-resource-type":"attachments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes the attachment from whatever it hangs off (lesson, product, page, …).\nThe asset or worksheet it points at is left alone.\n\nPermanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]},"get":{"summary":"Get a attachment","tags":["Attachments"],"x-simplero-resource-type":"attachments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Attachment"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a attachment","tags":["Attachments"],"x-simplero-resource-type":"attachments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Attachment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentOptional"}}}}}},"/api/v2/attachments":{"get":{"summary":"List attachments","tags":["Attachments"],"x-simplero-resource-type":"attachments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"attachable_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"attachable_type","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a attachment","tags":["Attachments"],"x-simplero-resource-type":"attachments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Attachment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}}}},"/api/v2/attachments/{id}/actions/delete":{"post":{"summary":"Delete Attachment","tags":["Attachments"],"x-simplero-resource-type":"attachments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the attachment and its downloads, prepared downloads and likes. The underlying asset is kept.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/automations":{"get":{"summary":"List automations","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Automation"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"object_type","in":"query","required":false,"schema":{"type":"string","enum":["Customer","Subscription","OptIn","Entrant","Purchase","EventOccurrenceParticipant","Deal","Affiliate","SurveyResponse","WorksheetResponse","CoachingClient","Ticket","SiteMember","SiteGroupRequest"]}},{"name":"force_customer","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"always_run","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"allow_duplicate_active_contact","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a automation","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Automation"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Automation"}}}}}},"/api/v2/automations/{id}":{"get":{"summary":"Get a automation","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Automation"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a automation","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Automation"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationOptional"}}}}}},"/api/v2/automations/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/automations/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/automations/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/automations/{id}/actions/star":{"post":{"summary":"Star","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/automations/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/automations/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/automations/{id}/actions/duplicate_reuse":{"post":{"summary":"Duplicate \u0026 reuse same emails","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/automations/{id}/actions/delete":{"post":{"summary":"Delete Automation","tags":["Automations"],"x-simplero-resource-type":"automations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this automation's automation steps first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/availabilities":{"get":{"summary":"List availability presets","tags":["Availabilities"],"x-simplero-resource-type":"availabilities","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Availability"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a availability preset","tags":["Availabilities"],"x-simplero-resource-type":"availabilities","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Availability"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}}}}},"/api/v2/availabilities/{id}":{"get":{"summary":"Get a availability preset","tags":["Availabilities"],"x-simplero-resource-type":"availabilities","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Availability"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a availability preset","tags":["Availabilities"],"x-simplero-resource-type":"availabilities","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Availability"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityOptional"}}}}}},"/api/v2/availabilities/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Availabilities"],"x-simplero-resource-type":"availabilities","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/availabilities/{id}/actions/delete":{"post":{"summary":"Delete Availability preset","tags":["Availabilities"],"x-simplero-resource-type":"availabilities","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/availability_periods":{"get":{"summary":"List availability periods","tags":["Availability Periods"],"x-simplero-resource-type":"availability_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilityPeriod"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"price_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a availability period","tags":["Availability Periods"],"x-simplero-resource-type":"availability_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AvailabilityPeriod"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityPeriod"}}}}}},"/api/v2/availability_periods/{id}":{"get":{"summary":"Get a availability period","tags":["Availability Periods"],"x-simplero-resource-type":"availability_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AvailabilityPeriod"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a availability period","tags":["Availability Periods"],"x-simplero-resource-type":"availability_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AvailabilityPeriod"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityPeriodOptional"}}}}}},"/api/v2/awarded_certificates":{"get":{"summary":"List awarded certificates","tags":["Awarded Certificates"],"x-simplero-resource-type":"awarded_certificates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AwardedCertificate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"certificate_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"site_member_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]}},"/api/v2/awarded_certificates/{id}":{"get":{"summary":"Get a awarded certificate","tags":["Awarded Certificates"],"x-simplero-resource-type":"awarded_certificates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AwardedCertificate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/badges":{"get":{"summary":"List badges","tags":["Badges"],"x-simplero-resource-type":"badges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Badge"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"system_badge","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, emoji)."},"description":"Search records (matches via name, emoji)."}]},"post":{"summary":"Create a badge","tags":["Badges"],"x-simplero-resource-type":"badges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Badge"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Badge"}}}}}},"/api/v2/badges/{id}":{"get":{"summary":"Get a badge","tags":["Badges"],"x-simplero-resource-type":"badges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Badge"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a badge","tags":["Badges"],"x-simplero-resource-type":"badges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Badge"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadgeOptional"}}}}}},"/api/v2/badges/{id}/actions/delete":{"post":{"summary":"Delete Badge","tags":["Badges"],"x-simplero-resource-type":"badges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this badge and the awards already given to customers. System badges cannot be deleted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blocks":{"post":{"summary":"Create a block","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Block"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create a Saved or Global block from a builder node tree.\n\nRequired: `name` and `content` (a single root node hash: section, row, column, or element —\nsame shape as builder `nodes` create). `base_type` is derived from the root node.\n\nOptional: `global` (default false — saved block; true — global block), `description`,\n`available_to_everyone` (template sharing; typically only for blank-slate templates).\n\nBlocks are **account-scoped**. After create, edit content via the builder endpoints on this\nblock (`/api/v2/blocks/:id/builder/content/...`). For a global block, publishing content\nupdates every page instance that embeds it.\n\nTo place a block on a page, POST to that page's builder nodes endpoint with `block_id`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"global":{"type":"boolean","description":"true = global (live-linked); false = saved (copy on insert)"},"available_to_everyone":{"type":"boolean"},"content":{"type":"object","description":"Root builder node tree used to seed the block (required). Same shape as a builder node: type, settings, children."}},"required":["name","content"]}}}}},"get":{"summary":"List saved blocks","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Block"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"facet_value_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"base_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"global","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, description)."},"description":"Search records (matches via name, description)."}]}},"/api/v2/blocks/{id}":{"get":{"summary":"Get a saved block","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Block"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a saved block","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Block"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockOptional"}}}}}},"/api/v2/blocks/{id}/builder/content/node_types":{"get":{"summary":"List available builder node types","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"category":{"type":"string","nullable":true,"description":"Category (e.g. General, Media, Layout); null for structural containers like section/row/column"}},"required":["type","name"]}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns node types that can be added to this builder doc. If parent_node_id is given, filters to types valid as children of that node.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"parent_node_id","in":"query","required":false,"schema":{"type":"string","description":"Limit to types valid as children of this node."},"description":"Limit to types valid as children of this node."}]}},"/api/v2/blocks/{id}/builder/content/node_types/detail":{"get":{"summary":"Get builder node type schema","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"settings":{"type":"array","items":{"type":"string"},"description":"Ids of settings available on this node type. Args schemas are not included here — use the node_types/settings_detail endpoint to fetch them."}},"required":["type","name","settings"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the list of settings available on a single node type. Type is passed as a query param because it may contain slashes. To get the full args schema (defaults, types) for a specific setting, call the node_types/settings_detail endpoint with the setting ids you care about.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"}]}},"/api/v2/blocks/{id}/builder/content/node_types/settings_detail":{"get":{"summary":"Get builder node type settings detail","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{"type":"object","properties":{"args":{"type":"object","additionalProperties":{"type":"object","properties":{"default":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Default value for this arg"},"type":{"type":"string","nullable":true,"description":"Ruby type for the arg, if known (e.g. String, Integer)"},"acceptable_values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Arg value — arbitrary JSON scalar, object, or array. Shape depends on the specific setting and arg."},"nullable":true,"description":"Accepted values for enum-like args. Omitted when the arg does not restrict to a specific set."},"description":{"type":"string","nullable":true,"description":"Natural-language description of the arg. When the arg is only relevant under certain conditions, that is prepended as a sentence (e.g. \"Only when by_tag is true.\")."}}},"description":"Arg name → { default, type }. Uses these defaults when omitting args under a breakpoint."}},"required":["args"]},"description":"Setting id → { args }."}},"required":["data"]}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full args schema (defaults, types) for one or more settings of a given node type. Scoped by the node type. Returns a hash keyed by setting id. Note that the args listed here sit one level BELOW a breakpoint when you write them: a value is set as settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e], e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Use \"base\" unless you want a per-breakpoint override.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},{"name":"setting_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."}]}},"/api/v2/blocks/{id}/builder/content/nodes":{"get":{"summary":"Get the builder doc node tree","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of the tree; recursively contains children."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full working-version node tree for this record.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"post":{"summary":"Create a builder doc node","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The created node, including its generated id."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds a new node to the tree under the given parent. Pass publish_changes: true to publish the working version immediately. Note: creating an `html_section` node here is allowed but you MUST NOT pass any `settings` — to set its HTML content, create it first and then use the html_section update endpoint (POST builder/content/html_section). To insert a Saved or Global block, pass `block_id` (from GET /api/v2/blocks) instead of `type`/`settings`. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type to create (e.g. section, elements/headline). Required unless block_id is set."},"parent_node_id":{"type":"string","description":"Id of the parent node"},"after_node_id":{"type":"string","nullable":true,"description":"If set, insert after this sibling; otherwise appended"},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to leave unnamed."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Initial setting values, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Breakpoints are base, tab, mob; use \"base\" unless you want a per-breakpoint override. All settings/breakpoints/args are optional. Ignored when block_id is set."},"block_id":{"type":"integer","description":"Id of a Saved or Global block (GET /api/v2/blocks) to insert under the parent. Global blocks stay live-linked; saved blocks copy their tree once."},"publish_changes":{"type":"boolean","description":"Publish the working version after creation"}},"required":["parent_node_id"]}}}}}},"/api/v2/blocks/{id}/builder/content/nodes/{node_id}":{"get":{"summary":"Get a builder doc node","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The node."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns a single node by id from the working version.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a builder doc node","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The updated node."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Partial update — only the keys you pass are merged into the node. Settings are deep-merged. Pass publish_changes: true to publish the working version immediately. Note: `html_section` nodes cannot be updated via this endpoint — use the html_section update endpoint (POST builder/content/html_section) instead. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. Deep-merged into the node — only keys you pass are touched."},"type":{"type":"string","description":"Turn a text element into another text type, e.g. elements/paragraph into elements/headline (the editor's \"Turn into\"). Only the types the node can be turned into are accepted; its content and heading tag are converted. Settings passed in the same call are validated against the new type and applied after the conversion."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value."},"meta":{"type":"object","description":"Meta values to merge into the node. Free-form bag of keys/values."},"publish_changes":{"type":"boolean","description":"Publish the working version after update"},"revision":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."}}}}}}},"delete":{"summary":"Delete a builder doc node","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes a node from the tree. Pass publish_changes: true to publish the working version immediately.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"publish_changes","in":"query","required":false,"schema":{"type":"boolean","description":"Publish the working version after deletion"},"description":"Publish the working version after deletion"},{"name":"revision","in":"query","required":false,"schema":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},"description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blocks/{id}/builder/content/nodes/{node_id}/unlink":{"post":{"summary":"Unlink a global block instance","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The unlinked node with local settings and children."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Detaches a live-linked global block instance into a normal local section (copies current block content into the page). Mirrors the builder Unlink control. Only valid for global block instances.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"publish_changes":{"type":"boolean","description":"Publish the working version after unlinking"}}}}}}}},"/api/v2/blocks/{id}/builder/content/html_section/embed":{"post":{"summary":"Generate embed markup for a node type","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"embed_html":{"type":"string","description":"\u003cbuilder-node\u003e markup that you can use in an html section's html"}},"required":["embed_html"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Returns a \u003cbuilder-node\u003e custom element markup string that you can paste into the html of an html_section to embed a structured builder node (e.g. an order form, input field, button, signup form, etc.) inside free-form HTML.\n\nHow to use:\n  1. Use the node_types endpoints for this builder role to find the `type` of the node you want to embed and its available settings.\n  2. POST here with that `type` and any `settings` you want baked in. The response contains `embed_html` — a self-contained \u003cbuilder-node ...\u003e\u003c/builder-node\u003e snippet.\n  3. Paste that `embed_html` string verbatim into the `html` you send to the html_section update endpoint (POST builder/content/html_section). At runtime it will be replaced with the rendered node.\n\nTypical flow: build the bulk of your page as HTML via the html_section update endpoint, and sprinkle in these \u003cbuilder-node\u003e embeds wherever you need a dynamic Simplero element (order form, opt-in form, buy button, etc.) that you can't express as plain HTML.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. All settings/breakpoints/args are optional."}},"required":["type"]}}}}}},"/api/v2/blocks/{id}/builder/content/html_section":{"post":{"summary":"Create or update HTML section content","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"node_id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["node_id","html","settings","revision"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create or update the HTML content and/or the non-content settings of an html_section node.\n\n`node_id` is required. Pass either:\n  * The id of an existing `html_section` node — updates its HTML, its `settings`, or both. Pass `html`, `settings`, or both, plus the `revision` from your last read.\n  * The literal string `\"create_new\"` — creates a new `html_section` node under the root with the given `html` (required) and optional `settings`.\n\nSettings (conditional visibility and animation):\n  `settings` sets the section's non-content settings: `visibility_customer` (show/hide by tag, list, product, browser language or countdown timer), `visibility_period` (visible between two Unix timestamps), `toggle_visibility_after_page_load`, `animation`, and `visibility`. Discover their args with GET builder/content/node_types/settings_detail?type=html_section\u0026setting_ids=visibility_customer,visibility_period,toggle_visibility_after_page_load,animation. Settings are deep-merged: only the args you pass change. Use JSON booleans, e.g. `{ \"visibility_period\": { \"base\": { \"enabled\": true, \"visible_from\": 1767225600, \"visible_to\": 1767830400 } } }`.\n  To change settings only, omit `html`: the section's HTML and embedded nodes are left exactly as they are, so there is no need to resend the full HTML. The section's HTML itself is never a setting — pass it as `html`.\n\nPass `publish_changes: true` to publish the working version immediately after the change.\n\nEmbedding structured builder nodes inside the HTML:\n  You can embed dynamic Simplero elements (order forms, opt-in forms, buttons, input fields, etc.) inside the HTML. See the description of the html_section embed endpoint (POST builder/content/html_section/embed) for how this works.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","description":"Required when creating, and when changing the HTML of an existing section; omit it for a settings-only update. The HTML content to set. CSS rules MUST be wrapped in \u003cstyle\u003e tags — the system extracts them into a separate style field automatically. Never write bare CSS (e.g. `:root { }`, `.class { }`) as plain text in the body; it will be treated as visible text content, not styles. Inline style=\"\" attributes on elements are fine."},"node_id":{"type":"string","description":"The id of the html_section node to update, or \"create_new\" to create a new one."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value (or leave unnamed when creating a new section)."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Non-content settings to deep-merge into the section, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"animation\": { \"base\": { \"style\": \"fade\" } } }. Any html_section setting except `html`."},"publish_changes":{"type":"boolean","description":"Publish the working version after the change."},"revision":{"type":"string","description":"Required when updating an existing section: the revision from your last read of it. The update fails with 409 if the section changed since, so a stale write never overwrites a newer edit. Ignored with node_id \"create_new\"."}},"required":["node_id"]}}}}},"get":{"summary":"Get HTML section content","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["id","html","settings","revision"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the HTML content and the non-content settings (conditional visibility, animation) of the html_section node with the given id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"query","required":true,"schema":{"type":"string","description":"The id of the html_section node to fetch."},"description":"The id of the html_section node to fetch."}]}},"/api/v2/blocks/{id}/builder/content/publish":{"post":{"summary":"Publish the working version","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Publishes the current working version of this record's builder doc, making staged changes live. Fails when the working draft is disconnected from the published version — POST builder/content/discard_unpublished_changes first.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blocks/{id}/builder/content/versions":{"get":{"summary":"List builder doc version history","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Active working lineage, newest first."},"refused_edit_versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Side versions (change_type `refused_edits`) keeping edits the server refused because the page changed under them, newest first. Off the working lineage; restore one to bring its content back."}},"required":["published_version_on_working_lineage","versions"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the active working lineage of this record's builder doc, newest first, plus publish/working status.\n\nCompacted and orphaned versions are omitted. When `published_version_on_working_lineage` is false, the working\ndraft is disconnected from published — POST discard_unpublished_changes to reconnect before publishing.\nThe published version is still identified by `published_version_id` even when it is not in `versions`.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/blocks/{id}/builder/content/versions/{version_id}":{"get":{"summary":"Get a builder doc version","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."},"content":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of this version's tree; recursively contains children."},"settings":{"type":"object","description":"Version-level settings snapshot."},"style_guide_id":{"type":"integer","nullable":true},"layout_id":{"type":"integer","nullable":true}},"required":["id","created_at","published","working"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns one version, including its node tree. The version must belong to this record's builder doc; compacted/orphaned versions are still fetchable by id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/blocks/{id}/builder/content/versions/{version_id}/restore":{"post":{"summary":"Restore a builder doc version","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"restored_from_version_id":{"type":"integer"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The newly created working draft."}},"required":["published_version_on_working_lineage","success","restored_from_version_id"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates a new working draft whose content matches the given version. Does not publish.\n\nThe restored snapshot is always a new version on top of the current working version (same as Restore\nthis version in the editor). To throw away a disconnected draft and go back to published, use\ndiscard_unpublished_changes instead.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blocks/{id}/builder/content/undo":{"post":{"summary":"Undo a builder doc change","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to undo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blocks/{id}/builder/content/redo":{"post":{"summary":"Redo a builder doc change","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to redo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blocks/{id}/builder/content/discard_unpublished_changes":{"post":{"summary":"Discard unpublished builder doc changes","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Throws away the working draft and reconnects working to the currently published version.\nThis is the operation that repairs a disconnected working lineage so publish can succeed.\n\nNo-op-success when working is already the published version. Errors when the doc has never been published.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blocks/{id}/builder/content/accessibility":{"get":{"summary":"Run WCAG 2.1 AA accessibility check","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"pass":{"type":"boolean"},"error_count":{"type":"integer"},"warning_count":{"type":"integer"},"checked_at":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string"},"message":{"type":"string"},"node_id":{"type":"string"},"node_type":{"type":"string"},"suggestion":{"type":"string"},"meta":{"type":"object","description":"Extra details (colors, ratio, suggested_fg, …). Free-form."}},"required":["code","severity","message"]}}},"required":["pass","error_count","warning_count","checked_at","issues"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Audits the working version of this record's builder doc (and its style guide) for WCAG 2.1 AA issues:\ncolor contrast (text vs background on palette roles and color styles), missing image alt text,\nheading hierarchy, and keyboard/focus risks in HTML sections.\n\nAlways run this at the end of a page build, before publish. For each contrast failure, `suggestion`\nand `meta.suggested_fg` include a replacement color that meets the AA ratio — apply those fixes\n(update style guide colors / node settings / HTML) and re-run until `pass` is true or only\nwarnings remain that the user has accepted.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/blocks/{id}/builder/content/preview_url":{"get":{"summary":"Get a short-lived preview link","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Open within expires_at."},"expires_at":{"type":"string","format":"date-time"}},"required":["url","expires_at"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"A link to this page as it is now, its working (unpublished) version, that opens without a login for 10 minutes. Open it in your own headless browser to take screenshots and check your design; ask for a new link when it expires. Visits to it count no page views. For landing pages, funnel pages and site pages.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/blocks/{id}/builder/content/design_guide":{"get":{"summary":"Get the design guide","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"version":{"type":"string"},"text":{"type":"string","description":"Markdown."}},"required":["version","text"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"What the main design settings look like (section and column color styles, padding, gaps, typography and button styles…), and what to avoid, written from screenshots in several style guides. Read it before you style a page. `version` changes whenever the notes change: keep it, and read the guide again when it differs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/blocks/{id}/usages":{"get":{"summary":"List where this block is embedded","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"owner_type":{"type":"string","description":"Polymorphic owner class, e.g. Page or LandingPage"},"owner_id":{"type":"integer"},"node_id":{"type":"string","description":"Builder node id that embeds the block"},"global":{"type":"boolean","description":"True when this instance is a live global block link"}}}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns pages, landing pages, and other builder owners in this account that embed this block\n(via `block_id` on a node). Scans both the **published** version and the **working draft** of\neach builder doc, so a draft that removes a still-live embed cannot hide it. Results are\ndeduplicated by owner + node id.\n\nGlobal blocks list live-linked instances; saved blocks list nodes that still carry a\nreference to the block they were created from.\n\nBlocks are account-scoped (not site-scoped). Global block instances are identical everywhere —\nuse the builder unlink endpoint on a page node to materialize a local copy.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/blocks/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/blocks/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/blocks/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/blocks/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/blocks/{id}/actions/delete":{"post":{"summary":"Delete Saved block","tags":["Blocks"],"x-simplero-resource-type":"blocks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this reusable content block.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blog_posts":{"post":{"summary":"Create a blog post","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BlogPost"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates a blog post on a site. `site_id`, `title` and `body` are required.\n\n`poster_id` is the author. It must be an admin of the account, and defaults to the API key's user (or the account owner).\n\nAs in admin, the first post turns on the site's blog, and a post created with `publish_status` `published` goes live now and notifies the blog's subscribers.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPost"}}}}},"get":{"summary":"List blog posts","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BlogPost"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"facet_value_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"poster_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["draft","scheduled","published"]}},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"publish_status","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, body, meta_title)."},"description":"Search records (matches via title, body, meta_title)."}]}},"/api/v2/blog_posts/{id}":{"get":{"summary":"Get a blog post","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BlogPost"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a blog post","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BlogPost"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostOptional"}}}}}},"/api/v2/blog_posts/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blog_posts/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/blog_posts/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/blog_posts/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/blog_posts/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/blog_posts/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blog_posts/{id}/actions/move_to_other_site":{"post":{"summary":"Move to other site","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/blog_posts/{id}/actions/duplicate_to_other_site":{"post":{"summary":"Duplicate to other site","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/blog_posts/{id}/actions/publish":{"post":{"summary":"Publish","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blog_posts/{id}/actions/unpublish":{"post":{"summary":"Unpublish","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blog_posts/{id}/actions/pin":{"post":{"summary":"Pin","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blog_posts/{id}/actions/unpin":{"post":{"summary":"Unpin","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/blog_posts/{id}/actions/categorize":{"post":{"summary":"Change categories","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/blog_posts/{id}/actions/delete":{"post":{"summary":"Delete Blog post","tags":["Blog Posts"],"x-simplero-resource-type":"blog_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/bot_channels":{"get":{"summary":"List channels","tags":["Bot Channels"],"x-simplero-resource-type":"bot_channels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BotChannel"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"bot_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a channel","tags":["Bot Channels"],"x-simplero-resource-type":"bot_channels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotChannel"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotChannel"}}}}}},"/api/v2/bot_channels/{id}":{"get":{"summary":"Get a channel","tags":["Bot Channels"],"x-simplero-resource-type":"bot_channels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotChannel"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a channel","tags":["Bot Channels"],"x-simplero-resource-type":"bot_channels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotChannel"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotChannelOptional"}}}}}},"/api/v2/bot_channels/{id}/actions/delete":{"post":{"summary":"Delete Channel","tags":["Bot Channels"],"x-simplero-resource-type":"bot_channels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the channel and disconnects its external webhook or messaging automation.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/bot_skills":{"get":{"summary":"List skills","tags":["Bot Skills"],"x-simplero-resource-type":"bot_skills","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BotSkill"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"bot_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a skill","tags":["Bot Skills"],"x-simplero-resource-type":"bot_skills","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotSkill"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotSkill"}}}}}},"/api/v2/bot_skills/{id}":{"get":{"summary":"Get a skill","tags":["Bot Skills"],"x-simplero-resource-type":"bot_skills","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotSkill"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a skill","tags":["Bot Skills"],"x-simplero-resource-type":"bot_skills","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotSkill"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotSkillOptional"}}}}}},"/api/v2/bot_skills/{id}/actions/delete":{"post":{"summary":"Delete Skill","tags":["Bot Skills"],"x-simplero-resource-type":"bot_skills","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/bot_sources":{"get":{"summary":"List sources","tags":["Bot Sources"],"x-simplero-resource-type":"bot_sources","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BotSource"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"bot_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"bot_tier_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"resource_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"resource_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a source","tags":["Bot Sources"],"x-simplero-resource-type":"bot_sources","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotSource"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotSource"}}}}}},"/api/v2/bot_sources/{id}":{"get":{"summary":"Get a source","tags":["Bot Sources"],"x-simplero-resource-type":"bot_sources","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotSource"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a source","tags":["Bot Sources"],"x-simplero-resource-type":"bot_sources","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotSource"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotSourceOptional"}}}}}},"/api/v2/bot_sources/{id}/actions/delete":{"post":{"summary":"Delete Source","tags":["Bot Sources"],"x-simplero-resource-type":"bot_sources","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the source binding without deleting the original resource.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/bot_tiers":{"get":{"summary":"List bot tiers","tags":["Bot Tiers"],"x-simplero-resource-type":"bot_tiers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BotTier"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"bot_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a bot tier","tags":["Bot Tiers"],"x-simplero-resource-type":"bot_tiers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotTier"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotTier"}}}}}},"/api/v2/bot_tiers/{id}":{"get":{"summary":"Get a bot tier","tags":["Bot Tiers"],"x-simplero-resource-type":"bot_tiers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotTier"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a bot tier","tags":["Bot Tiers"],"x-simplero-resource-type":"bot_tiers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BotTier"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotTierOptional"}}}}}},"/api/v2/bot_tiers/{id}/actions/delete":{"post":{"summary":"Delete Bot tier","tags":["Bot Tiers"],"x-simplero-resource-type":"bot_tiers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves tier access rules and clears this tier from attachments. The last tier cannot be deleted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/bots":{"get":{"summary":"List bots","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Bot"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"creator_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, subtitle, system_prompt, creator - first_names, last_name)."},"description":"Search records (matches via name, subtitle, system_prompt, creator - first_names, last_name)."}]},"post":{"summary":"Create a bot","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Bot"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bot"}}}}}},"/api/v2/bots/{id}":{"get":{"summary":"Get a bot","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Bot"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a bot","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Bot"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotOptional"}}}}}},"/api/v2/bots/{id}/actions/add_to_site":{"post":{"summary":"Add bot to site(s)","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_ids":{"type":"array","items":{"type":"integer"},"description":"Site"}}}}}}}},"/api/v2/bots/{id}/actions/remove_from_site":{"post":{"summary":"Remove bot from site(s)","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_ids":{"type":"array","items":{"type":"integer"},"description":"Site"}}}}}}}},"/api/v2/bots/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/bots/{id}/actions/delete":{"post":{"summary":"Delete Bot","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves bot tiers, channels, opening messages, listings, MCP servers and access configuration. Existing help desks and testimonials are disconnected from the bot.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/bots/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/bots/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Bots"],"x-simplero-resource-type":"bots","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/broadcast_schedules":{"get":{"summary":"List newsletters","tags":["Broadcast Schedules"],"x-simplero-resource-type":"broadcast_schedules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastSchedule"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, subject)."},"description":"Search records (matches via name, subject)."}]}},"/api/v2/broadcast_schedules/{id}":{"get":{"summary":"Get a newsletter","tags":["Broadcast Schedules"],"x-simplero-resource-type":"broadcast_schedules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BroadcastSchedule"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/broadcast_schedules/{id}/actions/deliver_next":{"post":{"summary":"Deliver next","tags":["Broadcast Schedules"],"x-simplero-resource-type":"broadcast_schedules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/broadcasts":{"post":{"summary":"Create a draft broadcast","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Broadcast"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates an email broadcast as a draft. It is never queued or sent from here — review and send it in the admin.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Internal name shown in the admin.","example":"Spring sale announcement"},"subject":{"type":"string","description":"Subject line.","example":"Our spring sale starts Monday"},"body":{"type":"string","description":"Email body (HTML). Not allowed on a broadcast designed in the email builder, which sends its builder design instead.","example":"\u003cp\u003eHi there,\u003c/p\u003e\u003cp\u003eThe sale starts Monday.\u003c/p\u003e"},"preheader":{"type":"string","description":"Preview text shown after the subject in most inboxes.","example":"Everything is 20% off for one week"},"sender_name":{"type":"string","description":"Defaults to the first recipient list's sender override, then the account's sender name. Refused on accounts with verified senders.","example":"Jane from Acme"},"sender_email":{"type":"string","description":"Defaults to the first recipient list's sender override, then the account's sender email. Refused on accounts with verified senders.","example":"jane@acme.example"},"reply_to":{"type":"string","description":"Defaults to the first recipient list's override, then the account's reply-to. Refused on accounts with verified senders.","example":"support@acme.example"},"email_template_id":{"type":"integer","description":"One of this account's email templates. Defaults to the account's default template.","example":12},"list_ids":{"type":"array","items":{"type":"integer"},"description":"Ids of this account's lists. recipients_segment_id is read-only; use list_ids and segment_ids to set recipients. On update, leave both list_ids and segment_ids out to keep the current recipients. Sending either one replaces the included recipients with exactly these lists and saved segments (a key you leave out counts as empty), so send both as [] to clear them. That also replaces recipient rules set up in the admin that aren't lists or saved segments. Exclusions are kept (if the recipients were shared with another broadcast or a newsletter, the broadcast gets its own copy of them), and contacts marked cold are excluded when the account uses cold contacts. Not allowed on a broadcast that belongs to a newsletter — its recipients come from the newsletter.","example":[101,102]},"segment_ids":{"type":"array","items":{"type":"integer"},"description":"Ids of this account's saved segments. recipients_segment_id is read-only; use list_ids and segment_ids to set recipients. On update, leave both list_ids and segment_ids out to keep the current recipients. Sending either one replaces the included recipients with exactly these lists and saved segments (a key you leave out counts as empty), so send both as [] to clear them. That also replaces recipient rules set up in the admin that aren't lists or saved segments. Exclusions are kept (if the recipients were shared with another broadcast or a newsletter, the broadcast gets its own copy of them), and contacts marked cold are excluded when the account uses cold contacts. Not allowed on a broadcast that belongs to a newsletter — its recipients come from the newsletter.","example":[55]}}}}}}},"get":{"summary":"List email broadcasts","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Broadcast"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"subject","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"email_template_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"delivered_to_count","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"usage_status","in":"query","required":false,"schema":{"type":"string","enum":["unused","single_use","shared"]}},{"name":"usage_count","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"subject_b","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"delivered_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"schedule_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"split_test","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["failed","draft","delivered","scheduling","waiting_delivery","queued"]}},{"name":"list_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"product_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"site_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_program_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"has_nps_score","in":"query","required":false,"schema":{"type":"string","enum":[1]}},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, subject, body)."},"description":"Search records (matches via name, subject, body)."}]}},"/api/v2/broadcasts/{id}":{"patch":{"summary":"Update a draft broadcast","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Broadcast"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Updates a draft (or failed) broadcast. Fields you leave out are kept, including the sender when new recipients are given. A broadcast that is queued, delivering or delivered can't be edited (422), and neither can one that gets queued or starts sending before this request's change is saved. This doesn't merge with an open admin editor: whichever saves last wins. After a recipient change, recipients_count is null until it has been recounted in the background.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Internal name shown in the admin.","example":"Spring sale announcement"},"subject":{"type":"string","description":"Subject line.","example":"Our spring sale starts Monday"},"body":{"type":"string","description":"Email body (HTML). Not allowed on a broadcast designed in the email builder, which sends its builder design instead.","example":"\u003cp\u003eHi there,\u003c/p\u003e\u003cp\u003eThe sale starts Monday.\u003c/p\u003e"},"preheader":{"type":"string","description":"Preview text shown after the subject in most inboxes.","example":"Everything is 20% off for one week"},"sender_name":{"type":"string","description":"Sender name. Left out, the current one is kept, even when the recipients change. Refused on accounts with verified senders.","example":"Jane from Acme"},"sender_email":{"type":"string","description":"Sender email. Left out, the current one is kept, even when the recipients change. Refused on accounts with verified senders.","example":"jane@acme.example"},"reply_to":{"type":"string","description":"Reply-to address. Left out, the current one is kept, even when the recipients change. Refused on accounts with verified senders.","example":"support@acme.example"},"email_template_id":{"type":"integer","description":"One of this account's email templates. Left out, the current one is kept.","example":12},"list_ids":{"type":"array","items":{"type":"integer"},"description":"Ids of this account's lists. recipients_segment_id is read-only; use list_ids and segment_ids to set recipients. On update, leave both list_ids and segment_ids out to keep the current recipients. Sending either one replaces the included recipients with exactly these lists and saved segments (a key you leave out counts as empty), so send both as [] to clear them. That also replaces recipient rules set up in the admin that aren't lists or saved segments. Exclusions are kept (if the recipients were shared with another broadcast or a newsletter, the broadcast gets its own copy of them), and contacts marked cold are excluded when the account uses cold contacts. Not allowed on a broadcast that belongs to a newsletter — its recipients come from the newsletter.","example":[101,102]},"segment_ids":{"type":"array","items":{"type":"integer"},"description":"Ids of this account's saved segments. recipients_segment_id is read-only; use list_ids and segment_ids to set recipients. On update, leave both list_ids and segment_ids out to keep the current recipients. Sending either one replaces the included recipients with exactly these lists and saved segments (a key you leave out counts as empty), so send both as [] to clear them. That also replaces recipient rules set up in the admin that aren't lists or saved segments. Exclusions are kept (if the recipients were shared with another broadcast or a newsletter, the broadcast gets its own copy of them), and contacts marked cold are excluded when the account uses cold contacts. Not allowed on a broadcast that belongs to a newsletter — its recipients come from the newsletter.","example":[55]}}}}}}},"get":{"summary":"Get a email broadcast","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Broadcast"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/broadcasts/{id}/actions/duplicate":{"post":{"summary":"Duplicate a broadcast","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Broadcast"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Copies a broadcast's content, sender, email template, design and recipients into a new draft named like the original with \" - Copy\" added (an unnamed broadcast stays unnamed). The copy is never queued or sent. Change it with PATCH, then review and send it in the admin. A split test is not carried over. A copy designed in the email builder keeps its builder design, so PATCH can't replace its body. recipients_count is null until it has been recounted in the background. Duplicating a newsletter broadcast gives a draft in the same newsletter. A broadcast sent to all contacts is copied without recipients; set them with PATCH. An old broadcast whose recipients are set up on another account can't be duplicated (422).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/broadcasts/{id}/actions/queue":{"post":{"summary":"Queue","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/broadcasts/{id}/actions/resend":{"post":{"summary":"Resend","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new draft broadcast"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["clicks","no_clicks","replies","no_replies","opens","unopens","missing","all"],"description":"Who the draft copy goes to. all: the same recipients. missing: people who were not sent this broadcast. opens: people who opened it. unopens: people who did not open it. clicks: people who clicked a link. no_clicks: people who did not click. replies: people who replied. no_replies: people who did not reply. The copy is a draft and is not sent."}},"required":["type"]}}}}}},"/api/v2/broadcasts/{id}/actions/send_test":{"post":{"summary":"Send test","tags":["Broadcasts"],"x-simplero-resource-type":"broadcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Address that receives the test email."}},"required":["email"]}}}}}},"/api/v2/builder_docs/{id}":{"get":{"summary":"Look up a builder doc by id","tags":["Builder Docs"],"x-simplero-resource-type":"builder_docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"owner_type":{"type":"string","description":"Model of the record the builder doc belongs to, e.g. `LandingPage` or `Page`."},"owner_id":{"type":"integer"},"role":{"type":"string","nullable":true,"description":"Which of the owner's documents this is, e.g. `content`."},"owner_api_path":{"type":"string","nullable":true,"description":"API path of the owner record, e.g. `/api/v2/landing_pages/12`."},"builder_api_path":{"type":"string","nullable":true,"description":"Prefix of the builder endpoints for this doc, e.g. `/api/v2/landing_pages/12/builder/content`."}},"required":["id","owner_type","owner_id"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the builder doc's owner and role, plus the API paths to use for it.\n\n`builder_api_path` is the prefix of the owner's builder endpoints for this doc — append e.g. `/nodes` or\n`/html_section` (see the owner resource's endpoints). It is null when the owner has no builder API\n(e.g. style guides, site layouts and emails), and `owner_api_path` is null when the owner\nitself isn't exposed in the API.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/canvases":{"get":{"summary":"List canvases","tags":["Canvases"],"x-simplero-resource-type":"canvases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Canvas"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, title, description)."},"description":"Search records (matches via internal_name, title, description)."}]},"post":{"summary":"Create a canvas","tags":["Canvases"],"x-simplero-resource-type":"canvases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Canvas"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Canvas"}}}}}},"/api/v2/canvases/{id}":{"get":{"summary":"Get a canvas","tags":["Canvases"],"x-simplero-resource-type":"canvases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Canvas"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a canvas","tags":["Canvases"],"x-simplero-resource-type":"canvases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Canvas"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasOptional"}}}}}},"/api/v2/canvases/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Canvases"],"x-simplero-resource-type":"canvases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/canvases/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Canvases"],"x-simplero-resource-type":"canvases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/canvases/{id}/actions/delete":{"post":{"summary":"Delete Canvas","tags":["Canvases"],"x-simplero-resource-type":"canvases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/charges/{id}/actions/erase_paid_invoice":{"post":{"summary":"Delete a paid invoice entered by mistake","tags":["Charges"],"x-simplero-resource-type":"charges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes a paid invoice that was entered by mistake, together with the manual payment matched only to it.\nBoth disappear from the purchase and from sales reports. No credit note or reversing payment is created,\nand the invoice number is not reused.\n\nReturns 422 with the reason when the invoice cannot be deleted, for example when it was paid through a\npayment gateway (refund it instead), has a credit note, or was sent to accounting software.\nReturns 403 when the key cannot manage purchases, and 404 when the invoice is not on this account.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why the invoice is being deleted. Shown in the purchase activity."}},"required":["reason"]}}}}}},"/api/v2/charges/{id}/actions/cancel_as_mistake":{"post":{"summary":"Cancel a paid charge entered by mistake","tags":["Charges"],"x-simplero-resource-type":"charges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"credit_note_id":{"type":"integer"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Cancels a paid charge that was entered by mistake. It issues a credit note for the charge and a reversing\nmanual payment for each payment applied to it, and the credit note is paid by those reversals so they net\nto zero. Nothing is deleted or renumbered. The customer may receive a credit-note receipt, depending on\nthe product's receipt settings.\n\nReturns 422 with the reason when the charge cannot be canceled: a blank reason; not paid; a refund or not\na positive charge; paid through a payment gateway (refund it instead); settled with a credit; amounts no\nlonger match; or it already has a credit note. Returns 403 when the key cannot manage purchases, and 404\nwhen the charge is not on this account.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why the charge is being canceled. Shown in the purchase activity and on the reversing payment."}},"required":["reason"]}}}}}},"/api/v2/charges":{"get":{"summary":"List charges","tags":["Charges"],"x-simplero-resource-type":"charges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Charge"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"paid_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"due_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"purchase_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"simplero_fee_charge_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"payment_processor_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"gateway_transaction_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"transaction_id","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"tax_region_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"country_code","in":"query","required":false,"schema":{"type":"string"}},{"name":"region_code","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"upstream_affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"tag_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["paid","due","future","simplero_fee_paid"]}},{"name":"charge_type","in":"query","required":false,"schema":{"type":"string","enum":["installments","renewals"]}},{"name":"amount","in":"query","required":false,"schema":{"type":"string","enum":["positive","negative"]}},{"name":"taxes_collected","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"invoice_number_int","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via purchase - first_names, last_name, email, product - name, internal_name, items - custom_text)."},"description":"Search records (matches via purchase - first_names, last_name, email, product - name, internal_name, items - custom_text)."}]}},"/api/v2/charges/{id}":{"get":{"summary":"Get a charge","tags":["Charges"],"x-simplero-resource-type":"charges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Charge"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/charges/{id}/actions/credit":{"post":{"summary":"Credit","tags":["Charges"],"x-simplero-resource-type":"charges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["completed","pending"],"description":"`pending` when the payment processor has not finished yet."},"message":{"type":"string"},"payment_id":{"type":"integer","nullable":true,"description":"The payment recorded, for `register_manual_payment`."}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Credits this whole paid charge back with a new negative charge, returning the money to the customer where the payment method allows it. Answers 422 with the reason when it is refused. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/charges/{id}/actions/resend":{"post":{"summary":"Resend","tags":["Charges"],"x-simplero-resource-type":"charges","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Emails the receipt for a paid charge, or the payment notice for an unpaid one, to the customer. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/chat_bot_conversations":{"get":{"summary":"List conversations","tags":["Chat Bot Conversations"],"x-simplero-resource-type":"chat_bot_conversations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatBot::Conversation"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"user_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"ip_address","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"referrer","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"track","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_campaign","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"bot_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, generated_name, user - first_names, last_name, messages - content)."},"description":"Search records (matches via name, generated_name, user - first_names, last_name, messages - content)."}]}},"/api/v2/chat_bot_conversations/{id}":{"get":{"summary":"Get a conversation","tags":["Chat Bot Conversations"],"x-simplero-resource-type":"chat_bot_conversations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChatBot::Conversation"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/chat_bot_messages":{"get":{"summary":"List messages","tags":["Chat Bot Messages"],"x-simplero-resource-type":"chat_bot_messages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatBot::Message"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"conversation_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/chat_bot_messages/{id}":{"get":{"summary":"Get a message","tags":["Chat Bot Messages"],"x-simplero-resource-type":"chat_bot_messages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChatBot::Message"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/chat_bot_opening_messages":{"get":{"summary":"List opening messages","tags":["Chat Bot Opening Messages"],"x-simplero-resource-type":"chat_bot_opening_messages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatBot::OpeningMessage"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner_type","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a opening message","tags":["Chat Bot Opening Messages"],"x-simplero-resource-type":"chat_bot_opening_messages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChatBot::OpeningMessage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBot::OpeningMessage"}}}}}},"/api/v2/chat_bot_opening_messages/{id}":{"get":{"summary":"Get a opening message","tags":["Chat Bot Opening Messages"],"x-simplero-resource-type":"chat_bot_opening_messages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChatBot::OpeningMessage"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a opening message","tags":["Chat Bot Opening Messages"],"x-simplero-resource-type":"chat_bot_opening_messages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChatBot::OpeningMessage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBot::OpeningMessageOptional"}}}}}},"/api/v2/chat_bot_opening_messages/{id}/actions/delete":{"post":{"summary":"Delete Opening message","tags":["Chat Bot Opening Messages"],"x-simplero-resource-type":"chat_bot_opening_messages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this opening message.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/choice_menu_flows":{"get":{"summary":"List choice menu flows","tags":["Choice Menu Flows"],"x-simplero-resource-type":"choice_menu_flows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChoiceMenuFlow"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"purchase_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/choice_menu_flows/{id}":{"get":{"summary":"Get a choice menu flow","tags":["Choice Menu Flows"],"x-simplero-resource-type":"choice_menu_flows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenuFlow"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/choice_menu_options":{"get":{"summary":"List choice menu options","tags":["Choice Menu Options"],"x-simplero-resource-type":"choice_menu_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChoiceMenuOption"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"choice_menu_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a choice menu option","tags":["Choice Menu Options"],"x-simplero-resource-type":"choice_menu_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenuOption"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceMenuOption"}}}}}},"/api/v2/choice_menu_options/{id}":{"get":{"summary":"Get a choice menu option","tags":["Choice Menu Options"],"x-simplero-resource-type":"choice_menu_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenuOption"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a choice menu option","tags":["Choice Menu Options"],"x-simplero-resource-type":"choice_menu_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenuOption"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceMenuOptionOptional"}}}}}},"/api/v2/choice_menu_options/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Choice Menu Options"],"x-simplero-resource-type":"choice_menu_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"integer"}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/choice_menu_responses":{"get":{"summary":"List choice menu responses","tags":["Choice Menu Responses"],"x-simplero-resource-type":"choice_menu_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChoiceMenuResponse"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"choice_menu_option_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"choice_menu_flow_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via option - title)."},"description":"Search records (matches via option - title)."}]}},"/api/v2/choice_menu_responses/{id}":{"get":{"summary":"Get a choice menu response","tags":["Choice Menu Responses"],"x-simplero-resource-type":"choice_menu_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenuResponse"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/choice_menus":{"get":{"summary":"List choice menus","tags":["Choice Menus"],"x-simplero-resource-type":"choice_menus","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChoiceMenu"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, internal_name, description)."},"description":"Search records (matches via name, internal_name, description)."}]},"post":{"summary":"Create a choice menu","tags":["Choice Menus"],"x-simplero-resource-type":"choice_menus","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenu"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceMenu"}}}}}},"/api/v2/choice_menus/{id}":{"get":{"summary":"Get a choice menu","tags":["Choice Menus"],"x-simplero-resource-type":"choice_menus","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenu"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a choice menu","tags":["Choice Menus"],"x-simplero-resource-type":"choice_menus","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ChoiceMenu"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceMenuOptional"}}}}}},"/api/v2/choice_menus/{id}/actions/delete":{"post":{"summary":"Delete Choice menu","tags":["Choice Menus"],"x-simplero-resource-type":"choice_menus","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves menu options and their responses, and clears the primary menu from connected products.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/coaching_programs":{"get":{"summary":"List coaching programs","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CoachingProgram"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, title, description)."},"description":"Search records (matches via internal_name, title, description)."}]},"post":{"summary":"Create a coaching program","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CoachingProgram"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingProgram"}}}}}},"/api/v2/coaching_programs/{id}":{"get":{"summary":"Get a coaching program","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CoachingProgram"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a coaching program","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CoachingProgram"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingProgramOptional"}}}}}},"/api/v2/coaching_programs/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/coaching_programs/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/coaching_programs/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/coaching_programs/{id}/actions/add_route":{"post":{"summary":"Add route","tags":["Coaching Programs"],"x-simplero-resource-type":"coaching_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Mount this coaching program on a site in its account.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer"}}}}}}}},"/api/v2/coaching_sessions":{"get":{"summary":"List sessions","tags":["Coaching Sessions"],"x-simplero-resource-type":"coaching_sessions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CoachingSession"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"coaching_program_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, title, description, duration_minutes)."},"description":"Search records (matches via internal_name, title, description, duration_minutes)."}]},"post":{"summary":"Create a session","tags":["Coaching Sessions"],"x-simplero-resource-type":"coaching_sessions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CoachingSession"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSession"}}}}}},"/api/v2/coaching_sessions/{id}":{"get":{"summary":"Get a session","tags":["Coaching Sessions"],"x-simplero-resource-type":"coaching_sessions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CoachingSession"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a session","tags":["Coaching Sessions"],"x-simplero-resource-type":"coaching_sessions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CoachingSession"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingSessionOptional"}}}}}},"/api/v2/contract_associations":{"get":{"summary":"List contract associations","tags":["Contract Associations"],"x-simplero-resource-type":"contract_associations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ContractAssociation"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"contractable_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"contractable_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"contract_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a contract association","tags":["Contract Associations"],"x-simplero-resource-type":"contract_associations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ContractAssociation"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractAssociation"}}}}}},"/api/v2/contract_associations/{id}":{"get":{"summary":"Get a contract association","tags":["Contract Associations"],"x-simplero-resource-type":"contract_associations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ContractAssociation"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a contract association","tags":["Contract Associations"],"x-simplero-resource-type":"contract_associations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ContractAssociation"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractAssociationOptional"}}}}}},"/api/v2/contract_associations/{id}/actions/delete":{"post":{"summary":"Delete Contract association","tags":["Contract Associations"],"x-simplero-resource-type":"contract_associations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nDetaches the contract. Buyers or registrants are no longer asked to sign it. Signatures already given are kept.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/contract_signatures":{"get":{"summary":"List signatures","tags":["Contract Signatures"],"x-simplero-resource-type":"contract_signatures","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ContractSignature"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"signed","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"contract_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via ip_address, customer - first_names, last_name, email)."},"description":"Search records (matches via ip_address, customer - first_names, last_name, email)."}]}},"/api/v2/contract_signatures/{id}":{"get":{"summary":"Get a signature","tags":["Contract Signatures"],"x-simplero-resource-type":"contract_signatures","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ContractSignature"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/contracts":{"get":{"summary":"List contracts","tags":["Contracts"],"x-simplero-resource-type":"contracts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, title, content)."},"description":"Search records (matches via internal_name, title, content)."}]},"post":{"summary":"Create a contract","tags":["Contracts"],"x-simplero-resource-type":"contracts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Contract"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contract"}}}}}},"/api/v2/contracts/{id}":{"get":{"summary":"Get a contract","tags":["Contracts"],"x-simplero-resource-type":"contracts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Contract"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a contract","tags":["Contracts"],"x-simplero-resource-type":"contracts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Contract"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractOptional"}}}}}},"/api/v2/contracts/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Contracts"],"x-simplero-resource-type":"contracts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/contracts/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Contracts"],"x-simplero-resource-type":"contracts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/contracts/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Contracts"],"x-simplero-resource-type":"contracts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/countdown_instances":{"get":{"summary":"List countdown instances","tags":["Countdown Instances"],"x-simplero-resource-type":"countdown_instances","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CountdownInstance"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"countdown_timer_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/countdown_instances/{id}":{"get":{"summary":"Get a countdown instance","tags":["Countdown Instances"],"x-simplero-resource-type":"countdown_instances","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CountdownInstance"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/countdown_timers":{"get":{"summary":"List countdown timers","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CountdownTimer"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name)."},"description":"Search records (matches via internal_name)."}]},"post":{"summary":"Create a countdown timer","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CountdownTimer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountdownTimer"}}}}}},"/api/v2/countdown_timers/{id}":{"get":{"summary":"Get a countdown timer","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CountdownTimer"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a countdown timer","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CountdownTimer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountdownTimerOptional"}}}}}},"/api/v2/countdown_timers/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/countdown_timers/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/countdown_timers/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/countdown_timers/{id}/actions/delete":{"post":{"summary":"Delete Countdown timer","tags":["Countdown Timers"],"x-simplero-resource-type":"countdown_timers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/coupons":{"get":{"summary":"List coupons","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Coupon"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["available","future","expired","used_up"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via coupon_code, internal_name)."},"description":"Search records (matches via coupon_code, internal_name)."}]},"post":{"summary":"Create a coupon","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Coupon"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coupon"}}}}}},"/api/v2/coupons/{id}":{"get":{"summary":"Get a coupon","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Coupon"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a coupon","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Coupon"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponOptional"}}}}}},"/api/v2/coupons/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/coupons/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/coupons/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/coupons/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/coupons/{id}/actions/delete":{"post":{"summary":"Delete Coupon","tags":["Coupons"],"x-simplero-resource-type":"coupons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_facets":{"get":{"summary":"List course facets in order","tags":["Course Facets"],"x-simplero-resource-type":"course_facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"facet_id":{"type":"integer"},"name":{"type":"string","nullable":true},"internal_name":{"type":"string","nullable":true},"position":{"type":"integer","description":"1 is first."}},"required":["facet_id","position"]}}}}}}},"401":{"description":"Unauthorized"}}}},"/api/v2/course_facets/order":{"put":{"summary":"Reorder course facets","tags":["Course Facets"],"x-simplero-resource-type":"course_facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"facet_id":{"type":"integer"},"name":{"type":"string","nullable":true},"internal_name":{"type":"string","nullable":true},"position":{"type":"integer","description":"1 is first."}},"required":["facet_id","position"]}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Send every course facet id exactly once, first to last. Facets are added to courses through the facets endpoints; this only changes their order.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_ids":{"type":"array","items":{"type":"integer"}}},"required":["facet_ids"]}}}}}},"/api/v2/course_lesson_completions":{"get":{"summary":"List course lesson completions","tags":["Course Lesson Completions"],"x-simplero-resource-type":"course_lesson_completions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CourseLessonCompletion"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"lesson_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"course_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/course_lesson_completions/{id}":{"get":{"summary":"Get a course lesson completion","tags":["Course Lesson Completions"],"x-simplero-resource-type":"course_lesson_completions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CourseLessonCompletion"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/course_lessons":{"get":{"summary":"List lessons","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CourseLesson"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"course_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"course_module_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"publish_status","in":"query","required":false,"schema":{"type":"string","enum":["draft","published","scheduled","dripped"]}},{"name":"control_status","in":"query","required":false,"schema":{"type":"string","enum":["draft","live","scheduled"]}},{"name":"control_access","in":"query","required":false,"schema":{"type":"string","enum":["open","gated"]}},{"name":"transcription_status","in":"query","required":false,"schema":{"type":"string","enum":["yes","progress","no"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, body)."},"description":"Search records (matches via title, body)."}]},"post":{"summary":"Create a lesson","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CourseLesson"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseLesson"}}}}}},"/api/v2/course_lessons/{id}":{"get":{"summary":"Get a lesson","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CourseLesson"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a lesson","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CourseLesson"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseLessonOptional"}}}}}},"/api/v2/course_lessons/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/grant_access":{"post":{"summary":"Give access","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_ids":{"type":"array","items":{"type":"integer"},"description":"Customer"},"tag_id":{"type":"integer","description":"Tag"},"segment_id":{"type":"integer","description":"Segment"},"send_email":{"type":"boolean"}}}}}}}},"/api/v2/course_lessons/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/course_lessons/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/course_lessons/{id}/actions/set_author":{"post":{"summary":"Set author","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"author_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/course_lessons/{id}/actions/update_show_unauthorized_course":{"post":{"summary":"Change no access to COURSE behavior","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"show_unauthorized_course":{"type":"string"}}}}}}}},"/api/v2/course_lessons/{id}/actions/update_show_unauthorized_lesson":{"post":{"summary":"Change no access to LESSON behavior","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"show_unauthorized_lesson":{"type":"string"}}}}}}}},"/api/v2/course_lessons/{id}/actions/update_unauthorized_message":{"post":{"summary":"Change alternative content when no access to lesson","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"unauthorized_message":{"type":"string"}}}}}}}},"/api/v2/course_lessons/{id}/actions/enable_preferred_playback_rate":{"post":{"summary":"Start at user preferred speed","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/disable_preferred_playback_rate":{"post":{"summary":"Start at 1x speed","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/allow_multiple_completions":{"post":{"summary":"Allow multiple completions","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/disallow_multiple_completions":{"post":{"summary":"Disallow multiple completions","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/publish":{"post":{"summary":"Publish","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/unpublish":{"post":{"summary":"Unpublish","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/delete":{"post":{"summary":"Delete Lesson","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/move_module":{"post":{"summary":"Move to module","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_module_id":{"type":"integer","description":"CourseModule"}}}}}}}},"/api/v2/course_lessons/{id}/actions/deepgram":{"post":{"summary":"Transcribe video/audio lessons","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"language":{"type":"string"},"diarize":{"type":"string"},"merge_summary":{"type":"string"},"force":{"type":"string"}}}}}}}},"/api/v2/course_lessons/{id}/actions/recreate_bookmarks":{"post":{"summary":"Regenerate bookmarks from transcript","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/regenerate_ai_description":{"post":{"summary":"Regenerate AI description","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/delete_ai_generated_summary":{"post":{"summary":"Delete AI generated summary","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/apply_loudness_filter":{"post":{"summary":"Apply loudness filter","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/start_from_beginning":{"post":{"summary":"Always start media from the beginning","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/resume_from_last_position":{"post":{"summary":"Resume media from the last position","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_lessons/{id}/actions/update_loop_asset":{"post":{"summary":"Update lesson asset loop","tags":["Course Lessons"],"x-simplero-resource-type":"course_lessons","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"loop_asset":{"type":"string"}}}}}}}},"/api/v2/course_modules":{"get":{"summary":"List modules","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CourseModule"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"course_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"control_status","in":"query","required":false,"schema":{"type":"string","enum":["draft","live","scheduled"]}},{"name":"control_access","in":"query","required":false,"schema":{"type":"string","enum":["open","gated","dripped"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, description)."},"description":"Search records (matches via title, description)."}]},"post":{"summary":"Create a module","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CourseModule"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseModule"}}}}}},"/api/v2/course_modules/{id}":{"get":{"summary":"Get a module","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CourseModule"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a module","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CourseModule"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseModuleOptional"}}}}}},"/api/v2/course_modules/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/grant_access":{"post":{"summary":"Give access","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_ids":{"type":"array","items":{"type":"integer"},"description":"Customer"},"tag_id":{"type":"integer","description":"Tag"},"segment_id":{"type":"integer","description":"Segment"},"send_email":{"type":"boolean"}}}}}}}},"/api/v2/course_modules/{id}/actions/publish":{"post":{"summary":"Publish","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/unpublish":{"post":{"summary":"Unpublish","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/restart_all_members":{"post":{"summary":"Restart module for all members","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/add_lessons_from_assets":{"post":{"summary":"Add lessons from media files","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new lesson"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"asset_ids":{"type":"array","items":{"type":"integer"},"description":"Asset"}}}}}}}},"/api/v2/course_modules/{id}/actions/copy_to_course":{"post":{"summary":"Duplicate to other course","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_id":{"type":"integer","description":"Course"}}}}}}}},"/api/v2/course_modules/{id}/actions/move_to_course":{"post":{"summary":"Move to other course","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_id":{"type":"integer","description":"Course"}}}}}}}},"/api/v2/course_modules/{id}/actions/reorder_lessons_by_title":{"post":{"summary":"Reorder lessons by title","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/publish_all_lessons":{"post":{"summary":"Publish all lessons","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/remove_common_lesson_title_prefix":{"post":{"summary":"Remove common lesson title prefix","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/delete":{"post":{"summary":"Delete Module","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this module's lessons first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/course_modules/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/course_modules/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Course Modules"],"x-simplero-resource-type":"course_modules","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/courses/{id}/lesson_analytics":{"get":{"summary":"Read a course's lesson analytics","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"lesson_id":{"type":"integer"},"course_module_id":{"type":"integer"},"position":{"type":"string","description":"Module and lesson position, like `M1 L2`."},"title":{"type":"string","nullable":true},"views":{"type":"integer","description":"All views by members."},"unique_views":{"type":"integer","description":"Members who viewed the lesson."},"completed":{"type":"integer","description":"Completions, counting repeats."},"completed_percentage":{"type":"number","description":"Members who completed the lesson, as a percent of all members of the site."},"members_viewed_video":{"type":"integer","description":"Members who played the lesson's videos."},"reactions":{"type":"object","description":"Reaction counts by emoji, like `{\"👍\": 3}`."},"comments_count":{"type":"integer"}},"required":["lesson_id","course_module_id","position","views","unique_views","completed","completed_percentage","members_viewed_video","reactions","comments_count"]}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"The Lesson analytics table from the admin: one row per lesson, in course order. Needs permission to manage the course.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1)"},"description":"Page number (default 1)"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"}]}},"/api/v2/courses/{id}/member_analytics":{"get":{"summary":"Read a course's member analytics","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"site_member_id":{"type":"integer"},"name":{"type":"string","nullable":true},"started_at":{"type":"string","format":"date-time","nullable":true,"description":"When the member first viewed a lesson of the course."},"last_login_at":{"type":"string","format":"date-time","nullable":true},"num_logins":{"type":"integer","nullable":true},"course_progress":{"type":"integer","nullable":true,"description":"Percent of the released lessons completed (viewed, when the course has no completion), like the admin column: drafts and lessons scheduled for later are left out. Null when the course has no released lessons."},"lessons":{"type":"array","items":{"type":"object","properties":{"lesson_id":{"type":"integer"},"status":{"type":"string","enum":["completed","viewed"],"nullable":true,"description":"Null when the member has not opened the lesson."},"video_views":{"type":"integer","description":"Plays of the lesson's videos."}},"required":["lesson_id","video_views"]},"description":"Every lesson, in course order."}},"required":["site_member_id","lessons"]}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"The Member analytics table from the admin (its Lesson completion view): one row per member with access to the course,\nmost recent login first, with their progress through each lesson. Needs permission to manage the course.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1)"},"description":"Page number (default 1)"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"}]}},"/api/v2/courses":{"get":{"summary":"List courses","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Course"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"site_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"publish_status","in":"query","required":false,"schema":{"type":"string","enum":["draft","published","scheduled","drip"]}},{"name":"control_status","in":"query","required":false,"schema":{"type":"string","enum":["draft","live","scheduled"]}},{"name":"control_access","in":"query","required":false,"schema":{"type":"string","enum":["open","gated"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, internal_name, site - title, internal_name)."},"description":"Search records (matches via title, internal_name, site - title, internal_name)."}]},"post":{"summary":"Create a course","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Course"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Course"}}}}}},"/api/v2/courses/{id}":{"get":{"summary":"Get a course","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Course"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a course","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Course"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseOptional"}}}}}},"/api/v2/courses/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/courses/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/courses/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/courses/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/courses/{id}/actions/publish":{"post":{"summary":"Publish","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/drip":{"post":{"summary":"Drip","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"grant":{"type":"boolean"}}}}}}}},"/api/v2/courses/{id}/actions/unpublish":{"post":{"summary":"Unpublish","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/move_to_other_site":{"post":{"summary":"Move to other site","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/courses/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/duplicate_to_other_site":{"post":{"summary":"Duplicate to other site","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/courses/{id}/actions/grant_access":{"post":{"summary":"Give access","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_ids":{"type":"array","items":{"type":"integer"},"description":"Customer"},"also_site":{"type":"boolean"},"send_email":{"type":"boolean"}}}}}}}},"/api/v2/courses/{id}/actions/send_certificate_test_email":{"post":{"summary":"Send certificate test email","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of an admin of this account. The test email goes to them, with their name as the sample member."}},"required":["email"]}}}}}},"/api/v2/courses/{id}/actions/prevent_downloads":{"post":{"summary":"Prevent downloads","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/allow_downloads":{"post":{"summary":"Allow downloads","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/enable_autoplay":{"post":{"summary":"Enable autoplay","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/disable_autoplay":{"post":{"summary":"Disable autoplay","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/refresh_card_image":{"post":{"summary":"Refresh card image","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/hide_content_duration":{"post":{"summary":"Hide content duration","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/show_content_duration":{"post":{"summary":"Show content duration","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/hide_content_counts":{"post":{"summary":"Hide content counts","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/show_content_counts":{"post":{"summary":"Show content counts","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/hide_from_index":{"post":{"summary":"Hide from the Site Course directory page","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/show_on_index":{"post":{"summary":"Show on the Site Course directory page","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/exclude_from_new_content":{"post":{"summary":"Exclude from \"New content\" blocks","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/include_in_new_content":{"post":{"summary":"Include in \"New content\" blocks","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/on_site_tease":{"post":{"summary":"Show a teaser to people without access","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/on_site_hide":{"post":{"summary":"Hide from people without access","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/delete_ai_generated_summaries":{"post":{"summary":"Delete AI generated summaries for all lessons","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/deepgram":{"post":{"summary":"Transcribe video/audio lessons","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"language":{"type":"string"},"diarize":{"type":"string"},"merge_summary":{"type":"string"},"force":{"type":"string"}}}}}}}},"/api/v2/courses/{id}/actions/restart_all_members":{"post":{"summary":"Restart course progress for all members","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/courses/{id}/actions/delete":{"post":{"summary":"Delete Course","tags":["Courses"],"x-simplero-resource-type":"courses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this course's modules first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/credit_balances":{"get":{"summary":"Read account credit balances","tags":["Credit Balances"],"x-simplero-resource-type":"credit_balances","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"credit_id":{"type":"integer"},"credit_name":{"type":"string","nullable":true},"amount":{"type":"number"},"next_expiration_at":{"type":"string","format":"date-time","nullable":true},"next_expiration_amount":{"type":"number","nullable":true}}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"401":{"description":"Unauthorized"}},"description":"Account-owned wallets only. Contact and personal Simplero-ID wallets are not included.","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}]}},"/api/v2/credit_balances/{id}":{"get":{"summary":"Read an account credit balance","tags":["Credit Balances"],"x-simplero-resource-type":"credit_balances","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"credit_id":{"type":"integer"},"credit_name":{"type":"string","nullable":true},"amount":{"type":"number"},"next_expiration_at":{"type":"string","format":"date-time","nullable":true},"next_expiration_amount":{"type":"number","nullable":true}}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/credit_balances/{id}/credit_changes":{"get":{"summary":"Read the ledger for an account credit balance","tags":["Credit Balances"],"x-simplero-resource-type":"credit_balances","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"credit_id":{"type":"integer"},"amount":{"type":"number"},"balance_after":{"type":"number","nullable":true},"note":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time","nullable":true},"product_id":{"type":"integer","nullable":true},"product":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}},"nullable":true},"purchase_id":{"type":"integer","nullable":true},"charge_id":{"type":"integer","nullable":true},"reversal_of_id":{"type":"integer","nullable":true},"input_tokens":{"type":"integer","nullable":true},"output_tokens":{"type":"integer","nullable":true},"token_count":{"type":"integer","nullable":true},"service_usage_ids":{"type":"array","items":{"type":"integer"}}}}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Signed ledger changes with stored product/note metadata and token totals from linked AI usage. Token fields are null when no linked usage is available. balance_after is the wallet balance right after the change, over the whole ledger in (created_at, id) order; it is null when a page spans too many ledger rows. Date filters use UTC [from, to).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer"}}]}},"/api/v2/credit_changes":{"get":{"summary":"List credit changes","tags":["Credit Changes"],"x-simplero-resource-type":"credit_changes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CreditChange"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"credit_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"product_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"issued_by_user_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"consumed_by_user_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["grant","consume"]}},{"name":"expiration","in":"query","required":false,"schema":{"type":"string","enum":["expired","not_expired"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via note)."},"description":"Search records (matches via note)."}]}},"/api/v2/credit_changes/{id}":{"get":{"summary":"Get a credit change","tags":["Credit Changes"],"x-simplero-resource-type":"credit_changes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CreditChange"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/credits":{"get":{"summary":"List credits","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Credit"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, name_plural)."},"description":"Search records (matches via name, name_plural)."}]},"post":{"summary":"Create a credit","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Credit"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credit"}}}}}},"/api/v2/credits/{id}":{"get":{"summary":"Get a credit","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Credit"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a credit","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Credit"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditOptional"}}}}}},"/api/v2/credits/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/credits/{id}/actions/star":{"post":{"summary":"Star","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/credits/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/credits/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/credits/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/credits/{id}/actions/delete":{"post":{"summary":"Delete Credit","tags":["Credits"],"x-simplero-resource-type":"credits","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/custom_domains":{"get":{"summary":"List custom domains","tags":["Custom Domains"],"x-simplero-resource-type":"custom_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomDomain"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"renewable","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"live","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"used","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"certificate","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via domain)."},"description":"Search records (matches via domain)."}]},"post":{"summary":"Create a custom domain","tags":["Custom Domains"],"x-simplero-resource-type":"custom_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CustomDomain"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomain"}}}}}},"/api/v2/custom_domains/{id}":{"get":{"summary":"Get a custom domain","tags":["Custom Domains"],"x-simplero-resource-type":"custom_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CustomDomain"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a custom domain","tags":["Custom Domains"],"x-simplero-resource-type":"custom_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CustomDomain"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainOptional"}}}}}},"/api/v2/custom_domains/{id}/actions/recheck":{"post":{"summary":"Recheck DNS","tags":["Custom Domains"],"x-simplero-resource-type":"custom_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/custom_domains/{id}/actions/snapshot_dns":{"post":{"summary":"Snapshot DNS","tags":["Custom Domains"],"x-simplero-resource-type":"custom_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Key the snapshot is stored under"},"domain":{"type":"string","description":"Hostname these records were resolved for"},"custom_domain_id":{"type":"integer"},"taken_at":{"type":"string","description":"When the lookup ran, ISO 8601 UTC"},"records":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Records by type, e.g. {\"A\": [\"example.com. 300 IN A 34.228.154.79\"]}"},"errors":{"type":"object","additionalProperties":{"type":"string"},"description":"Record types whose lookup failed, and why"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/custom_domains/{id}/actions/delete":{"post":{"summary":"Delete Custom domain","tags":["Custom Domains"],"x-simplero-resource-type":"custom_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customer_affiliate_attributions":{"get":{"summary":"List customer affiliate attributions","tags":["Customer Affiliate Attributions"],"x-simplero-resource-type":"customer_affiliate_attributions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerAffiliateAttribution"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"affiliate_program_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/customer_affiliate_attributions/{id}":{"get":{"summary":"Get a customer affiliate attribution","tags":["Customer Affiliate Attributions"],"x-simplero-resource-type":"customer_affiliate_attributions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CustomerAffiliateAttribution"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/customer_notes":{"get":{"summary":"List notes","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomerNote"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"private","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, body)."},"description":"Search records (matches via title, body)."}]},"post":{"summary":"Create a note","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CustomerNote"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerNote"}}}}}},"/api/v2/customer_notes/{id}":{"get":{"summary":"Get a note","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CustomerNote"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a note","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CustomerNote"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerNoteOptional"}}}}}},"/api/v2/customer_notes/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customer_notes/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/customer_notes/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/customer_notes/{id}/actions/delete":{"post":{"summary":"Delete Note","tags":["Customer Notes"],"x-simplero-resource-type":"customer_notes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/credits":{"get":{"summary":"Read a contact's credit balances","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"credit_id":{"type":"integer"},"credit_name":{"type":"string","description":"Name of the credit type."},"balance":{"type":"number","description":"Current balance. Can be zero or negative."},"expires_at":{"type":"string","format":"date-time","nullable":true,"description":"When the next batch of credits expires, or null when none expire."}},"required":["credit_id","credit_name","balance","expires_at"]}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"The credit balances this contact holds, one entry per credit type. This is the same data as the\n`credits` field on the contact.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/customers":{"get":{"summary":"List contacts","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"first_names","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"last_name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"email","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"track","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"tag_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"badge_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"bulk_selection_key","in":"query","required":false,"schema":{"type":"string"}},{"name":"automation_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"geo_country_code","in":"query","required":false,"schema":{"type":"string"}},{"name":"geographic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/GeoFilter"},"style":"deepObject","explode":true},{"name":"ids","in":"query","required":false,"schema":{"type":"string"}},{"name":"blocked_token","in":"query","required":false,"schema":{"type":"string"}},{"name":"is_bad_name","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"subscribed_to","in":"query","required":false,"schema":{"type":"object","properties":{"list_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"unsubscribed_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"subscribed_any","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"purchased_any","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"participant_any","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"purchased_any_active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["customers","leads","clients"]}},{"name":"do_not_contact","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"do_not_sms","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"email_bounced","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"cold_contact","in":"query","required":false,"schema":{"$ref":"#/components/schemas/RelativeDateFilter"},"style":"deepObject","explode":true},{"name":"cold_contact_check","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"last_warmed_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/RelativeDateFilter"},"style":"deepObject","explode":true},{"name":"timezone","in":"query","required":false,"schema":{"type":"string"}},{"name":"landing_page_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"affiliate_sold_any","in":"query","required":false,"schema":{"type":"object","properties":{"affiliate_program_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"list_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"product_as_purchaser","in":"query","required":false,"schema":{"type":"object","properties":{"product_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"product_as_participant","in":"query","required":false,"schema":{"type":"object","properties":{"product_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"product_as_accessor","in":"query","required":false,"schema":{"type":"object","properties":{"product_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"subject_to_gdpr","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"has_store_credit","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"has_credits","in":"query","required":false,"schema":{"type":"string"}},{"name":"ever_had_credit","in":"query","required":false,"schema":{"type":"string"}},{"name":"ever_used_credit","in":"query","required":false,"schema":{"type":"string"}},{"name":"funnel_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"step_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"missed_by_auto_response_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"has_note_containing","in":"query","required":false,"schema":{"type":"string"}},{"name":"flow_any_running","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"lifetime_value_cents_excl_tax","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"opened_emails","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"clicked_emails","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"opened_emails_in_automation","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"clicked_emails_in_automation","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"lead_score","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"trial_or_activated_account","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"interactions_status","in":"query","required":false,"schema":{"type":"string","enum":["unread","starred"]}},{"name":"pipeline_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"pipeline_stage_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"deal_in_pipeline","in":"query","required":false,"schema":{"type":"object","properties":{"pipeline_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","blank","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"deal_in_stage","in":"query","required":false,"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","blank","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"duplicate_emails","in":"query","required":false,"schema":{"type":"string","enum":["within_filters","in_account"]}},{"name":"countdown_timer_running","in":"query","required":false,"schema":{"type":"object","properties":{"countdown_timer_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"},"sign":{"type":"string","enum":["ago","from_now"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"countdown_timer_completed","in":"query","required":false,"schema":{"type":"object","properties":{"countdown_timer_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"},"sign":{"type":"string","enum":["ago","from_now"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"countdown_timer_canceled","in":"query","required":false,"schema":{"type":"object","properties":{"countdown_timer_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"site_member_last_login","in":"query","required":false,"schema":{"type":"object","properties":{"site_id":{"type":"string"},"date_comparison":{"type":"string","enum":["","blank","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"style":"deepObject","explode":true},{"name":"utm_campaign_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_campaign_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via first_names, last_name, email, user - username, email, notes_for_search - title, body)."},"description":"Search records (matches via first_names, last_name, email, user - username, email, notes_for_search - title, body)."}]},"post":{"summary":"Create a contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Customer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}},"/api/v2/customers/{id}":{"get":{"summary":"Get a contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Customer"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Customer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOptional"}}}}}},"/api/v2/customers/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/clean_name":{"post":{"summary":"Fix repeating name (e.g. \"John Smith Smith\")","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/delete":{"post":{"summary":"Delete Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/merge_into":{"post":{"summary":"Merge into another contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves everything on this contact (purchases, payments, subscriptions, memberships, tags, notes and history) to the target contact, then deletes this contact. This cannot be undone.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"target_customer_id":{"type":"integer","description":"Customer"}}}}}}}},"/api/v2/customers/{id}/actions/make_primary_email":{"post":{"summary":"Make an alternative email primary","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Makes an existing alternative email primary and keeps the old primary as an alternative. Updates the Simplero ID login by the same rules as the admin contact form.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"An existing alternative email of this contact."}},"required":["email"]}}}}}},"/api/v2/customers/{id}/actions/send_password_reset":{"post":{"summary":"Send password reset","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/send_simplero_id":{"post":{"summary":"Send Simplero ID","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/remove_simplero_id":{"post":{"summary":"Remove Simplero ID","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/set_affiliate":{"post":{"summary":"Set Affiliate for Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"affiliate_id":{"type":"integer","description":"Affiliate"}}}}}}}},"/api/v2/customers/{id}/actions/remove_affiliate":{"post":{"summary":"Remove Affiliate for Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/set_own_affiliate":{"post":{"summary":"Set Contact as their own Affiliate","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/send_chat_message":{"post":{"summary":"Send chat message","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"},"message":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/add_to_affiliate_program":{"post":{"summary":"Add to affiliate program","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"affiliate_program_id":{"type":"integer","description":"AffiliateProgram"}}}}}}}},"/api/v2/customers/{id}/actions/give_consent":{"post":{"summary":"Give GDPR consent","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/revoke_consent":{"post":{"summary":"Revoke GDPR consent","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/notice":{"post":{"summary":"Display notice","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"notice_id":{"type":"integer","description":"Notice"},"start_at":{"type":"string","format":"date-time"},"end_at":{"type":"string","format":"date-time"}}}}}}}},"/api/v2/customers/{id}/actions/task":{"post":{"summary":"Assign a task","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"user_id":{"type":"integer","description":"User"},"relative_time_unit":{"type":"string"},"relative_time_count":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/email":{"post":{"summary":"Send notification email","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"subject":{"type":"string"},"message":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/text_message":{"post":{"summary":"Send notification text message","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"number":{"type":"string"},"message":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/mailchimp_subscribe":{"post":{"summary":"Subscribe to a list in Mailchimp","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mailchimp_list_id":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/mailchimp_unsubscribe":{"post":{"summary":"Unsubscribe from a list in Mailchimp","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mailchimp_list_id":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/add_badge":{"post":{"summary":"Add engagement badge","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"badge_id":{"type":"integer","description":"Badge"}}}}}}}},"/api/v2/customers/{id}/actions/remove_badge":{"post":{"summary":"Remove engagement badge","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"badge_id":{"type":"integer","description":"Badge"}}}}}}}},"/api/v2/customers/{id}/actions/set_date_to_now":{"post":{"summary":"Set date field to relative time","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"field_id":{"type":"integer","description":"Field"},"delta_unit":{"type":"string"},"delta_sign":{"type":"integer"},"delta_count":{"type":"integer"}}}}}}}},"/api/v2/customers/{id}/actions/set_text_field":{"post":{"summary":"Set text field","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"field_id":{"type":"integer","description":"Field"},"text_value":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/set_checkbox_field":{"post":{"summary":"Check or uncheck a checkbox field","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"field_id":{"type":"integer","description":"Field"},"checked":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/start_automation":{"post":{"summary":"Start automation","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"automation_id":{"type":"integer","description":"Automation"}}}}}}}},"/api/v2/customers/{id}/actions/stop_automation":{"post":{"summary":"Stop automation","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"automation_id":{"type":"integer","description":"Automation"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/pause_automation":{"post":{"summary":"Pause automation","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"automation_id":{"type":"integer","description":"Automation"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/resume_automation":{"post":{"summary":"Resume automation","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"automation_id":{"type":"integer","description":"Automation"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/continue_automation":{"post":{"summary":"Continue automation now","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"automation_id":{"type":"integer","description":"Automation"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/stop_all_automations":{"post":{"summary":"Stop all automations for Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/pause_all_automations":{"post":{"summary":"Pause all automations for Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/start_countdown_timer":{"post":{"summary":"Start countdown timer","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"countdown_timer_id":{"type":"integer","description":"CountdownTimer"}}}}}}}},"/api/v2/customers/{id}/actions/extend_countdown_timer":{"post":{"summary":"Extend countdown timer","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"countdown_timer_id":{"type":"integer","description":"CountdownTimer"},"extend_by_unit":{"type":"string"},"extend_by_count":{"type":"integer"},"extend_by_sign":{"type":"integer"},"extend_by_seconds":{"type":"integer"}}}}}}}},"/api/v2/customers/{id}/actions/cancel_countdown_timer":{"post":{"summary":"Cancel countdown timer","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"countdown_timer_id":{"type":"integer","description":"CountdownTimer"}}}}}}}},"/api/v2/customers/{id}/actions/mark_as_do_not_contact":{"post":{"summary":"Mark as Do Not Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/unmark_as_do_not_contact":{"post":{"summary":"Unmark as Do Not Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/mark_as_email_bounced":{"post":{"summary":"Suppress (mark email as bounced)","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/unmark_as_email_bounced":{"post":{"summary":"Unsuppress (unmark email as bounced)","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/reverify_email":{"post":{"summary":"Re-verify email","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/mark_as_archived":{"post":{"summary":"Archive Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/mark_as_unarchived":{"post":{"summary":"Unarchive Contact","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/mark_as_warm":{"post":{"summary":"Mark Contact engaged","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/mark_as_cold":{"post":{"summary":"Mark Contact unengaged","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/unsubscribe_everything":{"post":{"summary":"Unsubscribe from everything","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/register_for_an_event":{"post":{"summary":"Register for an event","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_occurrence_id":{"type":"integer","description":"EventOccurrence"}}}}}}}},"/api/v2/customers/{id}/actions/register_for_next_occurrence":{"post":{"summary":"Register for next upcoming occurrence of event","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_id":{"type":"integer","description":"Event"}}}}}}}},"/api/v2/customers/{id}/actions/deregister_for_next_occurrence":{"post":{"summary":"Cancel registration for next upcoming occurrence of event","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_id":{"type":"integer","description":"Event"}}}}}}}},"/api/v2/customers/{id}/actions/deregister_for_all_occurrences":{"post":{"summary":"Cancel registration for all upcoming occurrences of event","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_id":{"type":"integer","description":"Event"}}}}}}}},"/api/v2/customers/{id}/actions/approve_registration_for_an_event":{"post":{"summary":"Approve registration for an event","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_occurrence_id":{"type":"integer","description":"EventOccurrence"}}}}}}}},"/api/v2/customers/{id}/actions/deny_registration_for_an_event":{"post":{"summary":"Deny registration for an event (if pending)","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_occurrence_id":{"type":"integer","description":"EventOccurrence"}}}}}}}},"/api/v2/customers/{id}/actions/cancel_registration_for_an_event":{"post":{"summary":"Cancel registration for an event (if approved)","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_occurrence_id":{"type":"integer","description":"EventOccurrence"}}}}}}}},"/api/v2/customers/{id}/actions/credit_issue":{"post":{"summary":"Issue credits","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"credit_id":{"type":"integer","description":"Credit"},"explanation":{"type":"string"},"amount":{"type":"number"}}}}}}}},"/api/v2/customers/{id}/actions/credit_consume":{"post":{"summary":"Consume credits","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"credit_id":{"type":"integer","description":"Credit"},"explanation":{"type":"string"},"amount":{"type":"number"}}}}}}}},"/api/v2/customers/{id}/actions/create_deal":{"post":{"summary":"Create deal in pipeline","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_id":{"type":"integer","description":"Pipeline"},"name":{"type":"string"},"description":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/move_deal":{"post":{"summary":"Move deal to pipeline stage","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"integer","description":"PipelineStage"}}}}}}}},"/api/v2/customers/{id}/actions/space_grant":{"post":{"summary":"Give access to space","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"space_id":{"type":"integer","description":"Space"}}}}}}}},"/api/v2/customers/{id}/actions/space_revoke":{"post":{"summary":"Revoke access to space","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"space_id":{"type":"integer","description":"Space"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/category_grant":{"post":{"summary":"Give access to page","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"category_id":{"type":"integer","description":"Category"}}}}}}}},"/api/v2/customers/{id}/actions/category_revoke":{"post":{"summary":"Revoke access to page","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"category_id":{"type":"integer","description":"Category"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/webhook":{"post":{"summary":"Post to webhook","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"outgoing_webhook_id":{"type":"integer","description":"OutgoingWebhook"}}}}}}}},"/api/v2/customers/{id}/actions/customer_sms":{"post":{"summary":"Send text message","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/product_purchase":{"post":{"summary":"Purchase product without paying","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"},"allow_duplicate":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/product_cancel":{"post":{"summary":"Cancel existing purchase of product","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"}}}}}}}},"/api/v2/customers/{id}/actions/cancel_all_purchases":{"post":{"summary":"Cancel all purchases","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/product_pause":{"post":{"summary":"Pause existing purchase of product","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"}}}}}}}},"/api/v2/customers/{id}/actions/product_resume":{"post":{"summary":"Resume existing purchase of product","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"}}}}}}}},"/api/v2/customers/{id}/actions/product_auto_renew_off":{"post":{"summary":"Turn off auto-renew for existing purchase of product","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"}}}}}}}},"/api/v2/customers/{id}/actions/product_auto_renew_on":{"post":{"summary":"Turn on auto-renew for existing purchase of product","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"}}}}}}}},"/api/v2/customers/{id}/actions/bulk_purchase":{"post":{"summary":"Create paid purchase","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"price_period_id":{"type":"integer","description":"PricePeriod"},"date":{"type":"string"},"current_user":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/product_add_paid_purchase":{"post":{"summary":"Add paid purchase to a product","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"price_id":{"type":"integer","description":"Price"}}}}}}}},"/api/v2/customers/{id}/actions/product_reset_auto_responses":{"post":{"summary":"Reset auto-responses for a product participant","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"}}}}}}}},"/api/v2/customers/{id}/actions/add_tag":{"post":{"summary":"Add a tag","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tag_ids":{"type":"array","items":{"type":"integer"},"description":"Tag"},"tag_id":{"type":"integer","description":"Tag"}}}}}}}},"/api/v2/customers/{id}/actions/remove_tag":{"post":{"summary":"Remove a tag","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tag_ids":{"type":"array","items":{"type":"integer"},"description":"Tag"},"tag_id":{"type":"integer","description":"Tag"}}}}}}}},"/api/v2/customers/{id}/actions/remove_all_tags":{"post":{"summary":"Remove all tags","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/adjust_lead_score":{"post":{"summary":"Adjust lead score","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer"},"explanation":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/list_subscribe":{"post":{"summary":"Subscribe to list","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"List"},"skip_welcome":{"type":"boolean"},"skip_auto_responses":{"type":"boolean"},"require_double_opt_in":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/list_unsubscribe":{"post":{"summary":"Unsubscribe from list","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"List"}}}}}}}},"/api/v2/customers/{id}/actions/list_resubscribe":{"post":{"summary":"Resubscribe to list","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"List"}}}}}}}},"/api/v2/customers/{id}/actions/list_unsubscribe_all":{"post":{"summary":"Unsubscribe from all lists","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/customers/{id}/actions/subscription_suspend":{"post":{"summary":"Suspend subscription to list","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"List"}}}}}}}},"/api/v2/customers/{id}/actions/subscription_resume":{"post":{"summary":"Resume subscription to list","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"List"}}}}}}}},"/api/v2/customers/{id}/actions/list_reset_auto_responses":{"post":{"summary":"Reset auto-responses for a list subscriber","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"list_id":{"type":"integer","description":"List"}}}}}}}},"/api/v2/customers/{id}/actions/site_grant":{"post":{"summary":"Give access to site","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"},"send_login_email":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/site_notifications_unsubscribe":{"post":{"summary":"Unsubscribe from all notifications on site","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/customers/{id}/actions/site_revoke":{"post":{"summary":"Revoke access to site","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/idea_upvote":{"post":{"summary":"Upvote idea","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"idea_id":{"type":"integer","description":"Idea"}}}}}}}},"/api/v2/customers/{id}/actions/page_grant":{"post":{"summary":"Give access to a page","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"page_id":{"type":"integer","description":"Page"}}}}}}}},"/api/v2/customers/{id}/actions/page_revoke":{"post":{"summary":"Revoke access to a page","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"page_id":{"type":"integer","description":"Page"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/site_group_grant":{"post":{"summary":"Give access to group","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_group_id":{"type":"integer","description":"SiteGroup"}}}}}}}},"/api/v2/customers/{id}/actions/site_group_revoke":{"post":{"summary":"Revoke access to group","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_group_id":{"type":"integer","description":"SiteGroup"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/course_grant":{"post":{"summary":"Give access to a course","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_id":{"type":"integer","description":"Course"}}}}}}}},"/api/v2/customers/{id}/actions/course_revoke":{"post":{"summary":"Revoke access to a course","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_id":{"type":"integer","description":"Course"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/course_certificate_issue":{"post":{"summary":"Issue a course certificate","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_id":{"type":"integer","description":"Course"}}}}}}}},"/api/v2/customers/{id}/actions/course_module_grant":{"post":{"summary":"Give access to a course module","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_module_id":{"type":"integer","description":"CourseModule"}}}}}}}},"/api/v2/customers/{id}/actions/course_module_revoke":{"post":{"summary":"Revoke access to a course module","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_module_id":{"type":"integer","description":"CourseModule"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/course_lesson_grant":{"post":{"summary":"Give access to a course lesson","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_lesson_id":{"type":"integer","description":"CourseLesson"}}}}}}}},"/api/v2/customers/{id}/actions/course_lesson_revoke":{"post":{"summary":"Revoke access to a course lesson","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_lesson_id":{"type":"integer","description":"CourseLesson"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/course_lesson_complete":{"post":{"summary":"Mark a lesson complete","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_lesson_id":{"type":"integer","description":"CourseLesson"}}}}}}}},"/api/v2/customers/{id}/actions/course_lesson_uncomplete":{"post":{"summary":"Mark a lesson incomplete","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_lesson_id":{"type":"integer","description":"CourseLesson"}}}}}}}},"/api/v2/customers/{id}/actions/course_restart":{"post":{"summary":"Restart a course","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"course_id":{"type":"integer","description":"Course"}}}}}}}},"/api/v2/customers/{id}/actions/spear_email":{"post":{"summary":"Send SPEAR email","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"sender_name":{"type":"string"},"sender_email":{"type":"string"},"sender_verified_email_id":{"type":"integer","description":"SenderVerifiedEmail"},"verified_sender_id":{"type":"integer"},"verified_reply_to_id":{"type":"integer"}}}}}}}},"/api/v2/customers/{id}/actions/single_action_library_mailing":{"post":{"summary":"Send email","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"sender_name":{"type":"string"},"sender_email":{"type":"string"},"sender_verified_email_id":{"type":"integer","description":"SenderVerifiedEmail"},"mailing_id":{"type":"integer","description":"Mailing"},"reply_to":{"type":"string"},"verified_sender_id":{"type":"integer"},"verified_reply_to_id":{"type":"integer"}}}}}}}},"/api/v2/customers/{id}/actions/library_mailing":{"post":{"summary":"Send existing email from Library","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mailing_id":{"type":"integer","description":"LibraryMailing"}}}}}}}},"/api/v2/customers/{id}/actions/request_signature":{"post":{"summary":"Request contract signature","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"integer","description":"Contract"},"send_email":{"type":"boolean"},"send_text":{"type":"boolean"},"email_subject":{"type":"string"},"email_body":{"type":"string"},"text_body":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/coaching_client_add":{"post":{"summary":"Add to coaching program","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"coaching_program_id":{"type":"integer","description":"CoachingProgram"}}}}}}}},"/api/v2/customers/{id}/actions/add_to_conversation":{"post":{"summary":"Add to Simplero Chat conversation","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"conversation_id":{"type":"integer","description":"Conversation"}}}}}}}},"/api/v2/customers/{id}/actions/remove_from_conversation":{"post":{"summary":"Remove from Simplero Chat conversation","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"conversation_id":{"type":"integer","description":"Conversation"}}}}}}}},"/api/v2/customers/{id}/actions/podcast_grant":{"post":{"summary":"Give access to podcast","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"podcast_id":{"type":"integer","description":"Podcast"}}}}}}}},"/api/v2/customers/{id}/actions/podcast_revoke":{"post":{"summary":"Revoke access to podcast","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"podcast_id":{"type":"integer","description":"Podcast"}}}}}}}},"/api/v2/customers/{id}/actions/bot_tier_grant":{"post":{"summary":"Give access to bot tier","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bot_tier_id":{"type":"integer","description":"BotTier"}}}}}}}},"/api/v2/customers/{id}/actions/bot_tier_revoke":{"post":{"summary":"Revoke access to bot tier","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bot_tier_id":{"type":"integer","description":"BotTier"},"on_customer":{"type":"boolean"}}}}}}}},"/api/v2/customers/{id}/actions/add_to_meta_custom_audience":{"post":{"summary":"Add to Meta custom audience","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"integration_id":{"type":"integer","description":"Integration"},"custom_audience_id":{"type":"string"}}}}}}}},"/api/v2/customers/{id}/actions/remove_from_meta_custom_audience":{"post":{"summary":"Remove from Meta custom audience","tags":["Customers"],"x-simplero-resource-type":"customers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"integration_id":{"type":"integer","description":"Integration"},"custom_audience_id":{"type":"string"}}}}}}}},"/api/v2/deals":{"get":{"summary":"List deals","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Deal"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"pipeline_stage_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","won","lost","abandoned"]}},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"assignee_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"utm_campaign_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_campaign_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"track","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, customer - first_names, last_name, email)."},"description":"Search records (matches via name, customer - first_names, last_name, email)."}]},"post":{"summary":"Create a deal","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Deal"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deal"}}}}}},"/api/v2/deals/{id}":{"get":{"summary":"Get a deal","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Deal"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a deal","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Deal"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealOptional"}}}}}},"/api/v2/deals/{id}/actions/move_to_stage":{"post":{"summary":"Move to pipeline stage","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"integer","description":"PipelineStage"}}}}}}}},"/api/v2/deals/{id}/actions/move_to_pipeline":{"post":{"summary":"Move to pipeline","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"integer","description":"PipelineStage"}}}}}}}},"/api/v2/deals/{id}/actions/set_product_id":{"post":{"summary":"Set product","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"},"update_value":{"type":"boolean"}}}}}}}},"/api/v2/deals/{id}/actions/set_value":{"post":{"summary":"Set value","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"value_cents":{"type":"integer"}}}}}}}},"/api/v2/deals/{id}/actions/delete":{"post":{"summary":"Delete Deal","tags":["Deals"],"x-simplero-resource-type":"deals","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the deal, its notes and segment memberships.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/deletion_logs":{"get":{"summary":"List deletion logs","tags":["Deletion Logs"],"x-simplero-resource-type":"deletion_logs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DeletionLog"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"record_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"record_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/deletion_logs/{id}":{"get":{"summary":"Get a deletion log","tags":["Deletion Logs"],"x-simplero-resource-type":"deletion_logs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DeletionLog"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/delivery_replies":{"get":{"summary":"List replies","tags":["Delivery Replies"],"x-simplero-resource-type":"delivery_replies","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryReply"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"mailing_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"received_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"mailing_delivery_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via from, subject, body)."},"description":"Search records (matches via from, subject, body)."}]}},"/api/v2/delivery_replies/{id}":{"get":{"summary":"Get a reply","tags":["Delivery Replies"],"x-simplero-resource-type":"delivery_replies","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DeliveryReply"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/directory_listings":{"get":{"summary":"List directory listings","tags":["Directory Listings"],"x-simplero-resource-type":"directory_listings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryListing"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","in_review","listed","changes_needed","removed"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"language","in":"query","required":false,"schema":{"type":"string"}},{"name":"includes","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via product - name, internal_name)."},"description":"Search records (matches via product - name, internal_name)."}]},"post":{"summary":"Create a directory listing","tags":["Directory Listings"],"x-simplero-resource-type":"directory_listings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DirectoryListing"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryListing"}}}}}},"/api/v2/directory_listings/{id}":{"get":{"summary":"Get a directory listing","tags":["Directory Listings"],"x-simplero-resource-type":"directory_listings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DirectoryListing"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a directory listing","tags":["Directory Listings"],"x-simplero-resource-type":"directory_listings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DirectoryListing"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryListingOptional"}}}}}},"/api/v2/directory_listings/{id}/actions/submit_for_review":{"post":{"summary":"Submit for review","tags":["Directory Listings"],"x-simplero-resource-type":"directory_listings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Checks the rules and starts the AI review. A pass lists the Product; a fail sets changes_needed with the reason in review_note.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/directory_listings/{id}/actions/remove_from_directory":{"post":{"summary":"Remove from directory","tags":["Directory Listings"],"x-simplero-resource-type":"directory_listings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/directory_profiles":{"get":{"summary":"List directory profiles","tags":["Directory Profiles"],"x-simplero-resource-type":"directory_profiles","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryProfile"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]},"post":{"summary":"Create a directory profile","tags":["Directory Profiles"],"x-simplero-resource-type":"directory_profiles","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DirectoryProfile"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryProfile"}}}}}},"/api/v2/directory_profiles/{id}":{"get":{"summary":"Get a directory profile","tags":["Directory Profiles"],"x-simplero-resource-type":"directory_profiles","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DirectoryProfile"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a directory profile","tags":["Directory Profiles"],"x-simplero-resource-type":"directory_profiles","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DirectoryProfile"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryProfileOptional"}}}}}},"/api/v2/dns_records":{"get":{"summary":"List dns records","tags":["Dns Records"],"x-simplero-resource-type":"dns_records","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecord"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":[0,1]}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":[0,1,2,3]}},{"name":"record_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"domain_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, value)."},"description":"Search records (matches via name, value)."}]}},"/api/v2/dns_records/{id}":{"get":{"summary":"Get a dns record","tags":["Dns Records"],"x-simplero-resource-type":"dns_records","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DnsRecord"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/doc_invitations":{"get":{"summary":"List doc invitations","tags":["Doc Invitations"],"x-simplero-resource-type":"doc_invitations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DocInvitation"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"doc_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a doc invitation","tags":["Doc Invitations"],"x-simplero-resource-type":"doc_invitations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DocInvitation"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocInvitation"}}}}}},"/api/v2/doc_invitations/{id}":{"get":{"summary":"Get a doc invitation","tags":["Doc Invitations"],"x-simplero-resource-type":"doc_invitations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DocInvitation"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a doc invitation","tags":["Doc Invitations"],"x-simplero-resource-type":"doc_invitations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DocInvitation"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocInvitationOptional"}}}}}},"/api/v2/doc_invitations/{id}/actions/delete":{"post":{"summary":"Delete Doc invitation","tags":["Doc Invitations"],"x-simplero-resource-type":"doc_invitations","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRevokes this doc invitation; its invite link stops working.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/docs":{"get":{"summary":"List docs","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Doc"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title)."},"description":"Search records (matches via title)."}]},"post":{"summary":"Create a doc","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Doc"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Doc"}}}}}},"/api/v2/docs/{id}":{"get":{"summary":"Get a doc","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Doc"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a doc","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Doc"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocOptional"}}}}}},"/api/v2/docs/{id}/builder/content/node_types":{"get":{"summary":"List available builder node types","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"category":{"type":"string","nullable":true,"description":"Category (e.g. General, Media, Layout); null for structural containers like section/row/column"}},"required":["type","name"]}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns node types that can be added to this builder doc. If parent_node_id is given, filters to types valid as children of that node.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"parent_node_id","in":"query","required":false,"schema":{"type":"string","description":"Limit to types valid as children of this node."},"description":"Limit to types valid as children of this node."}]}},"/api/v2/docs/{id}/builder/content/node_types/detail":{"get":{"summary":"Get builder node type schema","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"settings":{"type":"array","items":{"type":"string"},"description":"Ids of settings available on this node type. Args schemas are not included here — use the node_types/settings_detail endpoint to fetch them."}},"required":["type","name","settings"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the list of settings available on a single node type. Type is passed as a query param because it may contain slashes. To get the full args schema (defaults, types) for a specific setting, call the node_types/settings_detail endpoint with the setting ids you care about.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"}]}},"/api/v2/docs/{id}/builder/content/node_types/settings_detail":{"get":{"summary":"Get builder node type settings detail","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{"type":"object","properties":{"args":{"type":"object","additionalProperties":{"type":"object","properties":{"default":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Default value for this arg"},"type":{"type":"string","nullable":true,"description":"Ruby type for the arg, if known (e.g. String, Integer)"},"acceptable_values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Arg value — arbitrary JSON scalar, object, or array. Shape depends on the specific setting and arg."},"nullable":true,"description":"Accepted values for enum-like args. Omitted when the arg does not restrict to a specific set."},"description":{"type":"string","nullable":true,"description":"Natural-language description of the arg. When the arg is only relevant under certain conditions, that is prepended as a sentence (e.g. \"Only when by_tag is true.\")."}}},"description":"Arg name → { default, type }. Uses these defaults when omitting args under a breakpoint."}},"required":["args"]},"description":"Setting id → { args }."}},"required":["data"]}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full args schema (defaults, types) for one or more settings of a given node type. Scoped by the node type. Returns a hash keyed by setting id. Note that the args listed here sit one level BELOW a breakpoint when you write them: a value is set as settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e], e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Use \"base\" unless you want a per-breakpoint override.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},{"name":"setting_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."}]}},"/api/v2/docs/{id}/builder/content/nodes":{"get":{"summary":"Get the builder doc node tree","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of the tree; recursively contains children."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full working-version node tree for this record.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"post":{"summary":"Create a builder doc node","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The created node, including its generated id."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds a new node to the tree under the given parent. Pass publish_changes: true to publish the working version immediately. Note: creating an `html_section` node here is allowed but you MUST NOT pass any `settings` — to set its HTML content, create it first and then use the html_section update endpoint (POST builder/content/html_section). To insert a Saved or Global block, pass `block_id` (from GET /api/v2/blocks) instead of `type`/`settings`. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type to create (e.g. section, elements/headline). Required unless block_id is set."},"parent_node_id":{"type":"string","description":"Id of the parent node"},"after_node_id":{"type":"string","nullable":true,"description":"If set, insert after this sibling; otherwise appended"},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to leave unnamed."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Initial setting values, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Breakpoints are base, tab, mob; use \"base\" unless you want a per-breakpoint override. All settings/breakpoints/args are optional. Ignored when block_id is set."},"block_id":{"type":"integer","description":"Id of a Saved or Global block (GET /api/v2/blocks) to insert under the parent. Global blocks stay live-linked; saved blocks copy their tree once."},"publish_changes":{"type":"boolean","description":"Publish the working version after creation"}},"required":["parent_node_id"]}}}}}},"/api/v2/docs/{id}/builder/content/nodes/{node_id}":{"get":{"summary":"Get a builder doc node","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The node."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns a single node by id from the working version.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a builder doc node","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The updated node."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Partial update — only the keys you pass are merged into the node. Settings are deep-merged. Pass publish_changes: true to publish the working version immediately. Note: `html_section` nodes cannot be updated via this endpoint — use the html_section update endpoint (POST builder/content/html_section) instead. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. Deep-merged into the node — only keys you pass are touched."},"type":{"type":"string","description":"Turn a text element into another text type, e.g. elements/paragraph into elements/headline (the editor's \"Turn into\"). Only the types the node can be turned into are accepted; its content and heading tag are converted. Settings passed in the same call are validated against the new type and applied after the conversion."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value."},"meta":{"type":"object","description":"Meta values to merge into the node. Free-form bag of keys/values."},"publish_changes":{"type":"boolean","description":"Publish the working version after update"},"revision":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."}}}}}}},"delete":{"summary":"Delete a builder doc node","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes a node from the tree. Pass publish_changes: true to publish the working version immediately.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"publish_changes","in":"query","required":false,"schema":{"type":"boolean","description":"Publish the working version after deletion"},"description":"Publish the working version after deletion"},{"name":"revision","in":"query","required":false,"schema":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},"description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/docs/{id}/builder/content/nodes/{node_id}/unlink":{"post":{"summary":"Unlink a global block instance","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The unlinked node with local settings and children."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Detaches a live-linked global block instance into a normal local section (copies current block content into the page). Mirrors the builder Unlink control. Only valid for global block instances.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"publish_changes":{"type":"boolean","description":"Publish the working version after unlinking"}}}}}}}},"/api/v2/docs/{id}/builder/content/html_section/embed":{"post":{"summary":"Generate embed markup for a node type","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"embed_html":{"type":"string","description":"\u003cbuilder-node\u003e markup that you can use in an html section's html"}},"required":["embed_html"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Returns a \u003cbuilder-node\u003e custom element markup string that you can paste into the html of an html_section to embed a structured builder node (e.g. an order form, input field, button, signup form, etc.) inside free-form HTML.\n\nHow to use:\n  1. Use the node_types endpoints for this builder role to find the `type` of the node you want to embed and its available settings.\n  2. POST here with that `type` and any `settings` you want baked in. The response contains `embed_html` — a self-contained \u003cbuilder-node ...\u003e\u003c/builder-node\u003e snippet.\n  3. Paste that `embed_html` string verbatim into the `html` you send to the html_section update endpoint (POST builder/content/html_section). At runtime it will be replaced with the rendered node.\n\nTypical flow: build the bulk of your page as HTML via the html_section update endpoint, and sprinkle in these \u003cbuilder-node\u003e embeds wherever you need a dynamic Simplero element (order form, opt-in form, buy button, etc.) that you can't express as plain HTML.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. All settings/breakpoints/args are optional."}},"required":["type"]}}}}}},"/api/v2/docs/{id}/builder/content/html_section":{"post":{"summary":"Create or update HTML section content","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"node_id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["node_id","html","settings","revision"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create or update the HTML content and/or the non-content settings of an html_section node.\n\n`node_id` is required. Pass either:\n  * The id of an existing `html_section` node — updates its HTML, its `settings`, or both. Pass `html`, `settings`, or both, plus the `revision` from your last read.\n  * The literal string `\"create_new\"` — creates a new `html_section` node under the root with the given `html` (required) and optional `settings`.\n\nSettings (conditional visibility and animation):\n  `settings` sets the section's non-content settings: `visibility_customer` (show/hide by tag, list, product, browser language or countdown timer), `visibility_period` (visible between two Unix timestamps), `toggle_visibility_after_page_load`, `animation`, and `visibility`. Discover their args with GET builder/content/node_types/settings_detail?type=html_section\u0026setting_ids=visibility_customer,visibility_period,toggle_visibility_after_page_load,animation. Settings are deep-merged: only the args you pass change. Use JSON booleans, e.g. `{ \"visibility_period\": { \"base\": { \"enabled\": true, \"visible_from\": 1767225600, \"visible_to\": 1767830400 } } }`.\n  To change settings only, omit `html`: the section's HTML and embedded nodes are left exactly as they are, so there is no need to resend the full HTML. The section's HTML itself is never a setting — pass it as `html`.\n\nPass `publish_changes: true` to publish the working version immediately after the change.\n\nEmbedding structured builder nodes inside the HTML:\n  You can embed dynamic Simplero elements (order forms, opt-in forms, buttons, input fields, etc.) inside the HTML. See the description of the html_section embed endpoint (POST builder/content/html_section/embed) for how this works.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","description":"Required when creating, and when changing the HTML of an existing section; omit it for a settings-only update. The HTML content to set. CSS rules MUST be wrapped in \u003cstyle\u003e tags — the system extracts them into a separate style field automatically. Never write bare CSS (e.g. `:root { }`, `.class { }`) as plain text in the body; it will be treated as visible text content, not styles. Inline style=\"\" attributes on elements are fine."},"node_id":{"type":"string","description":"The id of the html_section node to update, or \"create_new\" to create a new one."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value (or leave unnamed when creating a new section)."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Non-content settings to deep-merge into the section, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"animation\": { \"base\": { \"style\": \"fade\" } } }. Any html_section setting except `html`."},"publish_changes":{"type":"boolean","description":"Publish the working version after the change."},"revision":{"type":"string","description":"Required when updating an existing section: the revision from your last read of it. The update fails with 409 if the section changed since, so a stale write never overwrites a newer edit. Ignored with node_id \"create_new\"."}},"required":["node_id"]}}}}},"get":{"summary":"Get HTML section content","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["id","html","settings","revision"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the HTML content and the non-content settings (conditional visibility, animation) of the html_section node with the given id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"query","required":true,"schema":{"type":"string","description":"The id of the html_section node to fetch."},"description":"The id of the html_section node to fetch."}]}},"/api/v2/docs/{id}/builder/content/publish":{"post":{"summary":"Publish the working version","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Publishes the current working version of this record's builder doc, making staged changes live. Fails when the working draft is disconnected from the published version — POST builder/content/discard_unpublished_changes first.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/docs/{id}/builder/content/versions":{"get":{"summary":"List builder doc version history","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Active working lineage, newest first."},"refused_edit_versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Side versions (change_type `refused_edits`) keeping edits the server refused because the page changed under them, newest first. Off the working lineage; restore one to bring its content back."}},"required":["published_version_on_working_lineage","versions"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the active working lineage of this record's builder doc, newest first, plus publish/working status.\n\nCompacted and orphaned versions are omitted. When `published_version_on_working_lineage` is false, the working\ndraft is disconnected from published — POST discard_unpublished_changes to reconnect before publishing.\nThe published version is still identified by `published_version_id` even when it is not in `versions`.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/docs/{id}/builder/content/versions/{version_id}":{"get":{"summary":"Get a builder doc version","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."},"content":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of this version's tree; recursively contains children."},"settings":{"type":"object","description":"Version-level settings snapshot."},"style_guide_id":{"type":"integer","nullable":true},"layout_id":{"type":"integer","nullable":true}},"required":["id","created_at","published","working"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns one version, including its node tree. The version must belong to this record's builder doc; compacted/orphaned versions are still fetchable by id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/docs/{id}/builder/content/versions/{version_id}/restore":{"post":{"summary":"Restore a builder doc version","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"restored_from_version_id":{"type":"integer"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The newly created working draft."}},"required":["published_version_on_working_lineage","success","restored_from_version_id"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates a new working draft whose content matches the given version. Does not publish.\n\nThe restored snapshot is always a new version on top of the current working version (same as Restore\nthis version in the editor). To throw away a disconnected draft and go back to published, use\ndiscard_unpublished_changes instead.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/docs/{id}/builder/content/undo":{"post":{"summary":"Undo a builder doc change","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to undo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/docs/{id}/builder/content/redo":{"post":{"summary":"Redo a builder doc change","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to redo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/docs/{id}/builder/content/discard_unpublished_changes":{"post":{"summary":"Discard unpublished builder doc changes","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Throws away the working draft and reconnects working to the currently published version.\nThis is the operation that repairs a disconnected working lineage so publish can succeed.\n\nNo-op-success when working is already the published version. Errors when the doc has never been published.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/docs/{id}/builder/content/accessibility":{"get":{"summary":"Run WCAG 2.1 AA accessibility check","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"pass":{"type":"boolean"},"error_count":{"type":"integer"},"warning_count":{"type":"integer"},"checked_at":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string"},"message":{"type":"string"},"node_id":{"type":"string"},"node_type":{"type":"string"},"suggestion":{"type":"string"},"meta":{"type":"object","description":"Extra details (colors, ratio, suggested_fg, …). Free-form."}},"required":["code","severity","message"]}}},"required":["pass","error_count","warning_count","checked_at","issues"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Audits the working version of this record's builder doc (and its style guide) for WCAG 2.1 AA issues:\ncolor contrast (text vs background on palette roles and color styles), missing image alt text,\nheading hierarchy, and keyboard/focus risks in HTML sections.\n\nAlways run this at the end of a page build, before publish. For each contrast failure, `suggestion`\nand `meta.suggested_fg` include a replacement color that meets the AA ratio — apply those fixes\n(update style guide colors / node settings / HTML) and re-run until `pass` is true or only\nwarnings remain that the user has accepted.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/docs/{id}/builder/content/preview_url":{"get":{"summary":"Get a short-lived preview link","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Open within expires_at."},"expires_at":{"type":"string","format":"date-time"}},"required":["url","expires_at"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"A link to this page as it is now, its working (unpublished) version, that opens without a login for 10 minutes. Open it in your own headless browser to take screenshots and check your design; ask for a new link when it expires. Visits to it count no page views. For landing pages, funnel pages and site pages.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/docs/{id}/builder/content/design_guide":{"get":{"summary":"Get the design guide","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"version":{"type":"string"},"text":{"type":"string","description":"Markdown."}},"required":["version","text"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"What the main design settings look like (section and column color styles, padding, gaps, typography and button styles…), and what to avoid, written from screenshots in several style guides. Read it before you style a page. `version` changes whenever the notes change: keep it, and read the guide again when it differs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/docs/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/docs/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/docs/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/docs/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/docs/{id}/actions/delete":{"post":{"summary":"Delete Doc","tags":["Docs"],"x-simplero-resource-type":"docs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the doc, its builder documents and invitations.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/domains/{id}/actions/check_status":{"post":{"summary":"Re-check nameservers","tags":["Domains"],"x-simplero-resource-type":"domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Runs the same check as the admin \"Re-check nameservers\" button. The check runs in the background,\nso poll `GET /api/v2/domains/{id}` for `state`.\n\nThe limit is 2 checks per 2 minutes per domain, shared with the admin. Over the limit it answers 429.\nA domain on another account gives 404.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/domains":{"get":{"summary":"List domains","tags":["Domains"],"x-simplero-resource-type":"domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]}},"/api/v2/domains/{id}":{"get":{"summary":"Get a domain","tags":["Domains"],"x-simplero-resource-type":"domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Domain"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/done_for_you_templates":{"get":{"summary":"List done-for-you campaigns","tags":["Done For You Templates"],"x-simplero-resource-type":"done_for_you_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DoneForYouTemplate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"account_owned","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"published","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["published","draft"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, author, author_url)."},"description":"Search records (matches via name, author, author_url)."}]},"post":{"summary":"Create a done-for-you campaign","tags":["Done For You Templates"],"x-simplero-resource-type":"done_for_you_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DoneForYouTemplate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoneForYouTemplate"}}}}}},"/api/v2/done_for_you_templates/{id}":{"get":{"summary":"Get a done-for-you campaign","tags":["Done For You Templates"],"x-simplero-resource-type":"done_for_you_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DoneForYouTemplate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a done-for-you campaign","tags":["Done For You Templates"],"x-simplero-resource-type":"done_for_you_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DoneForYouTemplate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoneForYouTemplateOptional"}}}}}},"/api/v2/done_for_you_templates/{id}/actions/install_on_child_accounts":{"post":{"summary":"Install on child accounts","tags":["Done For You Templates"],"x-simplero-resource-type":"done_for_you_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"check_existing_installation":{"type":"string"}}}}}}}},"/api/v2/email_bounces":{"get":{"summary":"List bounced emails","tags":["Email Bounces"],"x-simplero-resource-type":"email_bounces","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EmailBounce"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["hard","soft"]}},{"name":"delivery_type","in":"query","required":false,"schema":{"type":"string","enum":["MailingDelivery","TransactionalEmail"]}},{"name":"delivery_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via message)."},"description":"Search records (matches via message)."}]}},"/api/v2/email_bounces/{id}":{"get":{"summary":"Get a bounced email","tags":["Email Bounces"],"x-simplero-resource-type":"email_bounces","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EmailBounce"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/email_domains":{"get":{"summary":"List email domains","tags":["Email Domains"],"x-simplero-resource-type":"email_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EmailDomain"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]}},"/api/v2/email_domains/{id}":{"get":{"summary":"Get a email domain","tags":["Email Domains"],"x-simplero-resource-type":"email_domains","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EmailDomain"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/email_templates":{"get":{"summary":"List email designs","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true}]},"post":{"summary":"Create a email design","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EmailTemplate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}}}},"/api/v2/email_templates/{id}":{"get":{"summary":"Get a email design","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EmailTemplate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a email design","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EmailTemplate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateOptional"}}}}}},"/api/v2/email_templates/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/email_templates/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/email_templates/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"integer"}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/email_templates/{id}/actions/make_default":{"post":{"summary":"Make default","tags":["Email Templates"],"x-simplero-resource-type":"email_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrence_participants":{"get":{"summary":"List event participants","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EventOccurrenceParticipant"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"registration_state","in":"query","required":false,"schema":{"type":"string","enum":[2,1,3,4,5,6,7,8]}},{"name":"attendance_status","in":"query","required":false,"schema":{"type":"string","enum":["attendees","absentees"]}},{"name":"registered_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"first_joined_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"last_joined_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"last_left_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"duration_attended_in_seconds","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"ip_address","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"referrer","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"ref","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"track","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_link_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"device_type","in":"query","required":false,"schema":{"type":"string","enum":[1,2]}},{"name":"screen_size","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"user_agent","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"request_locale","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_campaign","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"event_occurrence_status","in":"query","required":false,"schema":{"type":"string","enum":["not_ended_fixed","ended","canceled","without_fixed_time","not_ended"]}},{"name":"contract_signed","in":"query","required":false,"schema":{"type":"string","enum":["yes","no"]}},{"name":"contract_signed_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via customer - first_names, last_name, email)."},"description":"Search records (matches via customer - first_names, last_name, email)."}]}},"/api/v2/event_occurrence_participants/{id}":{"get":{"summary":"Get a event participant","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EventOccurrenceParticipant"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/event_occurrence_participants/{id}/actions/approve_registration":{"post":{"summary":"Approve registration","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrence_participants/{id}/actions/waitlist_registration":{"post":{"summary":"Waitlist registration","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrence_participants/{id}/actions/deny_registration":{"post":{"summary":"Deny registration","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrence_participants/{id}/actions/cancel_registration":{"post":{"summary":"Cancel registration","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrence_participants/{id}/actions/cancel_booking":{"post":{"summary":"Cancel booking","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrence_participants/{id}/actions/resend_confirmation_email":{"post":{"summary":"Resend confirmation email","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrence_participants/{id}/actions/set_deal_assignee_to_scheduling_link_organizer":{"post":{"summary":"Set Deal Assignee to the organizer on the Scheduling Link","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_id":{"type":"integer","description":"Pipeline"}}}}}}}},"/api/v2/event_occurrence_participants/{id}/actions/move_to_occurrence":{"post":{"summary":"Move to another occurrence","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"event_occurrence_id":{"type":"integer","description":"EventOccurrence"}}}}}}}},"/api/v2/event_occurrence_participants/{id}/actions/disassociate_from_funnel":{"post":{"summary":"Disassociate from funnel","tags":["Event Occurrence Participants"],"x-simplero-resource-type":"event_occurrence_participants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrences":{"get":{"summary":"List event occurrences","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EventOccurrence"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"starts_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"ends_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"event_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"site_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"registration_type","in":"query","required":false,"schema":{"type":"string","enum":[1,2,3]}},{"name":"approval_type","in":"query","required":false,"schema":{"type":"string","enum":[1,2,3]}},{"name":"event_type","in":"query","required":false,"schema":{"type":"string","enum":[1,3,2]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["not_ended_recent","not_ended_fixed","ended","canceled","expired","without_fixed_time","not_ended"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["regular","zoom"]}},{"name":"location_type","in":"query","required":false,"schema":{"type":"string","enum":["in_person","url","zoom","google_meet","microsoft_teams","simplero_live","tbd"]}},{"name":"host","in":"query","required":false,"schema":{"type":"string"}},{"name":"organizer","in":"query","required":false,"schema":{"type":"string"}},{"name":"booking_type","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"scheduling_link_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"funnel_step_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via event - title, internal_name, description, location_url)."},"description":"Search records (matches via event - title, internal_name, description, location_url)."}]}},"/api/v2/event_occurrences/{id}":{"get":{"summary":"Get a event occurrence","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EventOccurrence"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a event occurrence","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EventOccurrence"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOccurrenceOptional"}}}}}},"/api/v2/event_occurrences/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/event_occurrences/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/event_occurrences/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/event_occurrences/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/event_occurrences/{id}/actions/cancel":{"post":{"summary":"Cancel","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Cancels a booked appointment (a scheduling-link booking) the same way the admin's Cancel event button does. Each participant's registration is canceled, which runs their registration-canceled automations and updates connected calendars. Simplero sends no email about it: neither the organizer notice nor a participant cancellation email. The scheduling link's Event canceled automations do not run, and no refund is made. Answers 422 when the appointment is already canceled or expired, has ended, or is a group event.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/event_occurrences/{id}/actions/change_organizer":{"post":{"summary":"Change organizer","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/event_occurrences/{id}/actions/set_hosts":{"post":{"summary":"Set hosts","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_ids":{"type":"array","items":{"type":"integer"},"description":"User"}}}}}}}},"/api/v2/event_occurrences/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"starts_at_in_time_zone":{"type":"string"},"ends_at_in_time_zone":{"type":"string"},"time_zone":{"type":"string"}}}}}}}},"/api/v2/event_occurrences/{id}/actions/create_recording_lesson":{"post":{"summary":"Create recording lesson","tags":["Event Occurrences"],"x-simplero-resource-type":"event_occurrences","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/events":{"get":{"summary":"List events","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, internal_name, description, location_url)."},"description":"Search records (matches via title, internal_name, description, location_url)."}]},"post":{"summary":"Create a event","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Event"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}}}},"/api/v2/events/{id}":{"get":{"summary":"Get a event","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Event"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a event","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Event"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOptional"}}}}}},"/api/v2/events/{id}/actions/create_automation_from_template":{"post":{"summary":"Create automation from template","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new automation"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates an automation that starts on this record, built from one of its automation_templates. Answers: freebie_offer takes asset_ids (comma-separated files, added to the list Content; not needed when the list already has Content), product_id to sell, and style 'story' (Soap Opera, 5 emails) or 'plain' (Reviver, 6 emails); freebie_offer and email_sequence can instead end on scheduling_link_id (a call: the automation stops when they book) or survey_id (an application: it stops when they respond); product_id wins over both. event_reminders_replay takes replay_link (an https:// link or a simplero:// link to one of your pages; else the event page shows the replay) and product_id; email_sequence takes count (1-100) and days (at least count; default twice count), the first email now and the last on the last day, and product_id: the emails stop when they buy it. event_reminders and event_reminders_replay take reminders, a comma-separated list of 1_week, 3_days, 1_day, 1_hour, 10_minutes (default '1_day,1_hour,10_minutes'). Freebie and event templates write their emails with AI in the background; the automation is frozen (on_hold) until they are written. They also take locale, the language the emails are written in (default: the account customer_locale); about, what it's about, which AI follows first; and writer: 'ai' (default) or 'me' for just the structure, with each email saying what to write, left frozen.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string"},"name":{"type":"string"},"asset_ids":{"type":"string"},"asset_id":{"type":"integer","description":"Asset"},"product_id":{"type":"integer","description":"Product"},"scheduling_link_id":{"type":"integer","description":"SchedulingLink"},"survey_id":{"type":"integer","description":"Survey"},"style":{"type":"string"},"locale":{"type":"string"},"replay_link":{"type":"string"},"reminders":{"type":"string"},"count":{"type":"string"},"days":{"type":"string"},"writer":{"type":"string"},"about":{"type":"string"}}}}}}}},"/api/v2/events/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/events/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/events/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/events/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/events/{id}/actions/add_to_site":{"post":{"summary":"Add event series to site(s)","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_ids":{"type":"array","items":{"type":"integer"},"description":"Site"}}}}}}}},"/api/v2/events/{id}/actions/remove_from_site":{"post":{"summary":"Remove event series from site(s)","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_ids":{"type":"array","items":{"type":"integer"},"description":"Site"}}}}}}}},"/api/v2/events/{id}/actions/delete":{"post":{"summary":"Delete Event","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves event occurrences, participants, recurrence settings, listings and triggers. Connected calendar and meeting cleanup follows the same behavior as an admin delete.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/events/{id}/actions/disassociate_from_funnel":{"post":{"summary":"Disassociate from funnel","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/events/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Events"],"x-simplero-resource-type":"events","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/facet_values":{"get":{"summary":"List facet values","tags":["Facet Values"],"x-simplero-resource-type":"facet_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"facet_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, admin_description)."},"description":"Search records (matches via name, admin_description)."}]},"post":{"summary":"Create a facet value","tags":["Facet Values"],"x-simplero-resource-type":"facet_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FacetValue"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacetValue"}}}}}},"/api/v2/facet_values/{id}":{"get":{"summary":"Get a facet value","tags":["Facet Values"],"x-simplero-resource-type":"facet_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FacetValue"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a facet value","tags":["Facet Values"],"x-simplero-resource-type":"facet_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FacetValue"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacetValueOptional"}}}}}},"/api/v2/facet_values/{id}/actions/delete":{"post":{"summary":"Delete Facet value","tags":["Facet Values"],"x-simplero-resource-type":"facet_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this value and its descendants, facet assignments and notification subscriptions. Connected support-facet references are cleared.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/facetings":{"get":{"summary":"List facetings","tags":["Facetings"],"x-simplero-resource-type":"facetings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Faceting"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"facet_value_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"object_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"object_type","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a faceting","tags":["Facetings"],"x-simplero-resource-type":"facetings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Faceting"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Faceting"}}}}}},"/api/v2/facetings/{id}":{"get":{"summary":"Get a faceting","tags":["Facetings"],"x-simplero-resource-type":"facetings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Faceting"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/facets":{"get":{"summary":"List facets","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Facet"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"internal_name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, internal_name, note)."},"description":"Search records (matches via name, internal_name, note)."}]},"post":{"summary":"Create a facet","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Facet"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Facet"}}}}}},"/api/v2/facets/{id}":{"get":{"summary":"Get a facet","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Facet"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a facet","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Facet"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacetOptional"}}}}}},"/api/v2/facets/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/facets/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/facets/{id}/actions/delete":{"post":{"summary":"Delete Facet","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves facet values and object-facet configuration.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/facets/{id}/actions/order_values_alphabetically":{"post":{"summary":"Order values alphabetically","tags":["Facets"],"x-simplero-resource-type":"facets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/field_option_values":{"get":{"summary":"List field option values","tags":["Field Option Values"],"x-simplero-resource-type":"field_option_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FieldOptionValue"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"field_value_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"field_option_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/field_option_values/{id}":{"get":{"summary":"Get a field option value","tags":["Field Option Values"],"x-simplero-resource-type":"field_option_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FieldOptionValue"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/field_options":{"get":{"summary":"List options","tags":["Field Options"],"x-simplero-resource-type":"field_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FieldOption"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"field_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via label, other_placeholder)."},"description":"Search records (matches via label, other_placeholder)."}]},"post":{"summary":"Create a option","tags":["Field Options"],"x-simplero-resource-type":"field_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FieldOption"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldOption"}}}}}},"/api/v2/field_options/{id}":{"get":{"summary":"Get a option","tags":["Field Options"],"x-simplero-resource-type":"field_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FieldOption"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a option","tags":["Field Options"],"x-simplero-resource-type":"field_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FieldOption"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldOptionOptional"}}}}}},"/api/v2/field_options/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Field Options"],"x-simplero-resource-type":"field_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/field_options/{id}/actions/delete":{"post":{"summary":"Delete Option","tags":["Field Options"],"x-simplero-resource-type":"field_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/field_values":{"get":{"summary":"List field values","tags":["Field Values"],"x-simplero-resource-type":"field_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"field_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner_type","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a field value","tags":["Field Values"],"x-simplero-resource-type":"field_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FieldValue"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldValue"}}}}}},"/api/v2/field_values/{id}":{"get":{"summary":"Get a field value","tags":["Field Values"],"x-simplero-resource-type":"field_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FieldValue"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a field value","tags":["Field Values"],"x-simplero-resource-type":"field_values","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FieldValue"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldValueOptional"}}}}}},"/api/v2/fields":{"get":{"summary":"List custom fields","tags":["Fields"],"x-simplero-resource-type":"fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Field"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, label, content, key, field_type, subheading)."},"description":"Search records (matches via internal_name, label, content, key, field_type, subheading)."}]},"post":{"summary":"Create a custom field","tags":["Fields"],"x-simplero-resource-type":"fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Field"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Field"}}}}}},"/api/v2/fields/{id}":{"get":{"summary":"Get a custom field","tags":["Fields"],"x-simplero-resource-type":"fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Field"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a custom field","tags":["Fields"],"x-simplero-resource-type":"fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Field"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldOptional"}}}}}},"/api/v2/flows":{"get":{"summary":"List flows","tags":["Flows"],"x-simplero-resource-type":"flows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Flow"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"description":"Which contacts are in which automation, and at which step. Pass automation_id, customer_id, or both.\nOther filters and search (`q`) are refused with a 422. On an automation with many flows, page with `after`:\nit skips the total count, and a list query that runs over 60 seconds is stopped.","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return flows with id greater than this value (use the previous response's `pagination.next_after`), ordered by id."},"description":"Cursor pagination: return flows with id greater than this value (use the previous response's `pagination.next_after`), ordered by id."},{"name":"automation_id","in":"query","required":false,"schema":{"type":"integer","description":"Only flows in this automation (a single ID). automation_id or customer_id is required."},"description":"Only flows in this automation (a single ID). automation_id or customer_id is required."},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer","description":"Only flows of this contact (a single ID). automation_id or customer_id is required."},"description":"Only flows of this contact (a single ID). automation_id or customer_id is required."}]}},"/api/v2/flows/{id}":{"get":{"summary":"Get a flow","tags":["Flows"],"x-simplero-resource-type":"flows","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Flow"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/form_fields":{"get":{"summary":"List fields","tags":["Form Fields"],"x-simplero-resource-type":"form_fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FormField"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"field_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"purpose","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via label, field - internal_name, label, key)."},"description":"Search records (matches via label, field - internal_name, label, key)."}]},"post":{"summary":"Create a field","tags":["Form Fields"],"x-simplero-resource-type":"form_fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FormField"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormField"}}}}}},"/api/v2/form_fields/{id}":{"get":{"summary":"Get a field","tags":["Form Fields"],"x-simplero-resource-type":"form_fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FormField"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a field","tags":["Form Fields"],"x-simplero-resource-type":"form_fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FormField"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormFieldOptional"}}}}}},"/api/v2/form_fields/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Form Fields"],"x-simplero-resource-type":"form_fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/form_fields/{id}/actions/delete":{"post":{"summary":"Delete Field","tags":["Form Fields"],"x-simplero-resource-type":"form_fields","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this form placement and related conditions. A contact field also removes its other form placements. When the underlying field is no longer used, its submitted values are deleted and its interpolation key is freed. Mandatory fields cannot be deleted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/forum_categories":{"get":{"summary":"List categories","tags":["Forum Categories"],"x-simplero-resource-type":"forum_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ForumCategory"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"forum_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via label, intro_text)."},"description":"Search records (matches via label, intro_text)."}]}},"/api/v2/forum_categories/{id}":{"get":{"summary":"Get a category","tags":["Forum Categories"],"x-simplero-resource-type":"forum_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ForumCategory"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a category","tags":["Forum Categories"],"x-simplero-resource-type":"forum_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ForumCategory"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForumCategoryOptional"}}}}}},"/api/v2/forum_categories/{id}/actions/delete":{"post":{"summary":"Delete Category","tags":["Forum Categories"],"x-simplero-resource-type":"forum_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nOnly an empty category can be deleted, and the forum must keep at least one category.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/forum_posts":{"get":{"summary":"List forum posts","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ForumPost"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"facet_value_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"pinned","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"publish_status","in":"query","required":false,"schema":{"type":"string","enum":["draft","scheduled","published"]}},{"name":"category_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"approved","in":"query","required":false,"schema":{"type":"string","enum":["approved","rejected","pending"]}},{"name":"forum_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, body)."},"description":"Search records (matches via title, body)."}]},"post":{"summary":"Create a forum post","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ForumPost"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForumPost"}}}}}},"/api/v2/forum_posts/{id}":{"get":{"summary":"Get a forum post","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ForumPost"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a forum post","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ForumPost"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForumPostOptional"}}}}}},"/api/v2/forum_posts/{id}/actions/reject_with_message":{"post":{"summary":"Reject with message","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"rejection_message":{"type":"string"}}}}}}}},"/api/v2/forum_posts/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/forum_posts/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/forum_posts/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/forum_posts/{id}/actions/approve":{"post":{"summary":"Approve","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/forum_posts/{id}/actions/reject":{"post":{"summary":"Reject","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/forum_posts/{id}/actions/change_category":{"post":{"summary":"Change category","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"category_id":{"type":"integer"}}}}}}}},"/api/v2/forum_posts/{id}/actions/delete":{"post":{"summary":"Delete Forum post","tags":["Forum Posts"],"x-simplero-resource-type":"forum_posts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the post, its attachments, notifications and comments.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnel_connectors":{"post":{"summary":"Add a branch to a split or condition step","tags":["Funnel Connectors"],"x-simplero-resource-type":"funnel_connectors","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FunnelConnector"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds a new empty branch (connector) to a `split_test` or `condition` step.\nThe new connector goes from `parent_id` (the split/condition step) to that\nstep's paired join step, marked `created_blank: true`. Fill the branch by\ncreating steps with `connector_id` set to this connector's id.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"parent_id":{"type":"integer","description":"A split_test or condition step ID."}},"required":["parent_id"]}}}}},"get":{"summary":"List funnel connectors","tags":["Funnel Connectors"],"x-simplero-resource-type":"funnel_connectors","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FunnelConnector"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"funnel_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/funnel_connectors/{id}":{"delete":{"summary":"Delete a funnel connector","tags":["Funnel Connectors"],"x-simplero-resource-type":"funnel_connectors","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes a branch from a split or condition step. The branch must be empty\n— remove any steps inside it first via `POST /api/v2/funnel_steps/:id/actions/archive`.\n\nCannot delete the otherwise branch, or the last remaining non-otherwise branch.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]},"get":{"summary":"Get a funnel connector","tags":["Funnel Connectors"],"x-simplero-resource-type":"funnel_connectors","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FunnelConnector"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a funnel connector","tags":["Funnel Connectors"],"x-simplero-resource-type":"funnel_connectors","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FunnelConnector"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelConnectorOptional"}}}}}},"/api/v2/funnel_steps":{"post":{"summary":"Create a funnel step","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FunnelStep"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create a new step in a funnel. The step is graph-aware: for `split_test` /\n`condition` step types, the paired join step and minimum connectors are\ncreated atomically.\n\nPlacement parameters (all optional, mutually exclusive):\n- `after_step_id` — insert after the given step (uses its child connector).\n- `before_step_id` — insert before the given step (uses its parent connector).\n- `connector_id` — insert into a specific connector (e.g. into a split branch).\n- None of the above — append before the funnel's `last` sentinel step.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStep"}}}}},"get":{"summary":"List funnel steps","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"funnel_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/funnel_steps/{id}":{"get":{"summary":"Get a funnel step","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FunnelStep"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a funnel step","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FunnelStep"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelStepOptional"}}}}}},"/api/v2/funnel_steps/{id}/actions/move":{"post":{"summary":"Move","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"after_step_id":{"type":"integer","description":"FunnelStep"},"before_step_id":{"type":"integer","description":"FunnelStep"},"connector_id":{"type":"integer","description":"FunnelConnector"}}}}}}}},"/api/v2/funnel_steps/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"after_step_id":{"type":"integer","description":"FunnelStep"},"before_step_id":{"type":"integer","description":"FunnelStep"},"connector_id":{"type":"integer","description":"FunnelConnector"}}}}}}}},"/api/v2/funnel_steps/{id}/actions/archive":{"post":{"summary":"Archive","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnel_steps/{id}/actions/restore":{"post":{"summary":"Restore","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"duplicate":{"type":"boolean"}}}}}}}},"/api/v2/funnel_steps/{id}/actions/duplicate_to_new_branch":{"post":{"summary":"Duplicate to a new split branch","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnel_steps/{id}/actions/duplicate_to_otherwise_branch":{"post":{"summary":"Duplicate to the otherwise branch","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnel_steps/{id}/actions/duplicate_to_funnel":{"post":{"summary":"Duplicate to another funnel","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"new_funnel_id":{"type":"integer","description":"Funnel"}}}}}}}},"/api/v2/funnel_steps/{id}/actions/split_test":{"post":{"summary":"Split test this step","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnel_steps/{id}/actions/reset_style_guide":{"post":{"summary":"Reset to the funnel style guide","tags":["Funnel Steps"],"x-simplero-resource-type":"funnel_steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnels/{id}/stats":{"get":{"summary":"Read a funnel's stats","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"funnel_step_id":{"type":"integer"},"name":{"type":"string","nullable":true},"total_views":{"type":"integer","description":"All views of the step (of its landing page for a page step)."},"unique_views":{"type":"integer","description":"Unique views of the step (of its landing page for a page step)."},"opt_ins":{"type":"integer","description":"Contacts who subscribed on this step."},"sales":{"type":"integer","description":"Active purchases made on this step."},"revenue_cents":{"type":"integer","description":"Received and incoming revenue of all purchases made on this step, in cents."},"currency":{"type":"string","description":"The account's currency."}},"required":["funnel_step_id","total_views","unique_views","opt_ins","sales","revenue_cents","currency"]}}},"required":["steps"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"The funnel stats table from the admin: per step, in funnel order, the page views, opt-ins, sales and revenue\nsince the funnel started. A page step's views come from its landing page, any other step's from the step itself.\nRates and earnings per view are left out: divide.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/funnels":{"get":{"summary":"List funnels","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Funnel"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a funnel","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Funnel"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Funnel"}}}}}},"/api/v2/funnels/{id}":{"get":{"summary":"Get a funnel","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Funnel"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a funnel","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Funnel"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunnelOptional"}}}}}},"/api/v2/funnels/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnels/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/funnels/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/funnels/{id}/actions/star":{"post":{"summary":"Star","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnels/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnels/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/funnels/{id}/actions/delete":{"post":{"summary":"Delete Funnel","tags":["Funnels"],"x-simplero-resource-type":"funnels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this funnel's funnel steps first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/ideas":{"get":{"summary":"List ideas","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Idea"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"pipeline_stage_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","planned","started","closed","done","duplicate"]}},{"name":"assignee_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"pipeline_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, description, admin_notes)."},"description":"Search records (matches via title, description, admin_notes)."}]},"post":{"summary":"Create a idea","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Idea"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}}}}},"/api/v2/ideas/{id}":{"get":{"summary":"Get a idea","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Idea"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a idea","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Idea"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaOptional"}}}}}},"/api/v2/ideas/{id}/actions/move_to_stage":{"post":{"summary":"Move to pipeline stage","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"integer","description":"PipelineStage"}}}}}}}},"/api/v2/ideas/{id}/actions/move_to_pipeline":{"post":{"summary":"Move to pipeline","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"integer","description":"PipelineStage"}}}}}}}},"/api/v2/ideas/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/ideas/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/ideas/{id}/actions/assign_to_me":{"post":{"summary":"Assign to me","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/ideas/{id}/actions/reassign":{"post":{"summary":"Reassign","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/ideas/{id}/actions/delete":{"post":{"summary":"Delete Idea","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the idea, its attachments, notes, notifications and segment memberships.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/ideas/{id}/actions/send_to_linear":{"post":{"summary":"Send to Linear","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"new_stage_id":{"type":"string"},"linear_state_id":{"type":"string"},"admin_note":{"type":"string"},"public_comment":{"type":"string"}}}}}}}},"/api/v2/ideas/{id}/actions/merge":{"post":{"summary":"Merge into another idea","tags":["Ideas"],"x-simplero-resource-type":"ideas","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"target_idea_id":{"type":"integer","description":"Idea"},"target_idea_link":{"type":"string"}}}}}}}},"/api/v2/installments":{"get":{"summary":"List installments","tags":["Installments"],"x-simplero-resource-type":"installments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Installment"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"price_period_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a installment","tags":["Installments"],"x-simplero-resource-type":"installments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Installment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Installment"}}}}}},"/api/v2/installments/{id}":{"get":{"summary":"Get a installment","tags":["Installments"],"x-simplero-resource-type":"installments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Installment"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a installment","tags":["Installments"],"x-simplero-resource-type":"installments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Installment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallmentOptional"}}}}}},"/api/v2/labelings":{"get":{"summary":"List labeled objects","tags":["Labelings"],"x-simplero-resource-type":"labelings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Labeling"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"labeled_object_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"labeled_object_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]},"post":{"summary":"Create a labeled object","tags":["Labelings"],"x-simplero-resource-type":"labelings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Labeling"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Labeling"}}}}}},"/api/v2/labelings/{id}":{"get":{"summary":"Get a labeled object","tags":["Labelings"],"x-simplero-resource-type":"labelings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Labeling"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/labels":{"get":{"summary":"List labels","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Label"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a label","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Label"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label"}}}}}},"/api/v2/labels/{id}":{"get":{"summary":"Get a label","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Label"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a label","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Label"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelOptional"}}}}}},"/api/v2/labels/{id}/actions/star":{"post":{"summary":"Star","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/labels/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/labels/{id}/actions/merge":{"post":{"summary":"Merge into another label","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"target_label_id":{"type":"integer","description":"Label"}}}}}}}},"/api/v2/labels/{id}/actions/delete":{"post":{"summary":"Delete Label","tags":["Labels"],"x-simplero-resource-type":"labels","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves label assignments without deleting the labeled records.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages":{"post":{"summary":"Create a landing page","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LandingPage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create a blank landing page, or install a preset from GET /page_presets using the same template installer as admin. Preset-only options select a list or product CTA and optionally place the copy in a funnel. All references must belong to your account.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LandingPage"}}}}},"get":{"summary":"List landing pages","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LandingPage"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"page_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"cta_object_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"funnel","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"cta_object_list_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"cta_object_product_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"publish_status","in":"query","required":false,"schema":{"type":"string"}},{"name":"unpublished_changes","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, id)."},"description":"Search records (matches via name, id)."}]}},"/api/v2/landing_pages/{id}/stats":{"get":{"summary":"Read a landing page's view stats","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time","description":"Exclusive."},"period":{"type":"string","enum":["hour","day","week","month"]},"totals":{"type":"object","properties":{"total_views":{"type":"integer"},"unique_views":{"type":"integer","description":"Distinct IP addresses over the whole range."}},"required":["total_views","unique_views"]},"series":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","description":"Start of the bucket: a date (`2026-10-01`), or a UTC timestamp for `period=hour`. Weeks start on the account's first day of the week."},"total_views":{"type":"integer"},"unique_views":{"type":"integer","description":"Distinct IP addresses in the bucket."}},"required":["start","total_views","unique_views"]},"description":"Every bucket in the range, oldest first, including empty ones."}},"required":["from","to","period","totals","series"]}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"The numbers behind the stats chart in the admin, from the same page views. All times are UTC.\nEvery bucket in [from, to) is listed, with zeros for buckets without views.\nWithout from and to you get the last month (the last year for `period=month`) up to today. Unlike the admin chart, it doesn't run on to the end of the month.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","description":"Start of the range (inclusive): an ISO 8601 date or timestamp, UTC unless it has an offset. Defaults to one month before `to` (one year for `period=month`)."},"description":"Start of the range (inclusive): an ISO 8601 date or timestamp, UTC unless it has an offset. Defaults to one month before `to` (one year for `period=month`)."},{"name":"to","in":"query","required":false,"schema":{"type":"string","description":"End of the range (exclusive): an ISO 8601 date or timestamp. Defaults to the start of tomorrow, UTC."},"description":"End of the range (exclusive): an ISO 8601 date or timestamp. Defaults to the start of tomorrow, UTC."},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["hour","day","week","month"],"description":"Bucket size (default `day`). Longest range: hour 31 days, day 400 days, week 400 days, month 5 years."},"description":"Bucket size (default `day`). Longest range: hour 31 days, day 400 days, week 400 days, month 5 years."}]}},"/api/v2/landing_pages/imports":{"post":{"summary":"Import an HTML file or zip","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"state":{"type":"string","enum":["queued","processing","choosing","done","failed"],"description":"queued and processing: keep polling. choosing: call choose. done or failed: finished."},"step":{"type":"string","nullable":true,"description":"What the import is doing now: reading, extracting, uploading or publishing."},"message":{"type":"string","description":"A readable status line."},"percent":{"type":"integer","nullable":true},"completed":{"type":"integer","description":"Images and fonts uploaded so far."},"total":{"type":"integer","description":"Images and fonts to upload."},"error":{"type":"string","nullable":true},"filename":{"type":"string"},"mode":{"type":"string","enum":["page","site","site_pages"],"nullable":true},"pages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"description":"The HTML pages in the upload."},"paths":{"type":"array","items":{"type":"string"},"description":"In site_pages mode, the pages chosen to add."},"warnings":{"type":"array","items":{"type":"string"},"description":"Local files a single HTML file links to but the upload does not contain. They will not load; upload a .zip with them instead."},"landing_page_id":{"type":"integer","nullable":true,"description":"The new landing page, in page mode."},"site_id":{"type":"integer","nullable":true,"description":"The new site (site mode, one site page per HTML file), or the site the pages were added to (site_pages mode)."}},"required":["id","state","message","completed","total","filename"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Upload an HTML file, or a .zip with an index.html (or one HTML file) plus its CSS, scripts, images and fonts, as multipart form data.\nIt becomes a Builder 2.0 landing page made of HTML sections. The import runs in the background: poll GET /landing_pages/imports/{import_id}.\n\nA .zip with several HTML pages needs a mode. `page` imports one page (`path`, default index.html). `site` creates a new site with one\npublished site page per HTML file (index.html is the home page, about.html is at /about), links between them pointing at the new\npaths, and the site's own header and footer hidden.\nWithout a mode, the import stops in the `choosing` state with the list of pages; then call POST /landing_pages/imports/{import_id}/choose.\n","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The .html, .htm or .zip file (multipart)."},"mode":{"type":"string","enum":["page","site","site_pages"],"description":"page or site: needed only for a .zip with several HTML pages. site_pages: add the pages to the existing site in site_id."},"path":{"type":"string","description":"In page mode, the HTML file inside the .zip to import, e.g. \"about.html\"."},"site_id":{"type":"integer","description":"In site_pages mode, the site to add the pages to."},"paths":{"type":"array","items":{"type":"string"},"description":"In site_pages mode, the HTML files to add. Default: a single page is added; for several, the import waits in `choosing`."},"name":{"type":"string","description":"Name of the new page or site. Default: the page title."},"funnel_id":{"type":"integer","description":"Add the page as a step in this funnel (page mode only)."},"after_id":{"type":"integer","description":"Insert after this funnel step; requires funnel_id."},"connector_id":{"type":"integer","description":"Insert into this funnel connector; requires funnel_id."},"slug":{"type":"string","description":"URL slug of the new funnel step; requires funnel_id."}},"required":["file"]}}}}}},"/api/v2/landing_pages/imports/{import_id}":{"get":{"summary":"Read an HTML import","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"state":{"type":"string","enum":["queued","processing","choosing","done","failed"],"description":"queued and processing: keep polling. choosing: call choose. done or failed: finished."},"step":{"type":"string","nullable":true,"description":"What the import is doing now: reading, extracting, uploading or publishing."},"message":{"type":"string","description":"A readable status line."},"percent":{"type":"integer","nullable":true},"completed":{"type":"integer","description":"Images and fonts uploaded so far."},"total":{"type":"integer","description":"Images and fonts to upload."},"error":{"type":"string","nullable":true},"filename":{"type":"string"},"mode":{"type":"string","enum":["page","site","site_pages"],"nullable":true},"pages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"description":"The HTML pages in the upload."},"paths":{"type":"array","items":{"type":"string"},"description":"In site_pages mode, the pages chosen to add."},"warnings":{"type":"array","items":{"type":"string"},"description":"Local files a single HTML file links to but the upload does not contain. They will not load; upload a .zip with them instead."},"landing_page_id":{"type":"integer","nullable":true,"description":"The new landing page, in page mode."},"site_id":{"type":"integer","nullable":true,"description":"The new site (site mode, one site page per HTML file), or the site the pages were added to (site_pages mode)."}},"required":["id","state","message","completed","total","filename"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"The state of an import started with POST /landing_pages/imports.","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/landing_pages/imports/{import_id}/choose":{"post":{"summary":"Choose how to import a multi-page zip","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"state":{"type":"string","enum":["queued","processing","choosing","done","failed"],"description":"queued and processing: keep polling. choosing: call choose. done or failed: finished."},"step":{"type":"string","nullable":true,"description":"What the import is doing now: reading, extracting, uploading or publishing."},"message":{"type":"string","description":"A readable status line."},"percent":{"type":"integer","nullable":true},"completed":{"type":"integer","description":"Images and fonts uploaded so far."},"total":{"type":"integer","description":"Images and fonts to upload."},"error":{"type":"string","nullable":true},"filename":{"type":"string"},"mode":{"type":"string","enum":["page","site","site_pages"],"nullable":true},"pages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"title":{"type":"string"}},"required":["path","title"]},"description":"The HTML pages in the upload."},"paths":{"type":"array","items":{"type":"string"},"description":"In site_pages mode, the pages chosen to add."},"warnings":{"type":"array","items":{"type":"string"},"description":"Local files a single HTML file links to but the upload does not contain. They will not load; upload a .zip with them instead."},"landing_page_id":{"type":"integer","nullable":true,"description":"The new landing page, in page mode."},"site_id":{"type":"integer","nullable":true,"description":"The new site (site mode, one site page per HTML file), or the site the pages were added to (site_pages mode)."}},"required":["id","state","message","completed","total","filename"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"For an import in the `choosing` state: `mode: \"site\"` creates a site from every page, `mode: \"page\"` with `path` imports that one page, and an import into a site (`site_pages`) takes `paths`, the pages to add.","parameters":[{"name":"import_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["page","site","site_pages"]},"path":{"type":"string","description":"The page to import, from `pages`; required in page mode."},"paths":{"type":"array","items":{"type":"string"},"description":"The pages to add, from `pages`; required in site_pages mode."}},"required":["mode"]}}}}}},"/api/v2/landing_pages/{id}":{"get":{"summary":"Get a landing page","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LandingPage"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a landing page","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LandingPage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LandingPageOptional"}}}}}},"/api/v2/landing_pages/{id}/builder/content/node_types":{"get":{"summary":"List available builder node types","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"category":{"type":"string","nullable":true,"description":"Category (e.g. General, Media, Layout); null for structural containers like section/row/column"}},"required":["type","name"]}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns node types that can be added to this builder doc. If parent_node_id is given, filters to types valid as children of that node.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"parent_node_id","in":"query","required":false,"schema":{"type":"string","description":"Limit to types valid as children of this node."},"description":"Limit to types valid as children of this node."}]}},"/api/v2/landing_pages/{id}/builder/content/node_types/detail":{"get":{"summary":"Get builder node type schema","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"settings":{"type":"array","items":{"type":"string"},"description":"Ids of settings available on this node type. Args schemas are not included here — use the node_types/settings_detail endpoint to fetch them."}},"required":["type","name","settings"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the list of settings available on a single node type. Type is passed as a query param because it may contain slashes. To get the full args schema (defaults, types) for a specific setting, call the node_types/settings_detail endpoint with the setting ids you care about.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"}]}},"/api/v2/landing_pages/{id}/builder/content/node_types/settings_detail":{"get":{"summary":"Get builder node type settings detail","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{"type":"object","properties":{"args":{"type":"object","additionalProperties":{"type":"object","properties":{"default":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Default value for this arg"},"type":{"type":"string","nullable":true,"description":"Ruby type for the arg, if known (e.g. String, Integer)"},"acceptable_values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Arg value — arbitrary JSON scalar, object, or array. Shape depends on the specific setting and arg."},"nullable":true,"description":"Accepted values for enum-like args. Omitted when the arg does not restrict to a specific set."},"description":{"type":"string","nullable":true,"description":"Natural-language description of the arg. When the arg is only relevant under certain conditions, that is prepended as a sentence (e.g. \"Only when by_tag is true.\")."}}},"description":"Arg name → { default, type }. Uses these defaults when omitting args under a breakpoint."}},"required":["args"]},"description":"Setting id → { args }."}},"required":["data"]}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full args schema (defaults, types) for one or more settings of a given node type. Scoped by the node type. Returns a hash keyed by setting id. Note that the args listed here sit one level BELOW a breakpoint when you write them: a value is set as settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e], e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Use \"base\" unless you want a per-breakpoint override.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},{"name":"setting_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."}]}},"/api/v2/landing_pages/{id}/builder/content/nodes":{"get":{"summary":"Get the builder doc node tree","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of the tree; recursively contains children."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full working-version node tree for this record.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"post":{"summary":"Create a builder doc node","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The created node, including its generated id."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds a new node to the tree under the given parent. Pass publish_changes: true to publish the working version immediately. Note: creating an `html_section` node here is allowed but you MUST NOT pass any `settings` — to set its HTML content, create it first and then use the html_section update endpoint (POST builder/content/html_section). To insert a Saved or Global block, pass `block_id` (from GET /api/v2/blocks) instead of `type`/`settings`. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type to create (e.g. section, elements/headline). Required unless block_id is set."},"parent_node_id":{"type":"string","description":"Id of the parent node"},"after_node_id":{"type":"string","nullable":true,"description":"If set, insert after this sibling; otherwise appended"},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to leave unnamed."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Initial setting values, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Breakpoints are base, tab, mob; use \"base\" unless you want a per-breakpoint override. All settings/breakpoints/args are optional. Ignored when block_id is set."},"block_id":{"type":"integer","description":"Id of a Saved or Global block (GET /api/v2/blocks) to insert under the parent. Global blocks stay live-linked; saved blocks copy their tree once."},"publish_changes":{"type":"boolean","description":"Publish the working version after creation"}},"required":["parent_node_id"]}}}}}},"/api/v2/landing_pages/{id}/builder/content/nodes/{node_id}":{"get":{"summary":"Get a builder doc node","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The node."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns a single node by id from the working version.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a builder doc node","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The updated node."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Partial update — only the keys you pass are merged into the node. Settings are deep-merged. Pass publish_changes: true to publish the working version immediately. Note: `html_section` nodes cannot be updated via this endpoint — use the html_section update endpoint (POST builder/content/html_section) instead. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. Deep-merged into the node — only keys you pass are touched."},"type":{"type":"string","description":"Turn a text element into another text type, e.g. elements/paragraph into elements/headline (the editor's \"Turn into\"). Only the types the node can be turned into are accepted; its content and heading tag are converted. Settings passed in the same call are validated against the new type and applied after the conversion."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value."},"meta":{"type":"object","description":"Meta values to merge into the node. Free-form bag of keys/values."},"publish_changes":{"type":"boolean","description":"Publish the working version after update"},"revision":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."}}}}}}},"delete":{"summary":"Delete a builder doc node","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes a node from the tree. Pass publish_changes: true to publish the working version immediately.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"publish_changes","in":"query","required":false,"schema":{"type":"boolean","description":"Publish the working version after deletion"},"description":"Publish the working version after deletion"},{"name":"revision","in":"query","required":false,"schema":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},"description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/builder/content/nodes/{node_id}/unlink":{"post":{"summary":"Unlink a global block instance","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The unlinked node with local settings and children."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Detaches a live-linked global block instance into a normal local section (copies current block content into the page). Mirrors the builder Unlink control. Only valid for global block instances.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"publish_changes":{"type":"boolean","description":"Publish the working version after unlinking"}}}}}}}},"/api/v2/landing_pages/{id}/builder/content/html_section/embed":{"post":{"summary":"Generate embed markup for a node type","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"embed_html":{"type":"string","description":"\u003cbuilder-node\u003e markup that you can use in an html section's html"}},"required":["embed_html"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Returns a \u003cbuilder-node\u003e custom element markup string that you can paste into the html of an html_section to embed a structured builder node (e.g. an order form, input field, button, signup form, etc.) inside free-form HTML.\n\nHow to use:\n  1. Use the node_types endpoints for this builder role to find the `type` of the node you want to embed and its available settings.\n  2. POST here with that `type` and any `settings` you want baked in. The response contains `embed_html` — a self-contained \u003cbuilder-node ...\u003e\u003c/builder-node\u003e snippet.\n  3. Paste that `embed_html` string verbatim into the `html` you send to the html_section update endpoint (POST builder/content/html_section). At runtime it will be replaced with the rendered node.\n\nTypical flow: build the bulk of your page as HTML via the html_section update endpoint, and sprinkle in these \u003cbuilder-node\u003e embeds wherever you need a dynamic Simplero element (order form, opt-in form, buy button, etc.) that you can't express as plain HTML.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. All settings/breakpoints/args are optional."}},"required":["type"]}}}}}},"/api/v2/landing_pages/{id}/builder/content/html_section":{"post":{"summary":"Create or update HTML section content","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"node_id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["node_id","html","settings","revision"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create or update the HTML content and/or the non-content settings of an html_section node.\n\n`node_id` is required. Pass either:\n  * The id of an existing `html_section` node — updates its HTML, its `settings`, or both. Pass `html`, `settings`, or both, plus the `revision` from your last read.\n  * The literal string `\"create_new\"` — creates a new `html_section` node under the root with the given `html` (required) and optional `settings`.\n\nSettings (conditional visibility and animation):\n  `settings` sets the section's non-content settings: `visibility_customer` (show/hide by tag, list, product, browser language or countdown timer), `visibility_period` (visible between two Unix timestamps), `toggle_visibility_after_page_load`, `animation`, and `visibility`. Discover their args with GET builder/content/node_types/settings_detail?type=html_section\u0026setting_ids=visibility_customer,visibility_period,toggle_visibility_after_page_load,animation. Settings are deep-merged: only the args you pass change. Use JSON booleans, e.g. `{ \"visibility_period\": { \"base\": { \"enabled\": true, \"visible_from\": 1767225600, \"visible_to\": 1767830400 } } }`.\n  To change settings only, omit `html`: the section's HTML and embedded nodes are left exactly as they are, so there is no need to resend the full HTML. The section's HTML itself is never a setting — pass it as `html`.\n\nPass `publish_changes: true` to publish the working version immediately after the change.\n\nEmbedding structured builder nodes inside the HTML:\n  You can embed dynamic Simplero elements (order forms, opt-in forms, buttons, input fields, etc.) inside the HTML. See the description of the html_section embed endpoint (POST builder/content/html_section/embed) for how this works.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","description":"Required when creating, and when changing the HTML of an existing section; omit it for a settings-only update. The HTML content to set. CSS rules MUST be wrapped in \u003cstyle\u003e tags — the system extracts them into a separate style field automatically. Never write bare CSS (e.g. `:root { }`, `.class { }`) as plain text in the body; it will be treated as visible text content, not styles. Inline style=\"\" attributes on elements are fine."},"node_id":{"type":"string","description":"The id of the html_section node to update, or \"create_new\" to create a new one."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value (or leave unnamed when creating a new section)."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Non-content settings to deep-merge into the section, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"animation\": { \"base\": { \"style\": \"fade\" } } }. Any html_section setting except `html`."},"publish_changes":{"type":"boolean","description":"Publish the working version after the change."},"revision":{"type":"string","description":"Required when updating an existing section: the revision from your last read of it. The update fails with 409 if the section changed since, so a stale write never overwrites a newer edit. Ignored with node_id \"create_new\"."}},"required":["node_id"]}}}}},"get":{"summary":"Get HTML section content","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["id","html","settings","revision"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the HTML content and the non-content settings (conditional visibility, animation) of the html_section node with the given id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"query","required":true,"schema":{"type":"string","description":"The id of the html_section node to fetch."},"description":"The id of the html_section node to fetch."}]}},"/api/v2/landing_pages/{id}/builder/content/publish":{"post":{"summary":"Publish the working version","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Publishes the current working version of this record's builder doc, making staged changes live. Fails when the working draft is disconnected from the published version — POST builder/content/discard_unpublished_changes first.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/builder/content/versions":{"get":{"summary":"List builder doc version history","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Active working lineage, newest first."},"refused_edit_versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Side versions (change_type `refused_edits`) keeping edits the server refused because the page changed under them, newest first. Off the working lineage; restore one to bring its content back."}},"required":["published_version_on_working_lineage","versions"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the active working lineage of this record's builder doc, newest first, plus publish/working status.\n\nCompacted and orphaned versions are omitted. When `published_version_on_working_lineage` is false, the working\ndraft is disconnected from published — POST discard_unpublished_changes to reconnect before publishing.\nThe published version is still identified by `published_version_id` even when it is not in `versions`.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/landing_pages/{id}/builder/content/versions/{version_id}":{"get":{"summary":"Get a builder doc version","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."},"content":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of this version's tree; recursively contains children."},"settings":{"type":"object","description":"Version-level settings snapshot."},"style_guide_id":{"type":"integer","nullable":true},"layout_id":{"type":"integer","nullable":true}},"required":["id","created_at","published","working"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns one version, including its node tree. The version must belong to this record's builder doc; compacted/orphaned versions are still fetchable by id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/landing_pages/{id}/builder/content/versions/{version_id}/restore":{"post":{"summary":"Restore a builder doc version","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"restored_from_version_id":{"type":"integer"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The newly created working draft."}},"required":["published_version_on_working_lineage","success","restored_from_version_id"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates a new working draft whose content matches the given version. Does not publish.\n\nThe restored snapshot is always a new version on top of the current working version (same as Restore\nthis version in the editor). To throw away a disconnected draft and go back to published, use\ndiscard_unpublished_changes instead.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/builder/content/undo":{"post":{"summary":"Undo a builder doc change","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to undo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/builder/content/redo":{"post":{"summary":"Redo a builder doc change","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to redo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/builder/content/discard_unpublished_changes":{"post":{"summary":"Discard unpublished builder doc changes","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Throws away the working draft and reconnects working to the currently published version.\nThis is the operation that repairs a disconnected working lineage so publish can succeed.\n\nNo-op-success when working is already the published version. Errors when the doc has never been published.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/builder/content/accessibility":{"get":{"summary":"Run WCAG 2.1 AA accessibility check","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"pass":{"type":"boolean"},"error_count":{"type":"integer"},"warning_count":{"type":"integer"},"checked_at":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string"},"message":{"type":"string"},"node_id":{"type":"string"},"node_type":{"type":"string"},"suggestion":{"type":"string"},"meta":{"type":"object","description":"Extra details (colors, ratio, suggested_fg, …). Free-form."}},"required":["code","severity","message"]}}},"required":["pass","error_count","warning_count","checked_at","issues"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Audits the working version of this record's builder doc (and its style guide) for WCAG 2.1 AA issues:\ncolor contrast (text vs background on palette roles and color styles), missing image alt text,\nheading hierarchy, and keyboard/focus risks in HTML sections.\n\nAlways run this at the end of a page build, before publish. For each contrast failure, `suggestion`\nand `meta.suggested_fg` include a replacement color that meets the AA ratio — apply those fixes\n(update style guide colors / node settings / HTML) and re-run until `pass` is true or only\nwarnings remain that the user has accepted.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/landing_pages/{id}/builder/content/preview_url":{"get":{"summary":"Get a short-lived preview link","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Open within expires_at."},"expires_at":{"type":"string","format":"date-time"}},"required":["url","expires_at"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"A link to this page as it is now, its working (unpublished) version, that opens without a login for 10 minutes. Open it in your own headless browser to take screenshots and check your design; ask for a new link when it expires. Visits to it count no page views. For landing pages, funnel pages and site pages.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/landing_pages/{id}/builder/content/design_guide":{"get":{"summary":"Get the design guide","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"version":{"type":"string"},"text":{"type":"string","description":"Markdown."}},"required":["version","text"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"What the main design settings look like (section and column color styles, padding, gaps, typography and button styles…), and what to avoid, written from screenshots in several style guides. Read it before you style a page. `version` changes whenever the notes change: keep it, and read the guide again when it differs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/landing_pages/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/landing_pages/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/landing_pages/{id}/actions/star":{"post":{"summary":"Star","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/move_to_funnel":{"post":{"summary":"Move to funnel","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"funnel_id":{"type":"integer","description":"Funnel"}}}}}}}},"/api/v2/landing_pages/{id}/actions/move_to_site":{"post":{"summary":"Move to Site Page","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/landing_pages/{id}/actions/move_to_doc":{"post":{"summary":"Move to Doc","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the content into a new Doc (public when the landing page is active) and deletes the landing page. Refused when the content has forms, order forms or opt-in buttons, which do not work in a Doc.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/undo_move":{"post":{"summary":"Undo move to landing page","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/convert_to_builder_v2":{"post":{"summary":"Convert to Page Builder 2.0","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/save_as_template":{"post":{"summary":"Save as template","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/reset_stats":{"post":{"summary":"Reset stats","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/refresh_page_speed_score":{"post":{"summary":"Refresh page speed score","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/landing_pages/{id}/actions/delete":{"post":{"summary":"Delete Landing page","tags":["Landing Pages"],"x-simplero-resource-type":"landing_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/library_mailings":{"get":{"summary":"List library emails","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LibraryMailing"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"subject","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"email_template_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"delivered_to_count","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"usage_status","in":"query","required":false,"schema":{"type":"string","enum":["unused","single_use","shared"]}},{"name":"usage_count","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"automation_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"recipients_segment_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"object_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, subject, body)."},"description":"Search records (matches via name, subject, body)."}]},"post":{"summary":"Create a library email","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LibraryMailing"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryMailing"}}}}}},"/api/v2/library_mailings/{id}":{"get":{"summary":"Get a library email","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LibraryMailing"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a library email","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LibraryMailing"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryMailingOptional"}}}}}},"/api/v2/library_mailings/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/library_mailings/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/library_mailings/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/library_mailings/{id}/actions/send_to":{"post":{"summary":"Send to","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"Customer"}}}}}}}},"/api/v2/library_mailings/{id}/actions/add_to_newsletter":{"post":{"summary":"Add to newsletter queue","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"broadcast_schedule_id":{"type":"integer","description":"BroadcastSchedule"}}}}}}}},"/api/v2/library_mailings/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/library_mailings/{id}/actions/star":{"post":{"summary":"Star","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/library_mailings/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/library_mailings/{id}/actions/delete":{"post":{"summary":"Delete Library email","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/library_mailings/{id}/actions/use_as_broadcast":{"post":{"summary":"Use as broadcast","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new draft broadcast"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/library_mailings/{id}/actions/save_to_library":{"post":{"summary":"Save to email library","tags":["Library Mailings"],"x-simplero-resource-type":"library_mailings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists":{"get":{"summary":"List lists","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/List"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, internal_name)."},"description":"Search records (matches via name, internal_name)."}]},"post":{"summary":"Create a list","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/List"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/List"}}}}}},"/api/v2/lists/{id}":{"get":{"summary":"Get a list","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/List"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a list","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/List"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOptional"}}}}}},"/api/v2/lists/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists/{id}/actions/create_automation_from_template":{"post":{"summary":"Create automation from template","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new automation"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates an automation that starts on this record, built from one of its automation_templates. Answers: freebie_offer takes asset_ids (comma-separated files, added to the list Content; not needed when the list already has Content), product_id to sell, and style 'story' (Soap Opera, 5 emails) or 'plain' (Reviver, 6 emails); freebie_offer and email_sequence can instead end on scheduling_link_id (a call: the automation stops when they book) or survey_id (an application: it stops when they respond); product_id wins over both. event_reminders_replay takes replay_link (an https:// link or a simplero:// link to one of your pages; else the event page shows the replay) and product_id; email_sequence takes count (1-100) and days (at least count; default twice count), the first email now and the last on the last day, and product_id: the emails stop when they buy it. event_reminders and event_reminders_replay take reminders, a comma-separated list of 1_week, 3_days, 1_day, 1_hour, 10_minutes (default '1_day,1_hour,10_minutes'). Freebie and event templates write their emails with AI in the background; the automation is frozen (on_hold) until they are written. They also take locale, the language the emails are written in (default: the account customer_locale); about, what it's about, which AI follows first; and writer: 'ai' (default) or 'me' for just the structure, with each email saying what to write, left frozen.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string"},"name":{"type":"string"},"asset_ids":{"type":"string"},"asset_id":{"type":"integer","description":"Asset"},"product_id":{"type":"integer","description":"Product"},"scheduling_link_id":{"type":"integer","description":"SchedulingLink"},"survey_id":{"type":"integer","description":"Survey"},"style":{"type":"string"},"locale":{"type":"string"},"replay_link":{"type":"string"},"reminders":{"type":"string"},"count":{"type":"string"},"days":{"type":"string"},"writer":{"type":"string"},"about":{"type":"string"}}}}}}}},"/api/v2/lists/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/lists/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/lists/{id}/actions/star":{"post":{"summary":"Star","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists/{id}/actions/make_main":{"post":{"summary":"Make main list","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists/{id}/actions/require_double_opt_in":{"post":{"summary":"Turn on double opt-in","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists/{id}/actions/skip_double_opt_in":{"post":{"summary":"Turn off double opt-in","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/lists/{id}/actions/delete":{"post":{"summary":"Delete List","tags":["Lists"],"x-simplero-resource-type":"lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/mailing_deliveries":{"get":{"summary":"List email deliveries","tags":["Mailing Deliveries"],"x-simplero-resource-type":"mailing_deliveries","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MailingDelivery"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"sent_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"mailing_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"activity","in":"query","required":false,"schema":{"type":"string","enum":["sent","delivered","dropped","opened","clicked","bounced","spamreported","unsubscribed"]}},{"name":"bounce_message","in":"query","required":false,"schema":{"type":"string"}},{"name":"replied","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"affiliate","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"clicked_link_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"opened","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"mpp_opened","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"clicked","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"likely_bot_click","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"purchase_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"entrant_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via email)."},"description":"Search records (matches via email)."}]}},"/api/v2/mailing_deliveries/{id}":{"get":{"summary":"Get a email delivery","tags":["Mailing Deliveries"],"x-simplero-resource-type":"mailing_deliveries","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MailingDelivery"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/membership_level_groups":{"get":{"summary":"List membership level groups","tags":["Membership Level Groups"],"x-simplero-resource-type":"membership_level_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MembershipLevelGroup"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, products - internal_name)."},"description":"Search records (matches via name, products - internal_name)."}]},"post":{"summary":"Create a membership level group","tags":["Membership Level Groups"],"x-simplero-resource-type":"membership_level_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MembershipLevelGroup"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipLevelGroup"}}}}}},"/api/v2/membership_level_groups/{id}":{"get":{"summary":"Get a membership level group","tags":["Membership Level Groups"],"x-simplero-resource-type":"membership_level_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MembershipLevelGroup"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a membership level group","tags":["Membership Level Groups"],"x-simplero-resource-type":"membership_level_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MembershipLevelGroup"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipLevelGroupOptional"}}}}}},"/api/v2/nav_list_links":{"get":{"summary":"List links","tags":["Nav List Links"],"x-simplero-resource-type":"nav_list_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NavListLink"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"nav_list_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a link","tags":["Nav List Links"],"x-simplero-resource-type":"nav_list_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NavListLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NavListLink"}}}}}},"/api/v2/nav_list_links/{id}":{"get":{"summary":"Get a link","tags":["Nav List Links"],"x-simplero-resource-type":"nav_list_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NavListLink"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a link","tags":["Nav List Links"],"x-simplero-resource-type":"nav_list_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NavListLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NavListLinkOptional"}}}}}},"/api/v2/nav_list_links/{id}/actions/move":{"post":{"summary":"Move","tags":["Nav List Links"],"x-simplero-resource-type":"nav_list_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"parent_id":{"type":"integer","description":"NavListLink"},"after_link_id":{"type":"integer","description":"NavListLink"},"before_link_id":{"type":"integer","description":"NavListLink"}}}}}}}},"/api/v2/nav_lists":{"get":{"summary":"List navigation lists","tags":["Nav Lists"],"x-simplero-resource-type":"nav_lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NavList"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/nav_lists/{id}":{"get":{"summary":"Get a navigation list","tags":["Nav Lists"],"x-simplero-resource-type":"nav_lists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NavList"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/not_found_requests":{"get":{"summary":"List not found requests","tags":["Not Found Requests"],"x-simplero-resource-type":"not_found_requests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NotFoundRequest"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via path)."},"description":"Search records (matches via path)."}]}},"/api/v2/not_found_requests/{id}":{"get":{"summary":"Get a not found request","tags":["Not Found Requests"],"x-simplero-resource-type":"not_found_requests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NotFoundRequest"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/not_found_requests/{id}/actions/create_redirect":{"post":{"summary":"Create redirect","tags":["Not Found Requests"],"x-simplero-resource-type":"not_found_requests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"redirect_to":{"type":"string"},"redirect_to_raw":{"type":"string"},"permanent":{"type":"string"}}}}}}}},"/api/v2/notices":{"get":{"summary":"List notices","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Notice"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, internal_name, body)."},"description":"Search records (matches via title, internal_name, body)."}]},"post":{"summary":"Create a notice","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Notice"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notice"}}}}}},"/api/v2/notices/{id}":{"get":{"summary":"Get a notice","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Notice"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a notice","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Notice"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeOptional"}}}}}},"/api/v2/notices/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/notices/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/notices/{id}/actions/send_to_segment":{"post":{"summary":"Send to segment","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"segment_id":{"type":"integer","description":"Segment"},"start_at":{"type":"string","format":"date-time"},"end_at":{"type":"string","format":"date-time"},"timestamps":{"type":"boolean"}}}}}}}},"/api/v2/notices/{id}/actions/delete":{"post":{"summary":"Delete Notice","tags":["Notices"],"x-simplero-resource-type":"notices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves notice deliveries and triggers.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/nps_response_templates":{"get":{"summary":"List nps response templates","tags":["Nps Response Templates"],"x-simplero-resource-type":"nps_response_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NpsResponseTemplate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"nps_survey_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/nps_response_templates/{id}":{"get":{"summary":"Get a nps response template","tags":["Nps Response Templates"],"x-simplero-resource-type":"nps_response_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NpsResponseTemplate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a nps response template","tags":["Nps Response Templates"],"x-simplero-resource-type":"nps_response_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NpsResponseTemplate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NpsResponseTemplateOptional"}}}}}},"/api/v2/nps_scores":{"get":{"summary":"List net promoter scores","tags":["Nps Scores"],"x-simplero-resource-type":"nps_scores","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NpsScore"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"submitted_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"submitting_account_state","in":"query","required":false,"schema":{"type":"string","enum":["trial","activated","failed"]}},{"name":"with_feedback","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"score","in":"query","required":false,"schema":{"type":"string","enum":["promoter","neutral","detractor","not_promoter"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via feedback, customer - first_names, last_name, email, user - username, email)."},"description":"Search records (matches via feedback, customer - first_names, last_name, email, user - username, email)."}]}},"/api/v2/nps_scores/{id}":{"get":{"summary":"Get a net promoter score","tags":["Nps Scores"],"x-simplero-resource-type":"nps_scores","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NpsScore"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/nps_surveys":{"get":{"summary":"List nps surveys","tags":["Nps Surveys"],"x-simplero-resource-type":"nps_surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NpsSurvey"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, score_question, feedback_question, post_survey_message, low_score_hint, high_score_hint)."},"description":"Search records (matches via name, score_question, feedback_question, post_survey_message, low_score_hint, high_score_hint)."}]}},"/api/v2/nps_surveys/{id}":{"get":{"summary":"Get a nps survey","tags":["Nps Surveys"],"x-simplero-resource-type":"nps_surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NpsSurvey"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a nps survey","tags":["Nps Surveys"],"x-simplero-resource-type":"nps_surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/NpsSurvey"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NpsSurveyOptional"}}}}}},"/api/v2/offers":{"get":{"summary":"List upsell offers","tags":["Offers"],"x-simplero-resource-type":"offers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Offer"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, headline, body_text, price - name, product - internal_name)."},"description":"Search records (matches via name, headline, body_text, price - name, product - internal_name)."}]},"post":{"summary":"Create a upsell offer","tags":["Offers"],"x-simplero-resource-type":"offers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Offer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}}}},"/api/v2/offers/{id}":{"get":{"summary":"Get a upsell offer","tags":["Offers"],"x-simplero-resource-type":"offers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Offer"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a upsell offer","tags":["Offers"],"x-simplero-resource-type":"offers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Offer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferOptional"}}}}}},"/api/v2/offers/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Offers"],"x-simplero-resource-type":"offers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/offers/{id}/actions/delete":{"post":{"summary":"Delete Upsell offer","tags":["Offers"],"x-simplero-resource-type":"offers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/opt_ins":{"get":{"summary":"List opt-ins","tags":["Opt Ins"],"x-simplero-resource-type":"opt_ins","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OptIn"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"email","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"ip_address","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"referrer","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"device_type","in":"query","required":false,"schema":{"type":"string","enum":[1,2]}},{"name":"funnel_step_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"utm_campaign","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via first_names, last_name, email, referrer)."},"description":"Search records (matches via first_names, last_name, email, referrer)."}]}},"/api/v2/opt_ins/{id}":{"get":{"summary":"Get a opt-in","tags":["Opt Ins"],"x-simplero-resource-type":"opt_ins","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/OptIn"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/order_bumps":{"get":{"summary":"List order bumps","tags":["Order Bumps"],"x-simplero-resource-type":"order_bumps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderBump"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via label)."},"description":"Search records (matches via label)."}]},"post":{"summary":"Create a order bump","tags":["Order Bumps"],"x-simplero-resource-type":"order_bumps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/OrderBump"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderBump"}}}}}},"/api/v2/order_bumps/{id}":{"get":{"summary":"Get a order bump","tags":["Order Bumps"],"x-simplero-resource-type":"order_bumps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/OrderBump"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a order bump","tags":["Order Bumps"],"x-simplero-resource-type":"order_bumps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/OrderBump"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderBumpOptional"}}}}}},"/api/v2/order_bumps/{id}/actions/copy":{"post":{"summary":"Copy","tags":["Order Bumps"],"x-simplero-resource-type":"order_bumps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"integer"}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"}}}}}}}},"/api/v2/outgoing_webhooks":{"get":{"summary":"List webhooks","tags":["Outgoing Webhooks"],"x-simplero-resource-type":"outgoing_webhooks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OutgoingWebhook"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, url)."},"description":"Search records (matches via name, url)."}]},"post":{"summary":"Create a webhook","tags":["Outgoing Webhooks"],"x-simplero-resource-type":"outgoing_webhooks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/OutgoingWebhook"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutgoingWebhook"}}}}}},"/api/v2/outgoing_webhooks/{id}":{"get":{"summary":"Get a webhook","tags":["Outgoing Webhooks"],"x-simplero-resource-type":"outgoing_webhooks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/OutgoingWebhook"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a webhook","tags":["Outgoing Webhooks"],"x-simplero-resource-type":"outgoing_webhooks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/OutgoingWebhook"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutgoingWebhookOptional"}}}}}},"/api/v2/outgoing_webhooks/{id}/actions/delete":{"post":{"summary":"Delete Webhook","tags":["Outgoing Webhooks"],"x-simplero-resource-type":"outgoing_webhooks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRefuses deletion while an automation or trigger uses the webhook.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/page_presets":{"get":{"summary":"List page presets","tags":["Page Presets"],"x-simplero-resource-type":"page_presets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"page_type":{"type":"string","description":"Builder used by this preset, such as builder_doc or themed_full."},"supported_destinations":{"type":"array","items":{"type":"string","enum":["page","landing_page"]}},"preview_image_url":{"type":"string","nullable":true},"source":{"type":"string","enum":["account","simplero"]}},"required":["id","name","page_type","supported_destinations","source"]}}}}}}},"401":{"description":"Unauthorized"}},"description":"Templates from your account and the Simplero template picker. Each preset can create either a site page or a landing page. Pass its id as preset_id on creation. Factory visibility follows your beta and legacy-builder settings; account templates require read access."}},"/api/v2/pages":{"post":{"summary":"Create a page","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Page"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create a blank page, or supply preset_id from GET /page_presets to install a template into the given site. Template content and assets are copied through the same installer as admin. Other page attributes are applied to the copy.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}}},"get":{"summary":"List pages","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Page"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"publish_status","in":"query","required":false,"schema":{"type":"string","enum":["published","draft","drip","scheduled"]}},{"name":"page_type","in":"query","required":false,"schema":{"type":"string","enum":["builder","classic"]}},{"name":"unpublished_changes","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"slug","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, title, slug, meta_title)."},"description":"Search records (matches via internal_name, title, slug, meta_title)."}]}},"/api/v2/pages/{id}/stats":{"get":{"summary":"Read a page's view stats","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time","description":"Exclusive."},"period":{"type":"string","enum":["hour","day","week","month"]},"totals":{"type":"object","properties":{"total_views":{"type":"integer"},"unique_views":{"type":"integer","description":"Distinct IP addresses over the whole range."}},"required":["total_views","unique_views"]},"series":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","description":"Start of the bucket: a date (`2026-10-01`), or a UTC timestamp for `period=hour`. Weeks start on the account's first day of the week."},"total_views":{"type":"integer"},"unique_views":{"type":"integer","description":"Distinct IP addresses in the bucket."}},"required":["start","total_views","unique_views"]},"description":"Every bucket in the range, oldest first, including empty ones."}},"required":["from","to","period","totals","series"]}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"The numbers behind the stats chart in the admin, from the same page views. All times are UTC.\nEvery bucket in [from, to) is listed, with zeros for buckets without views.\nWithout from and to you get the last month (the last year for `period=month`) up to today. Unlike the admin chart, it doesn't run on to the end of the month.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","description":"Start of the range (inclusive): an ISO 8601 date or timestamp, UTC unless it has an offset. Defaults to one month before `to` (one year for `period=month`)."},"description":"Start of the range (inclusive): an ISO 8601 date or timestamp, UTC unless it has an offset. Defaults to one month before `to` (one year for `period=month`)."},{"name":"to","in":"query","required":false,"schema":{"type":"string","description":"End of the range (exclusive): an ISO 8601 date or timestamp. Defaults to the start of tomorrow, UTC."},"description":"End of the range (exclusive): an ISO 8601 date or timestamp. Defaults to the start of tomorrow, UTC."},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["hour","day","week","month"],"description":"Bucket size (default `day`). Longest range: hour 31 days, day 400 days, week 400 days, month 5 years."},"description":"Bucket size (default `day`). Longest range: hour 31 days, day 400 days, week 400 days, month 5 years."}]}},"/api/v2/pages/{id}":{"get":{"summary":"Get a page","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Page"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a page","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Page"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOptional"}}}}}},"/api/v2/pages/{id}/builder/content/node_types":{"get":{"summary":"List available builder node types","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"category":{"type":"string","nullable":true,"description":"Category (e.g. General, Media, Layout); null for structural containers like section/row/column"}},"required":["type","name"]}}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns node types that can be added to this builder doc. If parent_node_id is given, filters to types valid as children of that node.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"parent_node_id","in":"query","required":false,"schema":{"type":"string","description":"Limit to types valid as children of this node."},"description":"Limit to types valid as children of this node."}]}},"/api/v2/pages/{id}/builder/content/node_types/detail":{"get":{"summary":"Get builder node type schema","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","description":"Human-readable name of this node type, e.g. \"Headline\", \"Section\""},"settings":{"type":"array","items":{"type":"string"},"description":"Ids of settings available on this node type. Args schemas are not included here — use the node_types/settings_detail endpoint to fetch them."}},"required":["type","name","settings"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the list of settings available on a single node type. Type is passed as a query param because it may contain slashes. To get the full args schema (defaults, types) for a specific setting, call the node_types/settings_detail endpoint with the setting ids you care about.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"}]}},"/api/v2/pages/{id}/builder/content/node_types/settings_detail":{"get":{"summary":"Get builder node type settings detail","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{"type":"object","properties":{"args":{"type":"object","additionalProperties":{"type":"object","properties":{"default":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Default value for this arg"},"type":{"type":"string","nullable":true,"description":"Ruby type for the arg, if known (e.g. String, Integer)"},"acceptable_values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Arg value — arbitrary JSON scalar, object, or array. Shape depends on the specific setting and arg."},"nullable":true,"description":"Accepted values for enum-like args. Omitted when the arg does not restrict to a specific set."},"description":{"type":"string","nullable":true,"description":"Natural-language description of the arg. When the arg is only relevant under certain conditions, that is prepended as a sentence (e.g. \"Only when by_tag is true.\")."}}},"description":"Arg name → { default, type }. Uses these defaults when omitting args under a breakpoint."}},"required":["args"]},"description":"Setting id → { args }."}},"required":["data"]}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full args schema (defaults, types) for one or more settings of a given node type. Scoped by the node type. Returns a hash keyed by setting id. Note that the args listed here sit one level BELOW a breakpoint when you write them: a value is set as settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e], e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Use \"base\" unless you want a per-breakpoint override.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},{"name":"setting_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."},"description":"Setting ids to describe. Pass one or more. Accepts either a repeated array param (setting_ids[]=a\u0026setting_ids[]=b) or a single comma-separated string (setting_ids=a,b)."}]}},"/api/v2/pages/{id}/builder/content/nodes":{"get":{"summary":"Get the builder doc node tree","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of the tree; recursively contains children."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the full working-version node tree for this record.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"post":{"summary":"Create a builder doc node","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The created node, including its generated id."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds a new node to the tree under the given parent. Pass publish_changes: true to publish the working version immediately. Note: creating an `html_section` node here is allowed but you MUST NOT pass any `settings` — to set its HTML content, create it first and then use the html_section update endpoint (POST builder/content/html_section). To insert a Saved or Global block, pass `block_id` (from GET /api/v2/blocks) instead of `type`/`settings`. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type to create (e.g. section, elements/headline). Required unless block_id is set."},"parent_node_id":{"type":"string","description":"Id of the parent node"},"after_node_id":{"type":"string","nullable":true,"description":"If set, insert after this sibling; otherwise appended"},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to leave unnamed."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Initial setting values, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"content\": { \"base\": { \"content\": \"\u003ch1\u003eHello\u003c/h1\u003e\" } } }. Breakpoints are base, tab, mob; use \"base\" unless you want a per-breakpoint override. All settings/breakpoints/args are optional. Ignored when block_id is set."},"block_id":{"type":"integer","description":"Id of a Saved or Global block (GET /api/v2/blocks) to insert under the parent. Global blocks stay live-linked; saved blocks copy their tree once."},"publish_changes":{"type":"boolean","description":"Publish the working version after creation"}},"required":["parent_node_id"]}}}}}},"/api/v2/pages/{id}/builder/content/nodes/{node_id}":{"get":{"summary":"Get a builder doc node","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The node."}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns a single node by id from the working version.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a builder doc node","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The updated node."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Partial update — only the keys you pass are merged into the node. Settings are deep-merged. Pass publish_changes: true to publish the working version immediately. Note: `html_section` nodes cannot be updated via this endpoint — use the html_section update endpoint (POST builder/content/html_section) instead. Headline, subheadline and preheadline content is one heading tag, e.g. `\u003ch2\u003eSound familiar?\u003c/h2\u003e`, never `\u003cp\u003e`: the level is set automatically. Read GET builder/content/design_guide before you style, and look at the result through GET builder/content/preview_url.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. Deep-merged into the node — only keys you pass are touched."},"type":{"type":"string","description":"Turn a text element into another text type, e.g. elements/paragraph into elements/headline (the editor's \"Turn into\"). Only the types the node can be turned into are accepted; its content and heading tag are converted. Settings passed in the same call are validated against the new type and applied after the conversion."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value."},"meta":{"type":"object","description":"Meta values to merge into the node. Free-form bag of keys/values."},"publish_changes":{"type":"boolean","description":"Publish the working version after update"},"revision":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."}}}}}}},"delete":{"summary":"Delete a builder doc node","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes a node from the tree. Pass publish_changes: true to publish the working version immediately.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"publish_changes","in":"query","required":false,"schema":{"type":"boolean","description":"Publish the working version after deletion"},"description":"Publish the working version after deletion"},{"name":"revision","in":"query","required":false,"schema":{"type":"string","description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},"description":"Revision of this node from your last read. When given, the request fails with 409 if the node changed since, so a stale write never overwrites a newer edit. Omit to skip the check."},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/builder/content/nodes/{node_id}/unlink":{"post":{"summary":"Unlink a global block instance","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/BuilderDocNode","description":"The unlinked node with local settings and children."}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Detaches a live-linked global block instance into a normal local section (copies current block content into the page). Mirrors the builder Unlink control. Only valid for global block instances.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"publish_changes":{"type":"boolean","description":"Publish the working version after unlinking"}}}}}}}},"/api/v2/pages/{id}/builder/content/html_section/embed":{"post":{"summary":"Generate embed markup for a node type","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"embed_html":{"type":"string","description":"\u003cbuilder-node\u003e markup that you can use in an html section's html"}},"required":["embed_html"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Returns a \u003cbuilder-node\u003e custom element markup string that you can paste into the html of an html_section to embed a structured builder node (e.g. an order form, input field, button, signup form, etc.) inside free-form HTML.\n\nHow to use:\n  1. Use the node_types endpoints for this builder role to find the `type` of the node you want to embed and its available settings.\n  2. POST here with that `type` and any `settings` you want baked in. The response contains `embed_html` — a self-contained \u003cbuilder-node ...\u003e\u003c/builder-node\u003e snippet.\n  3. Paste that `embed_html` string verbatim into the `html` you send to the html_section update endpoint (POST builder/content/html_section). At runtime it will be replaced with the rendered node.\n\nTypical flow: build the bulk of your page as HTML via the html_section update endpoint, and sprinkle in these \u003cbuilder-node\u003e embeds wherever you need a dynamic Simplero element (order form, opt-in form, buy button, etc.) that you can't express as plain HTML.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting values keyed by setting id. All settings/breakpoints/args are optional."}},"required":["type"]}}}}}},"/api/v2/pages/{id}/builder/content/html_section":{"post":{"summary":"Create or update HTML section content","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"node_id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["node_id","html","settings","revision"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Create or update the HTML content and/or the non-content settings of an html_section node.\n\n`node_id` is required. Pass either:\n  * The id of an existing `html_section` node — updates its HTML, its `settings`, or both. Pass `html`, `settings`, or both, plus the `revision` from your last read.\n  * The literal string `\"create_new\"` — creates a new `html_section` node under the root with the given `html` (required) and optional `settings`.\n\nSettings (conditional visibility and animation):\n  `settings` sets the section's non-content settings: `visibility_customer` (show/hide by tag, list, product, browser language or countdown timer), `visibility_period` (visible between two Unix timestamps), `toggle_visibility_after_page_load`, `animation`, and `visibility`. Discover their args with GET builder/content/node_types/settings_detail?type=html_section\u0026setting_ids=visibility_customer,visibility_period,toggle_visibility_after_page_load,animation. Settings are deep-merged: only the args you pass change. Use JSON booleans, e.g. `{ \"visibility_period\": { \"base\": { \"enabled\": true, \"visible_from\": 1767225600, \"visible_to\": 1767830400 } } }`.\n  To change settings only, omit `html`: the section's HTML and embedded nodes are left exactly as they are, so there is no need to resend the full HTML. The section's HTML itself is never a setting — pass it as `html`.\n\nPass `publish_changes: true` to publish the working version immediately after the change.\n\nEmbedding structured builder nodes inside the HTML:\n  You can embed dynamic Simplero elements (order forms, opt-in forms, buttons, input fields, etc.) inside the HTML. See the description of the html_section embed endpoint (POST builder/content/html_section/embed) for how this works.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","description":"Required when creating, and when changing the HTML of an existing section; omit it for a settings-only update. The HTML content to set. CSS rules MUST be wrapped in \u003cstyle\u003e tags — the system extracts them into a separate style field automatically. Never write bare CSS (e.g. `:root { }`, `.class { }`) as plain text in the body; it will be treated as visible text content, not styles. Inline style=\"\" attributes on elements are fine."},"node_id":{"type":"string","description":"The id of the html_section node to update, or \"create_new\" to create a new one."},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node instance. Optional; omit to preserve the current value (or leave unnamed when creating a new section)."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Non-content settings to deep-merge into the section, nested settings[\u003csetting_id\u003e][\u003cbreakpoint\u003e][\u003carg\u003e] — e.g. { \"animation\": { \"base\": { \"style\": \"fade\" } } }. Any html_section setting except `html`."},"publish_changes":{"type":"boolean","description":"Publish the working version after the change."},"revision":{"type":"string","description":"Required when updating an existing section: the revision from your last read of it. The update fails with 409 if the section changed since, so a stale write never overwrites a newer edit. Ignored with node_id \"create_new\"."}},"required":["node_id"]}}}}},"get":{"summary":"Get HTML section content","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"The id of the html_section node."},"name":{"type":"string","nullable":true,"description":"User-assigned name of this node, if set."},"html":{"type":"string","description":"The full HTML content of the section."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"The section's non-content settings (conditional visibility, animation), keyed by setting id. Its HTML is returned as `html`, never here."},"revision":{"type":"string","description":"Content revision of this node as of this read. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile."}},"required":["id","html","settings","revision"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the HTML content and the non-content settings (conditional visibility, animation) of the html_section node with the given id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"node_id","in":"query","required":true,"schema":{"type":"string","description":"The id of the html_section node to fetch."},"description":"The id of the html_section node to fetch."}]}},"/api/v2/pages/{id}/builder/content/publish":{"post":{"summary":"Publish the working version","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Publishes the current working version of this record's builder doc, making staged changes live. Fails when the working draft is disconnected from the published version — POST builder/content/discard_unpublished_changes first.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/builder/content/versions":{"get":{"summary":"List builder doc version history","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Active working lineage, newest first."},"refused_edit_versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"]},"description":"Side versions (change_type `refused_edits`) keeping edits the server refused because the page changed under them, newest first. Off the working lineage; restore one to bring its content back."}},"required":["published_version_on_working_lineage","versions"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns the active working lineage of this record's builder doc, newest first, plus publish/working status.\n\nCompacted and orphaned versions are omitted. When `published_version_on_working_lineage` is false, the working\ndraft is disconnected from published — POST discard_unpublished_changes to reconnect before publishing.\nThe published version is still identified by `published_version_id` even when it is not in `versions`.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/pages/{id}/builder/content/versions/{version_id}":{"get":{"summary":"Get a builder doc version","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."},"content":{"$ref":"#/components/schemas/BuilderDocNode","description":"Root node of this version's tree; recursively contains children."},"settings":{"type":"object","description":"Version-level settings snapshot."},"style_guide_id":{"type":"integer","nullable":true},"layout_id":{"type":"integer","nullable":true}},"required":["id","created_at","published","working"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Returns one version, including its node tree. The version must belong to this record's builder doc; compacted/orphaned versions are still fetchable by id.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/pages/{id}/builder/content/versions/{version_id}/restore":{"post":{"summary":"Restore a builder doc version","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"restored_from_version_id":{"type":"integer"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The newly created working draft."}},"required":["published_version_on_working_lineage","success","restored_from_version_id"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates a new working draft whose content matches the given version. Does not publish.\n\nThe restored snapshot is always a new version on top of the current working version (same as Restore\nthis version in the editor). To throw away a disconnected draft and go back to published, use\ndiscard_unpublished_changes instead.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/builder/content/undo":{"post":{"summary":"Undo a builder doc change","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to undo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/builder/content/redo":{"post":{"summary":"Redo a builder doc change","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"},"working_version":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"editor_id":{"type":"integer","nullable":true,"description":"User who made the change. Null for API keys with no acts-as user, and for the original version."},"editor_name":{"type":"string","nullable":true},"source":{"type":"string","enum":["api","simplero_coach"],"nullable":true,"description":"Who made the change: api, simplero_coach, or null for the editor UI."},"change_type":{"type":"string","nullable":true,"description":"Kind of change, e.g. create_node, update_node, restore_version. Null for the original version."},"change_meta":{"type":"object","description":"Raw change metadata (type, node_id, setting_id, …). Empty object on the original version and other rows with no stored meta."},"published":{"type":"boolean","description":"True when this is the currently published version."},"working":{"type":"boolean","description":"True when this is the current working (draft) version."},"prev_version_id":{"type":"integer","nullable":true,"description":"Previous version on the working lineage."}},"required":["id","created_at","published","working"],"description":"The resulting working version."}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Moves the working draft through the same undo/redo history as the editor. Does not publish.\nUndo at the published version creates a new draft from its predecessor instead of changing the published page.\nReturns the resulting working version and publish status. Returns 422 when there is nothing to redo.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/builder/content/discard_unpublished_changes":{"post":{"summary":"Discard unpublished builder doc changes","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"working_version_id":{"type":"integer","nullable":true},"published_version_id":{"type":"integer","nullable":true},"unpublished_changes_count":{"type":"integer","nullable":true,"description":"How many versions sit between working and published. Null when published is not on the working lineage."},"published_version_on_working_lineage":{"type":"boolean","description":"False when the working draft is disconnected from published — discard unpublished changes before publishing."},"success":{"type":"boolean"}},"required":["published_version_on_working_lineage","success"]}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Throws away the working draft and reconnects working to the currently published version.\nThis is the operation that repairs a disconnected working lineage so publish can succeed.\n\nNo-op-success when working is already the published version. Errors when the doc has never been published.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/builder/content/accessibility":{"get":{"summary":"Run WCAG 2.1 AA accessibility check","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"pass":{"type":"boolean"},"error_count":{"type":"integer"},"warning_count":{"type":"integer"},"checked_at":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string"},"message":{"type":"string"},"node_id":{"type":"string"},"node_type":{"type":"string"},"suggestion":{"type":"string"},"meta":{"type":"object","description":"Extra details (colors, ratio, suggested_fg, …). Free-form."}},"required":["code","severity","message"]}}},"required":["pass","error_count","warning_count","checked_at","issues"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"Audits the working version of this record's builder doc (and its style guide) for WCAG 2.1 AA issues:\ncolor contrast (text vs background on palette roles and color styles), missing image alt text,\nheading hierarchy, and keyboard/focus risks in HTML sections.\n\nAlways run this at the end of a page build, before publish. For each contrast failure, `suggestion`\nand `meta.suggested_fg` include a replacement color that meets the AA ratio — apply those fixes\n(update style guide colors / node settings / HTML) and re-run until `pass` is true or only\nwarnings remain that the user has accepted.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/pages/{id}/builder/content/preview_url":{"get":{"summary":"Get a short-lived preview link","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"url":{"type":"string","description":"Open within expires_at."},"expires_at":{"type":"string","format":"date-time"}},"required":["url","expires_at"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"A link to this page as it is now, its working (unpublished) version, that opens without a login for 10 minutes. Open it in your own headless browser to take screenshots and check your design; ask for a new link when it expires. Visits to it count no page views. For landing pages, funnel pages and site pages.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/pages/{id}/builder/content/design_guide":{"get":{"summary":"Get the design guide","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"version":{"type":"string"},"text":{"type":"string","description":"Markdown."}},"required":["version","text"]}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"description":"What the main design settings look like (section and column color styles, padding, gaps, typography and button styles…), and what to avoid, written from screenshots in several style guides. Read it before you style a page. `version` changes whenever the notes change: keep it, and read the guide again when it differs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/pages/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/pages/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/pages/{id}/actions/publish":{"post":{"summary":"Publish","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/unpublish":{"post":{"summary":"Unpublish","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/drip":{"post":{"summary":"Drip","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/add_to_main_nav":{"post":{"summary":"Add to main nav","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/clone_to_site":{"post":{"summary":"Clone to another site","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/pages/{id}/actions/move_to_site":{"post":{"summary":"Move to another site","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"Site"}}}}}}}},"/api/v2/pages/{id}/actions/move_to_funnel":{"post":{"summary":"Move to funnel","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"funnel_id":{"type":"integer","description":"Funnel"}}}}}}}},"/api/v2/pages/{id}/actions/convert_to_landing_page":{"post":{"summary":"Turn into a Landing Page","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/undo_move":{"post":{"summary":"Undo move to site page","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/create_funnel_from":{"post":{"summary":"Turn into a Funnel","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/reset_view_counters":{"post":{"summary":"Reset view counters","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/hide_from_bots":{"post":{"summary":"Hide from search engines","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/unhide_from_bots":{"post":{"summary":"Unhide from search engines","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/toggle_bots":{"post":{"summary":"Toggle search engine visibility","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/hide_from_site_search":{"post":{"summary":"Hide from site search","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/unhide_from_site_search":{"post":{"summary":"Include in site search","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/toggle_site_search":{"post":{"summary":"Toggle site search visibility","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/hide_from_ai_bots":{"post":{"summary":"Hide from AI crawlers","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/unhide_from_ai_bots":{"post":{"summary":"Unhide from AI crawlers","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/toggle_ai_bots":{"post":{"summary":"Toggle AI crawler visibility","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/make_home_page":{"post":{"summary":"Make this page the site home page","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/replace_with_redirect":{"post":{"summary":"Replace with redirect","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"redirect_to":{"type":"string"},"redirect_to_raw":{"type":"string"},"permanent":{"type":"string"}}}}}}}},"/api/v2/pages/{id}/actions/save_as_template":{"post":{"summary":"Save as template","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/convert_to_builder_v2":{"post":{"summary":"Convert to Page Builder 2.0","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/refresh_page_speed_score":{"post":{"summary":"Refresh page speed score","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pages/{id}/actions/delete":{"post":{"summary":"Delete Page","tags":["Pages"],"x-simplero-resource-type":"pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/payment_processors":{"get":{"summary":"List payment processors","tags":["Payment Processors"],"x-simplero-resource-type":"payment_processors","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentProcessor"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"enabled","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, label)."},"description":"Search records (matches via name, label)."}]}},"/api/v2/payment_processors/{id}":{"get":{"summary":"Get a payment processor","tags":["Payment Processors"],"x-simplero-resource-type":"payment_processors","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PaymentProcessor"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/payouts":{"get":{"summary":"List payouts","tags":["Payouts"],"x-simplero-resource-type":"payouts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payout"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"paid_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":[0,1,2,3,4,5]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via note, affiliate - name, first_names, last_name, email, paypal_email)."},"description":"Search records (matches via note, affiliate - name, first_names, last_name, email, paypal_email)."}]}},"/api/v2/payouts/{id}":{"get":{"summary":"Get a payout","tags":["Payouts"],"x-simplero-resource-type":"payouts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Payout"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/payouts/{id}/actions/mark_paid":{"post":{"summary":"Mark as paid","tags":["Payouts"],"x-simplero-resource-type":"payouts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/payouts/{id}/actions/stop_retrying":{"post":{"summary":"Stop retrying","tags":["Payouts"],"x-simplero-resource-type":"payouts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pipeline_stages":{"get":{"summary":"List pipeline stages","tags":["Pipeline Stages"],"x-simplero-resource-type":"pipeline_stages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineStage"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"pipeline_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a pipeline stage","tags":["Pipeline Stages"],"x-simplero-resource-type":"pipeline_stages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PipelineStage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStage"}}}}}},"/api/v2/pipeline_stages/{id}":{"get":{"summary":"Get a pipeline stage","tags":["Pipeline Stages"],"x-simplero-resource-type":"pipeline_stages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PipelineStage"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a pipeline stage","tags":["Pipeline Stages"],"x-simplero-resource-type":"pipeline_stages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PipelineStage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStageOptional"}}}}}},"/api/v2/pipeline_stages/{id}/actions/delete":{"post":{"summary":"Delete Pipeline stage","tags":["Pipeline Stages"],"x-simplero-resource-type":"pipeline_stages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves triggers and action arguments, and clears the stage from old tickets. Refuses deletion while deals, ideas or active tickets use the stage.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pipelines":{"get":{"summary":"List pipelines","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Pipeline"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"entry_type","in":"query","required":false,"schema":{"type":"string","enum":[0,1,2]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a pipeline","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Pipeline"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}}}}},"/api/v2/pipelines/{id}":{"get":{"summary":"Get a pipeline","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Pipeline"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a pipeline","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Pipeline"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineOptional"}}}}}},"/api/v2/pipelines/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/pipelines/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/pipelines/{id}/actions/star":{"post":{"summary":"Star","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pipelines/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pipelines/{id}/actions/delete":{"post":{"summary":"Delete Pipeline","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRefuses deletion while deals, ideas or live help desks use the pipeline.\n\nDelete this pipeline's pipeline stages first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/pipelines/{id}/actions/set_default":{"post":{"summary":"Set default","tags":["Pipelines"],"x-simplero-resource-type":"pipelines","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/playlists":{"get":{"summary":"List playlists","tags":["Playlists"],"x-simplero-resource-type":"playlists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Playlist"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/playlists/{id}":{"get":{"summary":"Get a playlist","tags":["Playlists"],"x-simplero-resource-type":"playlists","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Playlist"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/podcast_episodes":{"get":{"summary":"List episodes","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PodcastEpisode"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"podcast_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"publish_status","in":"query","required":false,"schema":{"type":"string","enum":["draft","published","scheduled","dripped"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, subtitle, show_notes)."},"description":"Search records (matches via title, subtitle, show_notes)."}]},"post":{"summary":"Create a episode","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PodcastEpisode"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastEpisode"}}}}}},"/api/v2/podcast_episodes/{id}":{"get":{"summary":"Get a episode","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PodcastEpisode"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a episode","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PodcastEpisode"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastEpisodeOptional"}}}}}},"/api/v2/podcast_episodes/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/podcast_episodes/{id}/actions/publish":{"post":{"summary":"Publish","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/podcast_episodes/{id}/actions/unpublish":{"post":{"summary":"Unpublish","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/podcast_episodes/{id}/actions/delete":{"post":{"summary":"Delete Episode","tags":["Podcast Episodes"],"x-simplero-resource-type":"podcast_episodes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/podcasts":{"get":{"summary":"List podcasts","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Podcast"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"access","in":"query","required":false,"schema":{"type":"string","enum":[0,1]}},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, title)."},"description":"Search records (matches via internal_name, title)."}]},"post":{"summary":"Create a podcast","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Podcast"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Podcast"}}}}}},"/api/v2/podcasts/{id}":{"get":{"summary":"Get a podcast","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Podcast"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a podcast","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Podcast"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastOptional"}}}}}},"/api/v2/podcasts/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/podcasts/{id}/actions/delete":{"post":{"summary":"Delete Podcast","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this podcast's episodes first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/podcasts/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/podcasts/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Podcasts"],"x-simplero-resource-type":"podcasts","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/poll_options":{"get":{"summary":"List poll options","tags":["Poll Options"],"x-simplero-resource-type":"poll_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"poll_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a poll option","tags":["Poll Options"],"x-simplero-resource-type":"poll_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PollOption"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollOption"}}}}}},"/api/v2/poll_options/{id}":{"get":{"summary":"Get a poll option","tags":["Poll Options"],"x-simplero-resource-type":"poll_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PollOption"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a poll option","tags":["Poll Options"],"x-simplero-resource-type":"poll_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PollOption"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollOptionOptional"}}}}}},"/api/v2/poll_options/{id}/actions/delete":{"post":{"summary":"Delete Poll option","tags":["Poll Options"],"x-simplero-resource-type":"poll_options","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nA poll keeps at least 2 options, and its options cannot change once it has votes.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/poll_votes":{"get":{"summary":"List poll votes","tags":["Poll Votes"],"x-simplero-resource-type":"poll_votes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PollVote"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"poll_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"poll_option_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"site_member_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/poll_votes/{id}":{"get":{"summary":"Get a poll vote","tags":["Poll Votes"],"x-simplero-resource-type":"poll_votes","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PollVote"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/polls":{"get":{"summary":"List polls","tags":["Polls"],"x-simplero-resource-type":"polls","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Poll"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"forum_post_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a poll","tags":["Polls"],"x-simplero-resource-type":"polls","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Poll"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Poll"}}}}}},"/api/v2/polls/{id}":{"get":{"summary":"Get a poll","tags":["Polls"],"x-simplero-resource-type":"polls","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Poll"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a poll","tags":["Polls"],"x-simplero-resource-type":"polls","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Poll"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollOptional"}}}}}},"/api/v2/polls/{id}/actions/delete":{"post":{"summary":"Delete Poll","tags":["Polls"],"x-simplero-resource-type":"polls","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the poll from its post. A poll that has votes cannot be deleted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/price_periods":{"get":{"summary":"List price periods","tags":["Price Periods"],"x-simplero-resource-type":"price_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PricePeriod"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"price_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via price - name, description, internal_notes)."},"description":"Search records (matches via price - name, description, internal_notes)."}]},"post":{"summary":"Create a price period","tags":["Price Periods"],"x-simplero-resource-type":"price_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PricePeriod"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricePeriod"}}}}}},"/api/v2/price_periods/{id}":{"get":{"summary":"Get a price period","tags":["Price Periods"],"x-simplero-resource-type":"price_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PricePeriod"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a price period","tags":["Price Periods"],"x-simplero-resource-type":"price_periods","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PricePeriod"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricePeriodOptional"}}}}}},"/api/v2/prices":{"get":{"summary":"List prices","tags":["Prices"],"x-simplero-resource-type":"prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Price"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"listing_type","in":"query","required":false,"schema":{"type":"string","enum":["published","secret","coupon"]}},{"name":"price_type","in":"query","required":false,"schema":{"type":"string","enum":["purchase","subscription"]}},{"name":"currency_type","in":"query","required":false,"schema":{"type":"string","enum":["money","credit"]}},{"name":"enabled","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"product_variant_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, description, internal_notes)."},"description":"Search records (matches via name, description, internal_notes)."}]},"post":{"summary":"Create a price","tags":["Prices"],"x-simplero-resource-type":"prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Price"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Price"}}}}}},"/api/v2/prices/{id}":{"get":{"summary":"Get a price","tags":["Prices"],"x-simplero-resource-type":"prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Price"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a price","tags":["Prices"],"x-simplero-resource-type":"prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Price"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceOptional"}}}}}},"/api/v2/prices/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Prices"],"x-simplero-resource-type":"prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"integer"}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/prices/{id}/actions/add_override":{"post":{"summary":"Add a price that overrides this one","tags":["Prices"],"x-simplero-resource-type":"prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"integer"}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/prices/{id}/actions/delete":{"post":{"summary":"Delete Price","tags":["Prices"],"x-simplero-resource-type":"prices","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRefuses deletion while this price has completed purchases, an active offer, or is the only trigger price of an order bump.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/product_affiliate_programs":{"get":{"summary":"List product affiliate programs","tags":["Product Affiliate Programs"],"x-simplero-resource-type":"product_affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProductAffiliateProgram"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a product affiliate program","tags":["Product Affiliate Programs"],"x-simplero-resource-type":"product_affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductAffiliateProgram"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAffiliateProgram"}}}}}},"/api/v2/product_affiliate_programs/{id}":{"get":{"summary":"Get a product affiliate program","tags":["Product Affiliate Programs"],"x-simplero-resource-type":"product_affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductAffiliateProgram"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a product affiliate program","tags":["Product Affiliate Programs"],"x-simplero-resource-type":"product_affiliate_programs","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductAffiliateProgram"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAffiliateProgramOptional"}}}}}},"/api/v2/product_affiliates":{"get":{"summary":"List product affiliates","tags":["Product Affiliates"],"x-simplero-resource-type":"product_affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProductAffiliate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a product affiliate","tags":["Product Affiliates"],"x-simplero-resource-type":"product_affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductAffiliate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAffiliate"}}}}}},"/api/v2/product_affiliates/{id}":{"get":{"summary":"Get a product affiliate","tags":["Product Affiliates"],"x-simplero-resource-type":"product_affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductAffiliate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a product affiliate","tags":["Product Affiliates"],"x-simplero-resource-type":"product_affiliates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductAffiliate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductAffiliateOptional"}}}}}},"/api/v2/product_categories":{"get":{"summary":"List categories","tags":["Product Categories"],"x-simplero-resource-type":"product_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProductCategory"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]},"post":{"summary":"Create a category","tags":["Product Categories"],"x-simplero-resource-type":"product_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductCategory"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCategory"}}}}}},"/api/v2/product_categories/{id}":{"get":{"summary":"Get a category","tags":["Product Categories"],"x-simplero-resource-type":"product_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductCategory"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a category","tags":["Product Categories"],"x-simplero-resource-type":"product_categories","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductCategory"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCategoryOptional"}}}}}},"/api/v2/product_tax_overrides":{"get":{"summary":"List product tax overrides","tags":["Product Tax Overrides"],"x-simplero-resource-type":"product_tax_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProductTaxOverride"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a product tax override","tags":["Product Tax Overrides"],"x-simplero-resource-type":"product_tax_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductTaxOverride"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductTaxOverride"}}}}}},"/api/v2/product_tax_overrides/{id}":{"get":{"summary":"Get a product tax override","tags":["Product Tax Overrides"],"x-simplero-resource-type":"product_tax_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductTaxOverride"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a product tax override","tags":["Product Tax Overrides"],"x-simplero-resource-type":"product_tax_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductTaxOverride"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductTaxOverrideOptional"}}}}}},"/api/v2/product_variants":{"get":{"summary":"List variants","tags":["Product Variants"],"x-simplero-resource-type":"product_variants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProductVariant"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]},"post":{"summary":"Create a variant","tags":["Product Variants"],"x-simplero-resource-type":"product_variants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductVariant"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductVariant"}}}}}},"/api/v2/product_variants/{id}":{"get":{"summary":"Get a variant","tags":["Product Variants"],"x-simplero-resource-type":"product_variants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductVariant"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a variant","tags":["Product Variants"],"x-simplero-resource-type":"product_variants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProductVariant"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductVariantOptional"}}}}}},"/api/v2/product_variants/{id}/actions/delete":{"post":{"summary":"Delete Variant","tags":["Product Variants"],"x-simplero-resource-type":"product_variants","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nDelete this variant's prices first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products":{"get":{"summary":"List products","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"facet_value_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"listing_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"site_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"recurring","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, internal_name, subtitle)."},"description":"Search records (matches via name, internal_name, subtitle)."}]},"post":{"summary":"Create a product","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Product"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}}}},"/api/v2/products/{id}":{"get":{"summary":"Get a product","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Product"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a product","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Product"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductOptional"}}}}}},"/api/v2/products/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/add_content":{"post":{"summary":"Add content access","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_ids":{"type":"array","items":{"type":"integer"},"description":"Site"},"course_ids":{"type":"array","items":{"type":"integer"},"description":"Course"},"page_ids":{"type":"array","items":{"type":"integer"},"description":"Page"},"site_group_ids":{"type":"array","items":{"type":"integer"},"description":"SiteGroup"},"bot_tier_ids":{"type":"array","items":{"type":"integer"},"description":"BotTier"},"coaching_program_ids":{"type":"array","items":{"type":"integer"},"description":"CoachingProgram"},"podcast_ids":{"type":"array","items":{"type":"integer"},"description":"Podcast"}}}}}}}},"/api/v2/products/{id}/actions/remove_content":{"post":{"summary":"Remove content access","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_ids":{"type":"array","items":{"type":"integer"},"description":"Site"},"course_ids":{"type":"array","items":{"type":"integer"},"description":"Course"},"page_ids":{"type":"array","items":{"type":"integer"},"description":"Page"},"site_group_ids":{"type":"array","items":{"type":"integer"},"description":"SiteGroup"},"bot_tier_ids":{"type":"array","items":{"type":"integer"},"description":"BotTier"},"coaching_program_ids":{"type":"array","items":{"type":"integer"},"description":"CoachingProgram"},"podcast_ids":{"type":"array","items":{"type":"integer"},"description":"Podcast"},"keep_current_grants":{"type":"boolean"}}}}}}}},"/api/v2/products/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/products/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/products/{id}/actions/create_automation_from_template":{"post":{"summary":"Create automation from template","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new automation"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates an automation that starts on this record, built from one of its automation_templates. Answers: freebie_offer takes asset_ids (comma-separated files, added to the list Content; not needed when the list already has Content), product_id to sell, and style 'story' (Soap Opera, 5 emails) or 'plain' (Reviver, 6 emails); freebie_offer and email_sequence can instead end on scheduling_link_id (a call: the automation stops when they book) or survey_id (an application: it stops when they respond); product_id wins over both. event_reminders_replay takes replay_link (an https:// link or a simplero:// link to one of your pages; else the event page shows the replay) and product_id; email_sequence takes count (1-100) and days (at least count; default twice count), the first email now and the last on the last day, and product_id: the emails stop when they buy it. event_reminders and event_reminders_replay take reminders, a comma-separated list of 1_week, 3_days, 1_day, 1_hour, 10_minutes (default '1_day,1_hour,10_minutes'). Freebie and event templates write their emails with AI in the background; the automation is frozen (on_hold) until they are written. They also take locale, the language the emails are written in (default: the account customer_locale); about, what it's about, which AI follows first; and writer: 'ai' (default) or 'me' for just the structure, with each email saying what to write, left frozen.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string"},"name":{"type":"string"},"asset_ids":{"type":"string"},"asset_id":{"type":"integer","description":"Asset"},"product_id":{"type":"integer","description":"Product"},"scheduling_link_id":{"type":"integer","description":"SchedulingLink"},"survey_id":{"type":"integer","description":"Survey"},"style":{"type":"string"},"locale":{"type":"string"},"replay_link":{"type":"string"},"reminders":{"type":"string"},"count":{"type":"string"},"days":{"type":"string"},"writer":{"type":"string"},"about":{"type":"string"}}}}}}}},"/api/v2/products/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/products/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/products/{id}/actions/star":{"post":{"summary":"Star","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/reset_freebie_token":{"post":{"summary":"Reset freebie link","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/list":{"post":{"summary":"List","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/unlist":{"post":{"summary":"Unlist","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/close":{"post":{"summary":"Close","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/delete":{"post":{"summary":"Delete Product","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this product's prices and variants first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/products/{id}/actions/queue_text_message":{"post":{"summary":"Queue text message","tags":["Products"],"x-simplero-resource-type":"products","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Text sent to this product's active customers. At most 700 characters."}},"required":["message"]}}}}}},"/api/v2/purchases":{"get":{"summary":"List purchases","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Purchase"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"product_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"price_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"price_period_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"payment_processor_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"parent_purchase_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_link_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"sales_rep_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"landing_page_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"funnel_step_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"coupon_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"tax_region_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"country_code","in":"query","required":false,"schema":{"type":"string"}},{"name":"vat_no","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"offer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"mailing_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"track","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"purchased_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"committed_until","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"discount_expires_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"renewed_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"period_ends_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"canceled_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"refunded_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"first_failed_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"next_attempt_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"marked_failed_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"incoming","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"subscription","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"renewals_due_at","in":"query","required":false,"schema":{"type":"string"}},{"name":"split_test_page_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"taxes_collected","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"received_price_cents","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"tag_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"utm_campaign","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"preventing_account_pausing","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]}},"/api/v2/purchases/{id}":{"get":{"summary":"Get a purchase","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Purchase"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a purchase","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Purchase"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOptional"}}}}}},"/api/v2/purchases/{id}/actions/update_next_charge_on":{"post":{"summary":"Update next charge on","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"next_charge_on":{"type":"string","format":"date-time"}}}}}}}},"/api/v2/purchases/{id}/actions/postpone_upcoming_charges_by":{"post":{"summary":"Postpone upcoming charges by","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"postpone_upcoming_charges_by":{"type":"integer"}}}}}}}},"/api/v2/purchases/{id}/actions/update_period_ends_at":{"post":{"summary":"Update period ends at","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"period_ends_on":{"type":"string","format":"date-time"}}}}}}}},"/api/v2/purchases/{id}/actions/postpone_period_ends_at_by":{"post":{"summary":"Postpone period ends at by","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"postpone_period_ends_at_by":{"type":"integer"}}}}}}}},"/api/v2/purchases/{id}/actions/refund":{"post":{"summary":"Refund","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/collect":{"post":{"summary":"Collect","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["completed","pending"],"description":"`pending` when the payment processor has not finished yet."},"message":{"type":"string"},"payment_id":{"type":"integer","nullable":true,"description":"The payment recorded, for `register_manual_payment`."}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Charges what is due now with the purchase's payment method. Answers 422 with the reason when nothing is due or the charge fails; an async processor answers 200 with a pending message. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/pay_up":{"post":{"summary":"Pay up","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["completed","pending"],"description":"`pending` when the payment processor has not finished yet."},"message":{"type":"string"},"payment_id":{"type":"integer","nullable":true,"description":"The payment recorded, for `register_manual_payment`."}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Pays all remaining installments. Answers 422 with the reason when the charge fails or another payment on this purchase is running. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/charge":{"post":{"summary":"Charge","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["completed","pending"],"description":"`pending` when the payment processor has not finished yet."},"message":{"type":"string"},"payment_id":{"type":"integer","nullable":true,"description":"The payment recorded, for `register_manual_payment`."}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Charges an amount now with the purchase's payment method. Answers 422 with the reason on a decline. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"Amount to charge now, in cents of the purchase currency."}},"required":["amount"]}}}}}},"/api/v2/purchases/{id}/actions/payout":{"post":{"summary":"Payout","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["completed","pending"],"description":"`pending` when the payment processor has not finished yet."},"message":{"type":"string"},"payment_id":{"type":"integer","nullable":true,"description":"The payment recorded, for `register_manual_payment`."}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Pays back part of what the customer paid. Use `refund` to refund everything. Answers 422 with the reason when none or only part of the money could be returned. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"Amount to pay back, in cents of the purchase currency."},"credit_to":{"type":"string","description":"Where the money goes: `latest` (default), `oldest`, or a payment method id."}},"required":["amount"]}}}}}},"/api/v2/purchases/{id}/actions/register_manual_payment":{"post":{"summary":"Register manual payment","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string","enum":["completed","pending"],"description":"`pending` when the payment processor has not finished yet."},"message":{"type":"string"},"payment_id":{"type":"integer","nullable":true,"description":"The payment recorded, for `register_manual_payment`."}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}}},"description":"Records a payment made outside Simplero. No payment processor is called. Requires an `Idempotency-Key` header.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"Amount received, in cents of the purchase currency. Must be positive."},"paid_on":{"type":"string","format":"date-time"},"note":{"type":"string","description":"Free-text note kept on the payment."},"payment_processor_id":{"type":"integer","description":"A manual payment processor of the account. Defaults to the account's manual processor."}},"required":["amount"]}}}}}},"/api/v2/purchases/{id}/actions/cancel":{"post":{"summary":"Cancel","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/capture":{"post":{"summary":"Capture","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/pause":{"post":{"summary":"Pause","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/resume":{"post":{"summary":"Resume","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/turn_off_auto_renew":{"post":{"summary":"Turn off auto renew","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/turn_on_auto_renew":{"post":{"summary":"Turn on auto renew","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/cancel_scheduled_change":{"post":{"summary":"Cancel scheduled change","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/move_to_product":{"post":{"summary":"Move to another product","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"product_id":{"type":"integer","description":"Product"},"fire_triggers":{"type":"boolean"}}}}}}}},"/api/v2/purchases/{id}/actions/change_price":{"post":{"summary":"Change price","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"period_id":{"type":"integer","description":"Period"}}}}}}}},"/api/v2/purchases/{id}/actions/change_tax_percent":{"post":{"summary":"Change tax percent","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tax_percent":{"type":"number"}}}}}}}},"/api/v2/purchases/{id}/actions/disassociate_from_funnel":{"post":{"summary":"Disassociate from funnel","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/purchases/{id}/actions/set_auto_responder_start_at":{"post":{"summary":"Set auto responder start at","tags":["Purchases"],"x-simplero-resource-type":"purchases","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"}}}}}}}},"/api/v2/quiz_answers":{"get":{"summary":"List quiz answers","tags":["Quiz Answers"],"x-simplero-resource-type":"quiz_answers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/QuizAnswer"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"question_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a quiz answer","tags":["Quiz Answers"],"x-simplero-resource-type":"quiz_answers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QuizAnswer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizAnswer"}}}}}},"/api/v2/quiz_answers/{id}":{"get":{"summary":"Get a quiz answer","tags":["Quiz Answers"],"x-simplero-resource-type":"quiz_answers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QuizAnswer"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a quiz answer","tags":["Quiz Answers"],"x-simplero-resource-type":"quiz_answers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QuizAnswer"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizAnswerOptional"}}}}}},"/api/v2/quiz_answers/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Quiz Answers"],"x-simplero-resource-type":"quiz_answers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/quiz_questions":{"get":{"summary":"List quiz questions","tags":["Quiz Questions"],"x-simplero-resource-type":"quiz_questions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/QuizQuestion"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"lesson_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a quiz question","tags":["Quiz Questions"],"x-simplero-resource-type":"quiz_questions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QuizQuestion"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizQuestion"}}}}}},"/api/v2/quiz_questions/{id}":{"get":{"summary":"Get a quiz question","tags":["Quiz Questions"],"x-simplero-resource-type":"quiz_questions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QuizQuestion"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a quiz question","tags":["Quiz Questions"],"x-simplero-resource-type":"quiz_questions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QuizQuestion"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizQuestionOptional"}}}}}},"/api/v2/quiz_questions/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Quiz Questions"],"x-simplero-resource-type":"quiz_questions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/quiz_questions/{id}/actions/delete":{"post":{"summary":"Delete Quiz question","tags":["Quiz Questions"],"x-simplero-resource-type":"quiz_questions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/quiz_questions/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Quiz Questions"],"x-simplero-resource-type":"quiz_questions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/quiz_responses":{"get":{"summary":"List responses","tags":["Quiz Responses"],"x-simplero-resource-type":"quiz_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/QuizResponse"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"lesson_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"member_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via customer - first_names, last_name)."},"description":"Search records (matches via customer - first_names, last_name)."}]}},"/api/v2/quiz_responses/{id}":{"get":{"summary":"Get a response","tags":["Quiz Responses"],"x-simplero-resource-type":"quiz_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/QuizResponse"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/scheduling_link_availability_overrides":{"get":{"summary":"List scheduling link availability overrides","tags":["Scheduling Link Availability Overrides"],"x-simplero-resource-type":"scheduling_link_availability_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SchedulingLinkAvailabilityOverride"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"scheduling_link_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a scheduling link availability override","tags":["Scheduling Link Availability Overrides"],"x-simplero-resource-type":"scheduling_link_availability_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SchedulingLinkAvailabilityOverride"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulingLinkAvailabilityOverride"}}}}}},"/api/v2/scheduling_link_availability_overrides/{id}":{"get":{"summary":"Get a scheduling link availability override","tags":["Scheduling Link Availability Overrides"],"x-simplero-resource-type":"scheduling_link_availability_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SchedulingLinkAvailabilityOverride"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a scheduling link availability override","tags":["Scheduling Link Availability Overrides"],"x-simplero-resource-type":"scheduling_link_availability_overrides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SchedulingLinkAvailabilityOverride"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulingLinkAvailabilityOverrideOptional"}}}}}},"/api/v2/scheduling_links":{"get":{"summary":"List scheduling links","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SchedulingLink"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["individual","round_robin","collective"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, internal_name, description, slug, location_value, event_title_template, event_description_template)."},"description":"Search records (matches via name, internal_name, description, slug, location_value, event_title_template, event_description_template)."}]},"post":{"summary":"Create a scheduling link","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SchedulingLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulingLink"}}}}}},"/api/v2/scheduling_links/{id}":{"get":{"summary":"Get a scheduling link","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SchedulingLink"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a scheduling link","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SchedulingLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulingLinkOptional"}}}}}},"/api/v2/scheduling_links/{id}/actions/create_automation_from_template":{"post":{"summary":"Create automation from template","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new automation"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates an automation that starts on this record, built from one of its automation_templates. Answers: freebie_offer takes asset_ids (comma-separated files, added to the list Content; not needed when the list already has Content), product_id to sell, and style 'story' (Soap Opera, 5 emails) or 'plain' (Reviver, 6 emails); freebie_offer and email_sequence can instead end on scheduling_link_id (a call: the automation stops when they book) or survey_id (an application: it stops when they respond); product_id wins over both. event_reminders_replay takes replay_link (an https:// link or a simplero:// link to one of your pages; else the event page shows the replay) and product_id; email_sequence takes count (1-100) and days (at least count; default twice count), the first email now and the last on the last day, and product_id: the emails stop when they buy it. event_reminders and event_reminders_replay take reminders, a comma-separated list of 1_week, 3_days, 1_day, 1_hour, 10_minutes (default '1_day,1_hour,10_minutes'). Freebie and event templates write their emails with AI in the background; the automation is frozen (on_hold) until they are written. They also take locale, the language the emails are written in (default: the account customer_locale); about, what it's about, which AI follows first; and writer: 'ai' (default) or 'me' for just the structure, with each email saying what to write, left frozen.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string"},"name":{"type":"string"},"asset_ids":{"type":"string"},"asset_id":{"type":"integer","description":"Asset"},"product_id":{"type":"integer","description":"Product"},"scheduling_link_id":{"type":"integer","description":"SchedulingLink"},"survey_id":{"type":"integer","description":"Survey"},"style":{"type":"string"},"locale":{"type":"string"},"replay_link":{"type":"string"},"reminders":{"type":"string"},"count":{"type":"string"},"days":{"type":"string"},"writer":{"type":"string"},"about":{"type":"string"}}}}}}}},"/api/v2/scheduling_links/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/scheduling_links/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/scheduling_links/{id}/actions/star":{"post":{"summary":"Star","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/scheduling_links/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/scheduling_links/{id}/actions/delete":{"post":{"summary":"Delete Scheduling link","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves availability overrides and triggers. Existing events are kept and disconnected from the scheduling link.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/scheduling_links/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/scheduling_links/{id}/actions/attach_children":{"post":{"summary":"Add child links","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"child_link_ids":{"type":"array","items":{"type":"integer"},"description":"SchedulingLink"}}}}}}}},"/api/v2/scheduling_links/{id}/actions/remove_child":{"post":{"summary":"Remove child link","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"child_link_id":{"type":"integer"}}}}}}}},"/api/v2/scheduling_links/{id}/actions/reorder_children":{"post":{"summary":"Reorder child links","tags":["Scheduling Links"],"x-simplero-resource-type":"scheduling_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"child_link_ids":{"type":"array","items":{"type":"integer"},"description":"SchedulingLink"}}}}}}}},"/api/v2/segments":{"get":{"summary":"List segments","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Segment"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"saved","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]},"post":{"summary":"Create a segment","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Segment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Segment"}}}}}},"/api/v2/segments/{id}":{"get":{"summary":"Get a segment","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Segment"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a segment","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Segment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentOptional"}}}}}},"/api/v2/segments/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/segments/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/segments/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/segments/{id}/actions/star":{"post":{"summary":"Star","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/segments/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/segments/{id}/actions/refresh":{"post":{"summary":"Refresh","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/segments/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/segments/{id}/actions/delete":{"post":{"summary":"Delete Segment","tags":["Segments"],"x-simplero-resource-type":"segments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/shipping_rates":{"get":{"summary":"List shipping rates","tags":["Shipping Rates"],"x-simplero-resource-type":"shipping_rates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ShippingRate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"shipping_region_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a shipping rate","tags":["Shipping Rates"],"x-simplero-resource-type":"shipping_rates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShippingRate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRate"}}}}}},"/api/v2/shipping_rates/{id}":{"get":{"summary":"Get a shipping rate","tags":["Shipping Rates"],"x-simplero-resource-type":"shipping_rates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShippingRate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a shipping rate","tags":["Shipping Rates"],"x-simplero-resource-type":"shipping_rates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShippingRate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRateOptional"}}}}}},"/api/v2/shipping_rates/{id}/actions/delete":{"post":{"summary":"Delete Shipping rate","tags":["Shipping Rates"],"x-simplero-resource-type":"shipping_rates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/shipping_regions":{"get":{"summary":"List shipping regions","tags":["Shipping Regions"],"x-simplero-resource-type":"shipping_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ShippingRegion"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]},"post":{"summary":"Create a shipping region","tags":["Shipping Regions"],"x-simplero-resource-type":"shipping_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShippingRegion"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRegion"}}}}}},"/api/v2/shipping_regions/{id}":{"get":{"summary":"Get a shipping region","tags":["Shipping Regions"],"x-simplero-resource-type":"shipping_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShippingRegion"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a shipping region","tags":["Shipping Regions"],"x-simplero-resource-type":"shipping_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShippingRegion"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShippingRegionOptional"}}}}}},"/api/v2/shipping_regions/{id}/actions/delete":{"post":{"summary":"Delete Shipping region","tags":["Shipping Regions"],"x-simplero-resource-type":"shipping_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nDeletes the region and its rates.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/short_links":{"get":{"summary":"List shortlinks","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ShortLink"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via path, redirect_to)."},"description":"Search records (matches via path, redirect_to)."}]},"post":{"summary":"Create a shortlink","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShortLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShortLink"}}}}}},"/api/v2/short_links/{id}":{"get":{"summary":"Get a shortlink","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShortLink"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a shortlink","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ShortLink"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShortLinkOptional"}}}}}},"/api/v2/short_links/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/short_links/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/short_links/{id}/actions/reset_visits":{"post":{"summary":"Reset visits","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/short_links/{id}/actions/delete":{"post":{"summary":"Delete Shortlink","tags":["Short Links"],"x-simplero-resource-type":"short_links","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this short link; its redirect stops working.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_comments":{"post":{"summary":"Create a site comment","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteComment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates a comment, or a reply, on a course lesson, community post, blog post, or idea.\n\n`member_id` is the SiteMember who posts; see the field for the rules.\n\n`body` is HTML. Comments by staff and admins are approved right away and notify subscribers. Mention markup in `body` (`\u003cspan data-mention-member-id=\"123\"\u003e`, or `\"everyone\"` for the whole site) notifies those members, as it does on the site.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","description":"The comment text, as HTML."},"commentable_type":{"type":"string","enum":["CourseLesson","ForumPost","BlogPost","Idea"],"description":"What to comment on."},"commentable_id":{"type":"integer","description":"The ID of the lesson, post, blog post, or idea. Existing comments show it as `commentable_id`."},"parent_id":{"type":"integer","description":"To reply, the ID of an approved comment on the same item."},"member_id":{"type":"integer","description":"The SiteMember who acts. It must be active staff, or an admin of that site. Find it as `commenter_id` on existing comments, or on the site's members page in admin. Required for account keys. A key acting as a user always acts as that user's member on the site, so it can leave this out."}},"required":["body","commentable_type","commentable_id"]}}}}},"get":{"summary":"List comments","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SiteComment"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"blog_post_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"forum_post_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"course_lesson_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"course_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"idea_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"approved","in":"query","required":false,"schema":{"type":"string","enum":["approved","rejected","pending","spam_flagged"]}},{"name":"commentable_type","in":"query","required":false,"schema":{"type":"string","enum":["CourseLesson","ForumPost","BlogPost","Idea"]}},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via body, rich_text_content - body)."},"description":"Search records (matches via body, rich_text_content - body)."}]}},"/api/v2/site_comments/{id}/actions/react":{"post":{"summary":"React to a site comment","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds an emoji reaction to an approved site comment. Adding the same reaction again does nothing.\n\n`member_id` is the SiteMember who reacts. It follows the same rules as when creating a comment.\n\nReturns 422 when reactions are turned off for that item. `emoji` is a named reaction key (love, gratitude, insightful, celebrate, yay, like, haha, wow, sad, angry, hug, me_too) or any single emoji, such as `🤸`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"emoji":{"type":"string","description":"A named reaction key (love, gratitude, insightful, celebrate, yay, like, haha, wow, sad, angry, hug, me_too) or any single emoji. An emoji with a named reaction, such as ❤️, is saved as its key."},"member_id":{"type":"integer","description":"The SiteMember who acts. It must be active staff, or an admin of that site. Find it as `commenter_id` on existing comments, or on the site's members page in admin. Required for account keys. A key acting as a user always acts as that user's member on the site, so it can leave this out."}},"required":["emoji"]}}}}}},"/api/v2/site_comments/{id}":{"get":{"summary":"Get a comment","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteComment"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a comment","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteComment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCommentOptional"}}}}}},"/api/v2/site_comments/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_comments/{id}/actions/reject_with_message":{"post":{"summary":"Reject with message","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"rejection_message":{"type":"string"}}}}}}}},"/api/v2/site_comments/{id}/actions/approve":{"post":{"summary":"Approve","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_comments/{id}/actions/reject":{"post":{"summary":"Reject","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_comments/{id}/actions/delete":{"post":{"summary":"Delete Comment","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_comments/{id}/actions/send_to_linear":{"post":{"summary":"Send to Linear","tags":["Site Comments"],"x-simplero-resource-type":"site_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_group_requests":{"get":{"summary":"List group join requests","tags":["Site Group Requests"],"x-simplero-resource-type":"site_group_requests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SiteGroupRequest"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","approved","declined"]}},{"name":"site_group_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via customer - first_names, last_name, email)."},"description":"Search records (matches via customer - first_names, last_name, email)."}]}},"/api/v2/site_group_requests/{id}":{"get":{"summary":"Get a group join request","tags":["Site Group Requests"],"x-simplero-resource-type":"site_group_requests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteGroupRequest"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/site_group_requests/{id}/actions/approve":{"post":{"summary":"Approve","tags":["Site Group Requests"],"x-simplero-resource-type":"site_group_requests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Grants the member access to the group and emails them, the same as approving in the admin. To grant access without a request, use the Customer action site_group_grant.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_group_requests/{id}/actions/decline":{"post":{"summary":"Decline","tags":["Site Group Requests"],"x-simplero-resource-type":"site_group_requests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Does not grant access to the group. Emails the member that the request was declined.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string"}}}}}}}},"/api/v2/site_groups":{"get":{"summary":"List groups","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SiteGroup"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"site_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"visible","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"facet_value_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name)."},"description":"Search records (matches via internal_name)."}]},"post":{"summary":"Create a group","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteGroup"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroup"}}}}}},"/api/v2/site_groups/{id}":{"get":{"summary":"Get a group","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteGroup"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a group","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteGroup"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteGroupOptional"}}}}}},"/api/v2/site_groups/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/site_groups/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/site_groups/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/site_groups/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/site_groups/{id}/actions/delete":{"post":{"summary":"Delete Group","tags":["Site Groups"],"x-simplero-resource-type":"site_groups","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the group, its forum and categories, and its course links. The courses themselves are kept.\n\nDelete this group's forum posts and courses first. The delete fails while any of them still exist. Courses are not deleted: unlink them by updating the group with course_ids: [].","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_members":{"post":{"summary":"Add a site member","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteMember"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds the contact to the site the same way \"Add member\" does in the admin, and returns the member.\n\nCalling it again for an existing member returns the same member, with access restored. Members are matched by Simplero ID, so a merged contact may come back with a different customer_id.\n\nNo login email is sent unless send_login_email is true.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"integer","description":"The site to add the contact to."},"customer_id":{"type":"integer","description":"The contact to add."},"send_login_email":{"type":"boolean","description":"Send a login email. Defaults to false, the same as leaving this off the site's Add member action.","default":false}},"required":["site_id","customer_id"]}}}}},"get":{"summary":"List site members","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SiteMember"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"badge_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"list_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"has_viewed_any_lesson","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"has_completed_any_lesson","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"has_viewed_at_least_one_lesson_in_module","in":"query","required":false,"schema":{"type":"string"}},{"name":"has_completed_at_least_one_lesson_in_module","in":"query","required":false,"schema":{"type":"string"}},{"name":"started_course_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"last_login_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]}},"/api/v2/site_members/{id}":{"get":{"summary":"Get a site member","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteMember"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a site member","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteMember"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMemberOptional"}}}}}},"/api/v2/site_members/{id}/actions/revoke_access":{"post":{"summary":"Revoke access","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_members/{id}/actions/send_login_link":{"post":{"summary":"Send login link","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_members/{id}/actions/unsubscribe_all":{"post":{"summary":"Unsubscribe from all site notifications","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_members/{id}/actions/silence":{"post":{"summary":"Block - don't allow comments or forum posts","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_members/{id}/actions/unsilence":{"post":{"summary":"Unblock - allow comments and forum posts","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_members/{id}/actions/put_on_moderation":{"post":{"summary":"Require moderation for posts and comments","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_members/{id}/actions/remove_from_moderation":{"post":{"summary":"Stop requiring moderation for posts and comments","tags":["Site Members"],"x-simplero-resource-type":"site_members","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_redirects":{"get":{"summary":"List redirects","tags":["Site Redirects"],"x-simplero-resource-type":"site_redirects","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SiteRedirect"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"path","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"redirect_to","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"visits_count","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"last_visited_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"permanent","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"site_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via path, redirect_to)."},"description":"Search records (matches via path, redirect_to)."}]},"post":{"summary":"Create a redirect","tags":["Site Redirects"],"x-simplero-resource-type":"site_redirects","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteRedirect"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRedirect"}}}}}},"/api/v2/site_redirects/{id}":{"get":{"summary":"Get a redirect","tags":["Site Redirects"],"x-simplero-resource-type":"site_redirects","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteRedirect"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a redirect","tags":["Site Redirects"],"x-simplero-resource-type":"site_redirects","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SiteRedirect"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRedirectOptional"}}}}}},"/api/v2/site_redirects/{id}/actions/delete":{"post":{"summary":"Delete Redirect","tags":["Site Redirects"],"x-simplero-resource-type":"site_redirects","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this site redirect and its triggers.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_redirects/{id}/actions/make_permanent":{"post":{"summary":"Make permanent","tags":["Site Redirects"],"x-simplero-resource-type":"site_redirects","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/site_redirects/{id}/actions/make_temporary":{"post":{"summary":"Make temporary","tags":["Site Redirects"],"x-simplero-resource-type":"site_redirects","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/sites":{"get":{"summary":"List sites","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Site"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"access","in":"query","required":false,"schema":{"type":"string","enum":["public","private"]}},{"name":"enabled","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"title","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, internal_name)."},"description":"Search records (matches via title, internal_name)."}]},"post":{"summary":"Create a site","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Site"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}}}},"/api/v2/sites/{id}":{"get":{"summary":"Get a site","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Site"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a site","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Site"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteOptional"}}}}}},"/api/v2/sites/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/sites/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/sites/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/sites/{id}/actions/star":{"post":{"summary":"Star","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/sites/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/sites/{id}/actions/set_feature":{"post":{"summary":"Turn a site feature on or off","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"feature":{"type":"string"},"enabled":{"type":"boolean"}}}}}}}},"/api/v2/sites/{id}/actions/reindex":{"post":{"summary":"Reindex","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/sites/{id}/actions/enable_chat_bot":{"post":{"summary":"Enable AI search and interactions","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/sites/{id}/actions/disable_chat_bot":{"post":{"summary":"Disable AI search and interactions","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/sites/{id}/actions/grant_access":{"post":{"summary":"Add member","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"Customer"},"send_login_email":{"type":"boolean"}}}}}}}},"/api/v2/sites/{id}/actions/delete":{"post":{"summary":"Delete Site","tags":["Sites"],"x-simplero-resource-type":"sites","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this site's pages, courses, and landing pages first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/split_test_pages":{"post":{"summary":"Create a split test page","tags":["Split Test Pages"],"x-simplero-resource-type":"split_test_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SplitTestPage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Adds a variant to a split test by copying a page. Only while the split test is in setup.\n\n`page_id` is the page to copy: a site page for a site split test, otherwise a landing page from\nthe split test's list, product, or (for an account-level test) the account's landing pages.\nThe copy is hidden from visitors outside the split test. The new variant starts with weight 0;\nset weights with the split test's `page_weights`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"split_test_id":{"type":"integer","description":"The split test to add the variant to."},"page_id":{"type":"integer","description":"The landing page or site page to copy."},"name":{"type":"string","description":"Name of the variant. Defaults to the next free letter (A, B, C, ...)."}},"required":["split_test_id","page_id"]}}}}},"get":{"summary":"List split test pages","tags":["Split Test Pages"],"x-simplero-resource-type":"split_test_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SplitTestPage"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"split_test_id","in":"query","required":false,"schema":{"type":"string"}}]}},"/api/v2/split_test_pages/{id}":{"get":{"summary":"Get a split test page","tags":["Split Test Pages"],"x-simplero-resource-type":"split_test_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SplitTestPage"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a split test page","tags":["Split Test Pages"],"x-simplero-resource-type":"split_test_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SplitTestPage"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitTestPageOptional"}}}}}},"/api/v2/split_test_pages/{id}/actions/delete":{"post":{"summary":"Delete Split test page","tags":["Split Test Pages"],"x-simplero-resource-type":"split_test_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/split_test_pages/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Split Test Pages"],"x-simplero-resource-type":"split_test_pages","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/split_tests":{"get":{"summary":"List split tests","tags":["Split Tests"],"x-simplero-resource-type":"split_tests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SplitTest"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["setup","active","complete"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, status, slug)."},"description":"Search records (matches via name, status, slug)."}]}},"/api/v2/split_tests/{id}":{"get":{"summary":"Get a split test","tags":["Split Tests"],"x-simplero-resource-type":"split_tests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SplitTest"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a split test","tags":["Split Tests"],"x-simplero-resource-type":"split_tests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SplitTest"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitTestOptional"}}}}}},"/api/v2/split_tests/{id}/actions/delete":{"post":{"summary":"Delete Split test","tags":["Split Tests"],"x-simplero-resource-type":"split_tests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/split_tests/{id}/actions/set_live":{"post":{"summary":"Set live","tags":["Split Tests"],"x-simplero-resource-type":"split_tests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/split_tests/{id}/actions/choose_winner":{"post":{"summary":"Choose winner","tags":["Split Tests"],"x-simplero-resource-type":"split_tests","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"split_test_page_id":{"type":"integer"}}}}}}}},"/api/v2/step_paths/{id}":{"delete":{"summary":"Delete a split branch","tags":["Step Paths"],"x-simplero-resource-type":"step_paths","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes a branch from its split, together with every step in it. Contacts waiting in those steps move on to the\nstep after the split. In a split test the remaining branches keep their percentages and the last one takes the\nfreed share.\n\nOtherwise can't be deleted, nor a conditional split's last other branch, nor a split test's second-to-last branch:\ndelete the split step instead.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]},"get":{"summary":"Get a split branch","tags":["Step Paths"],"x-simplero-resource-type":"step_paths","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/StepPath"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a split branch","tags":["Step Paths"],"x-simplero-resource-type":"step_paths","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/StepPath"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepPathOptional"}}}}}},"/api/v2/step_paths":{"get":{"summary":"List split branches","tags":["Step Paths"],"x-simplero-resource-type":"step_paths","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StepPath"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]},"post":{"summary":"Create a split branch","tags":["Step Paths"],"x-simplero-resource-type":"step_paths","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/StepPath"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepPath"}}}}}},"/api/v2/step_paths/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Step Paths"],"x-simplero-resource-type":"step_paths","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}":{"delete":{"summary":"Delete a automation step","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Removes a step from its automation. The steps after it move up to follow the step before it.\nContacts currently waiting in the step continue from the next step, or finish if there is none.\n\nRefused while a \"Go to step\" step outside it (or outside a deleted split's branches) jumps to it:\nchange or delete that step first.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]},"get":{"summary":"Get a automation step","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Step"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a automation step","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Step"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepOptional"}}}}}},"/api/v2/steps":{"get":{"summary":"List automation steps","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Step"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"automation_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a automation step","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Step"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Step"}}}}}},"/api/v2/steps/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/move":{"post":{"summary":"Move","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"after_step_id":{"type":"integer","description":"Step"},"before_step_id":{"type":"integer","description":"Step"},"into_step_path_id":{"type":"integer","description":"StepPath"}}}}}}}},"/api/v2/steps/{id}/actions/place_in_time_order":{"post":{"summary":"Move into place","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/enable":{"post":{"summary":"Enable","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/disable":{"post":{"summary":"Disable","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/skip_if_wait_exceeded":{"post":{"summary":"Skip if late","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/dont_skip_if_wait_exceeded":{"post":{"summary":"Don't skip if late","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/duplicate_steps":{"post":{"summary":"Duplicate","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/copy_to_automation":{"post":{"summary":"Copy to another automation","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"automation_id":{"type":"integer","description":"Automation"}}}}}}}},"/api/v2/steps/{id}/actions/delete_steps":{"post":{"summary":"Delete","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/continue_flows_now":{"post":{"summary":"Continue waiting contacts now","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/steps/{id}/actions/move_flows":{"post":{"summary":"Move contacts in this step to another step","tags":["Steps"],"x-simplero-resource-type":"steps","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"destination_step_id":{"type":"integer","description":"Step"}}}}}}}},"/api/v2/style_guides":{"get":{"summary":"List style guides","tags":["Style Guides"],"x-simplero-resource-type":"style_guides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StyleGuide"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"used","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name)."},"description":"Search records (matches via name)."}]}},"/api/v2/style_guides/{id}":{"get":{"summary":"Get a style guide","tags":["Style Guides"],"x-simplero-resource-type":"style_guides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/StyleGuide"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a style guide","tags":["Style Guides"],"x-simplero-resource-type":"style_guides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/StyleGuide"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StyleGuideOptional"}}}}}},"/api/v2/style_guides/{id}/actions/delete":{"post":{"summary":"Delete Style guide","tags":["Style Guides"],"x-simplero-resource-type":"style_guides","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nOnly an unused style guide can be deleted, and the account must keep at least one style guide.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions":{"get":{"summary":"List list subscriptions","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Subscription"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"landing_page_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"affiliate_link_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"track","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"first_activated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"unsubscribed_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"first_names","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"last_name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"email","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"unengaged_between","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"tag_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"do_not_contact","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"email_verification_status","in":"query","required":false,"schema":{"type":"string"}},{"name":"utm_campaign","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_campaign_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_campaign_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_content_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_medium_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_source_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_term_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_adgroup_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword_first","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"utm_keyword_last","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"lifetime_value_cents_excl_tax","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"list_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via ip_address, customer - first_names, last_name, email)."},"description":"Search records (matches via ip_address, customer - first_names, last_name, email)."}]}},"/api/v2/subscriptions/{id}":{"get":{"summary":"Get a list subscription","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Subscription"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a list subscription","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Subscription"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionOptional"}}}}}},"/api/v2/subscriptions/{id}/actions/unsubscribe":{"post":{"summary":"Unsubscribe","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/request_confirmation":{"post":{"summary":"Resend email asking for confirmation","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/suspend":{"post":{"summary":"Suspend","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/resume":{"post":{"summary":"Resume","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/force_activate":{"post":{"summary":"Force activate","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/resubscribe":{"post":{"summary":"Resubscribe","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/resend_welcome":{"post":{"summary":"Resend welcome email","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/set_auto_responder_start_at":{"post":{"summary":"Set auto responder start at","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"start_at":{"type":"string","format":"date-time"}}}}}}}},"/api/v2/subscriptions/{id}/actions/set_affiliate":{"post":{"summary":"Set Affiliate for List Subscriber","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"affiliate_id":{"type":"integer","description":"Affiliate"}}}}}}}},"/api/v2/subscriptions/{id}/actions/remove_affiliate":{"post":{"summary":"Remove Affiliate for List Subscriber","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/subscriptions/{id}/actions/disassociate_from_funnel":{"post":{"summary":"Disassociate from funnel","tags":["Subscriptions"],"x-simplero-resource-type":"subscriptions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/survey_responses":{"get":{"summary":"List survey responses","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SurveyResponse"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"funnel_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"funnel_step_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"is_bad_name","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"spam","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"draft","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"survey_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via first_names, last_name, email, customer - first_names, last_name, email)."},"description":"Search records (matches via first_names, last_name, email, customer - first_names, last_name, email)."}]},"post":{"summary":"Create a survey response","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SurveyResponse"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyResponse"}}}}}},"/api/v2/survey_responses/{id}":{"get":{"summary":"Get a survey response","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SurveyResponse"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a survey response","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SurveyResponse"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyResponseOptional"}}}}}},"/api/v2/survey_responses/{id}/actions/post_to_conversation":{"post":{"summary":"Post message to conversation","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"},"message":{"type":"string"}}}}}}}},"/api/v2/survey_responses/{id}/actions/add_to_conversation":{"post":{"summary":"Add to conversation","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/survey_responses/{id}/actions/associate_contact":{"post":{"summary":"Associate with Contact","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"Customer"}}}}}}}},"/api/v2/survey_responses/{id}/actions/disassociate_from_funnel":{"post":{"summary":"Disassociate from funnel","tags":["Survey Responses"],"x-simplero-resource-type":"survey_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/surveys":{"get":{"summary":"List surveys","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Survey"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via internal_name, title, description)."},"description":"Search records (matches via internal_name, title, description)."}]},"post":{"summary":"Create a survey","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Survey"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Survey"}}}}}},"/api/v2/surveys/{id}":{"get":{"summary":"Get a survey","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Survey"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a survey","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Survey"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyOptional"}}}}}},"/api/v2/surveys/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/surveys/{id}/actions/create_automation_from_template":{"post":{"summary":"Create automation from template","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the new automation"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Creates an automation that starts on this record, built from one of its automation_templates. Answers: freebie_offer takes asset_ids (comma-separated files, added to the list Content; not needed when the list already has Content), product_id to sell, and style 'story' (Soap Opera, 5 emails) or 'plain' (Reviver, 6 emails); freebie_offer and email_sequence can instead end on scheduling_link_id (a call: the automation stops when they book) or survey_id (an application: it stops when they respond); product_id wins over both. event_reminders_replay takes replay_link (an https:// link or a simplero:// link to one of your pages; else the event page shows the replay) and product_id; email_sequence takes count (1-100) and days (at least count; default twice count), the first email now and the last on the last day, and product_id: the emails stop when they buy it. event_reminders and event_reminders_replay take reminders, a comma-separated list of 1_week, 3_days, 1_day, 1_hour, 10_minutes (default '1_day,1_hour,10_minutes'). Freebie and event templates write their emails with AI in the background; the automation is frozen (on_hold) until they are written. They also take locale, the language the emails are written in (default: the account customer_locale); about, what it's about, which AI follows first; and writer: 'ai' (default) or 'me' for just the structure, with each email saying what to write, left frozen.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string"},"name":{"type":"string"},"asset_ids":{"type":"string"},"asset_id":{"type":"integer","description":"Asset"},"product_id":{"type":"integer","description":"Product"},"scheduling_link_id":{"type":"integer","description":"SchedulingLink"},"survey_id":{"type":"integer","description":"Survey"},"style":{"type":"string"},"locale":{"type":"string"},"replay_link":{"type":"string"},"reminders":{"type":"string"},"count":{"type":"string"},"days":{"type":"string"},"writer":{"type":"string"},"about":{"type":"string"}}}}}}}},"/api/v2/surveys/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/surveys/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/surveys/{id}/actions/star":{"post":{"summary":"Star","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/surveys/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/surveys/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/surveys/{id}/actions/delete":{"post":{"summary":"Delete Survey","tags":["Surveys"],"x-simplero-resource-type":"surveys","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.\n\nDelete this survey's fields first. The delete fails while any of them still exist.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/taggings":{"get":{"summary":"List tagged contacts","tags":["Taggings"],"x-simplero-resource-type":"taggings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Tagging"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"tag_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a tagged contact","tags":["Taggings"],"x-simplero-resource-type":"taggings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Tagging"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tagging"}}}}}},"/api/v2/taggings/{id}":{"get":{"summary":"Get a tagged contact","tags":["Taggings"],"x-simplero-resource-type":"taggings","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Tagging"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/tags":{"get":{"summary":"List tags","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"shown_in_admin","in":"query","required":false,"schema":{"type":"string","enum":["starred","unstarred","all"]}},{"name":"owner_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via id, name)."},"description":"Search records (matches via id, name)."}]},"post":{"summary":"Create a tag","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Tag"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}}}},"/api/v2/tags/{id}":{"get":{"summary":"Get a tag","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Tag"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a tag","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Tag"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagOptional"}}}}}},"/api/v2/tags/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/tags/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/tags/{id}/actions/star":{"post":{"summary":"Star","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tags/{id}/actions/unstar":{"post":{"summary":"Unstar","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tags/{id}/actions/rename":{"post":{"summary":"Rename","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}}}}}}}},"/api/v2/tags/{id}/actions/delete":{"post":{"summary":"Delete Tag","tags":["Tags"],"x-simplero-resource-type":"tags","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves taggings, tagging associations, course content tag requirements, action arguments, triggers and segment collections. Tagged contacts are kept.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tasks":{"get":{"summary":"List tasks","tags":["Tasks"],"x-simplero-resource-type":"tasks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":[0,1,2]}},{"name":"due_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"assignee_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, description, customer - first_names, last_name)."},"description":"Search records (matches via title, description, customer - first_names, last_name)."}]}},"/api/v2/tasks/{id}":{"get":{"summary":"Get a task","tags":["Tasks"],"x-simplero-resource-type":"tasks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Task"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/tasks/{id}/actions/delete":{"post":{"summary":"Delete Task","tags":["Tasks"],"x-simplero-resource-type":"tasks","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this task without deleting its contact or related object.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tax_regions/actions/reset":{"post":{"summary":"Reset tax regions to the defaults","tags":["Tax Regions"],"x-simplero-resource-type":"tax_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TaxRegion"}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes every tax region (subregions too) and re-creates the defaults for the account's home country,\nthe same as \"Reset all tax settings\" in the admin. Also resets the account's `tax_percent` and `tax_strategy`.\nExisting subscriptions keep their current rate until their address changes. Requires `{\"confirm\": true}`.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","description":"Must be true."}},"required":["confirm"]}}}}}},"/api/v2/tax_regions":{"get":{"summary":"List tax regions","tags":["Tax Regions"],"x-simplero-resource-type":"tax_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TaxRegion"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"country_code","in":"query","required":false,"schema":{"type":"string"}},{"name":"paid_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"region_code","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via country_code, region_code, tax_name)."},"description":"Search records (matches via country_code, region_code, tax_name)."}]},"post":{"summary":"Create a tax region","tags":["Tax Regions"],"x-simplero-resource-type":"tax_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TaxRegion"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxRegion"}}}}}},"/api/v2/tax_regions/{id}":{"get":{"summary":"Get a tax region","tags":["Tax Regions"],"x-simplero-resource-type":"tax_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TaxRegion"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a tax region","tags":["Tax Regions"],"x-simplero-resource-type":"tax_regions","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TaxRegion"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxRegionOptional"}}}}}},"/api/v2/testimonials":{"get":{"summary":"List testimonials","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Testimonial"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"published","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"rating","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NumericFilter"},"style":"deepObject","explode":true},{"name":"author_name","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"author_email","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"product_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"bot_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"with_attachment","in":"query","required":false,"schema":{"type":"string","enum":["with_video","with_audio","with_image","with_any_attachment"]}},{"name":"permission_given_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"permission_given","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"aspect_ratio","in":"query","required":false,"schema":{"type":"string","enum":["ratio_16_9","ratio_9_16","ratio_4_5","ratio_5_4","ratio_4_3","ratio_3_4","square","portrait","landscape"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via author_name, author_email, author_title, author_url, title, body)."},"description":"Search records (matches via author_name, author_email, author_title, author_url, title, body)."}]},"post":{"summary":"Create a testimonial","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Testimonial"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Testimonial"}}}}}},"/api/v2/testimonials/{id}":{"get":{"summary":"Get a testimonial","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Testimonial"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a testimonial","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Testimonial"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestimonialOptional"}}}}}},"/api/v2/testimonials/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/testimonials/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/testimonials/{id}/actions/publish":{"post":{"summary":"Publish","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/testimonials/{id}/actions/unpublish":{"post":{"summary":"Unpublish","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/testimonials/{id}/actions/delete":{"post":{"summary":"Delete Testimonial","tags":["Testimonials"],"x-simplero-resource-type":"testimonials","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves the testimonial and its attachments.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/ticket_comments":{"get":{"summary":"List ticket comments","tags":["Ticket Comments"],"x-simplero-resource-type":"ticket_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TicketComment"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"ticket_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a ticket comment","tags":["Ticket Comments"],"x-simplero-resource-type":"ticket_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TicketComment"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketComment"}}}}}},"/api/v2/ticket_comments/{id}":{"get":{"summary":"Get a ticket comment","tags":["Ticket Comments"],"x-simplero-resource-type":"ticket_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TicketComment"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/ticket_comments/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Ticket Comments"],"x-simplero-resource-type":"ticket_comments","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets":{"get":{"summary":"List tickets","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Ticket"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"facet_value_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"pipeline_stage_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","waiting","closed"]}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"last_comment_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"pipeline_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"track","in":"query","required":false,"schema":{"$ref":"#/components/schemas/StringFilter"},"style":"deepObject","explode":true},{"name":"assignee_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"comment_poster_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"submitter_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"submitting_account_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"signup_offer","in":"query","required":false,"schema":{"type":"string"}},{"name":"rating","in":"query","required":false,"schema":{"type":"string"}},{"name":"has_nps_score","in":"query","required":false,"schema":{"type":"string","enum":[1]}},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"feedback_for_bot","in":"query","required":false,"schema":{"type":"string"}},{"name":"lead_status","in":"query","required":false,"schema":{"type":"string","enum":["customers","leads"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via subject, body, submitter - first_names, last_name, email, submitting_account - name, handle)."},"description":"Search records (matches via subject, body, submitter - first_names, last_name, email, submitting_account - name, handle)."}]},"post":{"summary":"Create a ticket","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Ticket"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ticket"}}}}}},"/api/v2/tickets/{id}":{"get":{"summary":"Get a ticket","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Ticket"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a ticket","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Ticket"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketOptional"}}}}}},"/api/v2/tickets/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/add_facet_values":{"post":{"summary":"Add facet values","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/tickets/{id}/actions/remove_facet_values":{"post":{"summary":"Remove facet values","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"FacetValue"}}}}}}}},"/api/v2/tickets/{id}/actions/move_to_stage":{"post":{"summary":"Move to pipeline stage","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"integer","description":"PipelineStage"}}}}}}}},"/api/v2/tickets/{id}/actions/move_to_pipeline":{"post":{"summary":"Move to pipeline","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pipeline_stage_id":{"type":"integer","description":"PipelineStage"}}}}}}}},"/api/v2/tickets/{id}/actions/add_comment":{"post":{"summary":"Add comment","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"string"},"internal":{"type":"boolean"},"poster_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/tickets/{id}/actions/unlock":{"post":{"summary":"Unlock","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/delete":{"post":{"summary":"Delete","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/mark_unread":{"post":{"summary":"Mark as unread by assignee","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/mark_read":{"post":{"summary":"Mark as read by assignee","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/turn_on_reassign_on_reply":{"post":{"summary":"Turn on reassign to default assignee on reply","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/turn_off_reassign_on_reply":{"post":{"summary":"Turn off reassign to default assignee on reply","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/add_submitter":{"post":{"summary":"Add submitter","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"Customer"}}}}}}}},"/api/v2/tickets/{id}/actions/remove_submitter":{"post":{"summary":"Remove submitter","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"Customer"}}}}}}}},"/api/v2/tickets/{id}/actions/assign_to_me":{"post":{"summary":"Assign to me","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/reassign":{"post":{"summary":"Reassign","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/tickets/{id}/actions/exclude_from_csat":{"post":{"summary":"Exclude from CSAT reporting","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/close_silently":{"post":{"summary":"Close without requesting a review","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/tickets/{id}/actions/remove_facet":{"post":{"summary":"Remove a facet","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_id":{"type":"integer","description":"FacetValue"}}}}}}}},"/api/v2/tickets/{id}/actions/add_facet":{"post":{"summary":"Add a facet","tags":["Tickets"],"x-simplero-resource-type":"tickets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"facet_value_id":{"type":"integer","description":"FacetValue"}}}}}}}},"/api/v2/transactional_emails":{"get":{"summary":"List transactional emails","tags":["Transactional Emails"],"x-simplero-resource-type":"transactional_emails","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TransactionalEmail"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"recipient_id","in":"query","required":false,"schema":{"type":"integer"}},{"name":"customer_id","in":"query","required":false,"schema":{"type":"integer"}}]}},"/api/v2/transactional_emails/{id}":{"get":{"summary":"Get a transactional email","tags":["Transactional Emails"],"x-simplero-resource-type":"transactional_emails","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TransactionalEmail"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/triggers/available":{"get":{"summary":"List available trigger events for an owner type","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Event id — pass as `event` when creating a trigger."},"title":{"type":"string","description":"Human-readable title of the event."}},"required":["id","title"]}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"description":"Returns the event ids and titles available for a given `owner_type` (e.g. `Tag`, `Link`,\n`Account`). Omit `owner_type` to list events across every owner type. Includes both\ntyped-registry events and legacy events that have not been migrated yet.\n","parameters":[{"name":"owner_type","in":"query","required":false,"schema":{"type":"string","description":"Model name the trigger fires on, e.g. `Tag`. Omit to list events for every owner type."},"description":"Model name the trigger fires on, e.g. `Tag`. Omit to list events for every owner type."}]}},"/api/v2/triggers/detail":{"get":{"summary":"Get the typed args schema for a trigger event","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"The event id."},"title":{"type":"string","description":"Human-readable title of the event."},"args":{"type":"object","additionalProperties":{"type":"object"},"description":"Map of arg name → JSON schema describing its type. Empty for legacy events."}},"required":["id","title","args"]}}}}}},"401":{"description":"Unauthorized"}},"description":"Returns the title and (when available) the typed `args` schema for an event id. Legacy\nevents that were never migrated to the typed event registry return an empty `args`.\n","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","description":"Event id, from `GET triggers/available`."},"description":"Event id, from `GET triggers/available`."}]}},"/api/v2/triggers":{"get":{"summary":"List triggers","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"event","in":"query","required":false,"schema":{"type":"string"}},{"name":"list_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"tag_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"owner_type","in":"query","required":false,"schema":{"type":"string","enum":["Account","AffiliateProgram","Course","CourseLesson","FieldOption","LandingPage","Link","List","Mailing","Product","Price","ProductVariant","Subscription","SchedulingLink","Tag","Worksheet","PipelineStage","FunnelStep"]}},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"action_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via id, owner_type, event, url, value, notes, action - action)."},"description":"Search records (matches via id, owner_type, event, url, value, notes, action - action)."}]},"post":{"summary":"Create a trigger","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Trigger"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}}}},"/api/v2/triggers/{id}":{"get":{"summary":"Get a trigger","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Trigger"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a trigger","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Trigger"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerOptional"}}}}}},"/api/v2/triggers/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/triggers/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/triggers/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/triggers/{id}/actions/delete":{"post":{"summary":"Delete Trigger","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/triggers/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Triggers"],"x-simplero-resource-type":"triggers","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/upsells":{"get":{"summary":"List upsells","tags":["Upsells"],"x-simplero-resource-type":"upsells","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Upsell"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a upsell","tags":["Upsells"],"x-simplero-resource-type":"upsells","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Upsell"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upsell"}}}}}},"/api/v2/upsells/{id}":{"get":{"summary":"Get a upsell","tags":["Upsells"],"x-simplero-resource-type":"upsells","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Upsell"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a upsell","tags":["Upsells"],"x-simplero-resource-type":"upsells","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Upsell"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsellOptional"}}}}}},"/api/v2/upsells/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Upsells"],"x-simplero-resource-type":"upsells","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/upsells/{id}/actions/delete":{"post":{"summary":"Delete Upsell","tags":["Upsells"],"x-simplero-resource-type":"upsells","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/verified_emails":{"get":{"summary":"List senders","tags":["Verified Emails"],"x-simplero-resource-type":"verified_emails","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VerifiedEmail"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."}]}},"/api/v2/verified_emails/{id}":{"get":{"summary":"Get a sender","tags":["Verified Emails"],"x-simplero-resource-type":"verified_emails","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/VerifiedEmail"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/worksheet_responses":{"get":{"summary":"List completed worksheets","tags":["Worksheet Responses"],"x-simplero-resource-type":"worksheet_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorksheetResponse"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"spam","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"tag_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]}}},"style":"deepObject","explode":true},{"name":"worksheet_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records."},"description":"Search records."}]}},"/api/v2/worksheet_responses/{id}":{"get":{"summary":"Get a completed worksheet","tags":["Worksheet Responses"],"x-simplero-resource-type":"worksheet_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WorksheetResponse"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]}},"/api/v2/worksheet_responses/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Worksheet Responses"],"x-simplero-resource-type":"worksheet_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheet_responses/{id}/actions/post_to_conversation":{"post":{"summary":"Post message to conversation","tags":["Worksheet Responses"],"x-simplero-resource-type":"worksheet_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"},"message":{"type":"string"}}}}}}}},"/api/v2/worksheet_responses/{id}/actions/add_to_conversation":{"post":{"summary":"Add to conversation","tags":["Worksheet Responses"],"x-simplero-resource-type":"worksheet_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","description":"User"}}}}}}}},"/api/v2/worksheet_responses/{id}/actions/delete":{"post":{"summary":"Delete Completed worksheet","tags":["Worksheet Responses"],"x-simplero-resource-type":"worksheet_responses","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheet_sections":{"get":{"summary":"List worksheet sections","tags":["Worksheet Sections"],"x-simplero-resource-type":"worksheet_sections","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorksheetSection"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"worksheet_id","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"summary":"Create a worksheet section","tags":["Worksheet Sections"],"x-simplero-resource-type":"worksheet_sections","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WorksheetSection"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorksheetSection"}}}}}},"/api/v2/worksheet_sections/{id}":{"get":{"summary":"Get a worksheet section","tags":["Worksheet Sections"],"x-simplero-resource-type":"worksheet_sections","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WorksheetSection"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a worksheet section","tags":["Worksheet Sections"],"x-simplero-resource-type":"worksheet_sections","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WorksheetSection"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorksheetSectionOptional"}}}}}},"/api/v2/worksheet_sections/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Worksheet Sections"],"x-simplero-resource-type":"worksheet_sections","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheet_sections/{id}/actions/delete":{"post":{"summary":"Delete Worksheet section","tags":["Worksheet Sections"],"x-simplero-resource-type":"worksheet_sections","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheet_sections/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Worksheet Sections"],"x-simplero-resource-type":"worksheet_sections","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"ID of the copy"}}}}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheets":{"get":{"summary":"List worksheets","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Worksheet"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"created_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"updated_at","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DateFilter"},"style":"deepObject","explode":true},{"name":"label_id","in":"query","required":false,"schema":{"type":"object","properties":{"value":{"type":"integer"},"operator":{"type":"string","enum":["any","all","none"]},"exclude":{"type":"integer"}}},"style":"deepObject","explode":true},{"name":"active","in":"query","required":false,"schema":{"type":"string","enum":["1","0"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via title, internal_name, description)."},"description":"Search records (matches via title, internal_name, description)."}]},"post":{"summary":"Create a worksheet","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Worksheet"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Worksheet"}}}}}},"/api/v2/worksheets/{id}":{"get":{"summary":"Get a worksheet","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Worksheet"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a worksheet","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Worksheet"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorksheetOptional"}}}}}},"/api/v2/worksheets/{id}/actions/resurrect":{"post":{"summary":"Resurrect","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheets/{id}/actions/add_labels":{"post":{"summary":"Add labels","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/worksheets/{id}/actions/remove_label":{"post":{"summary":"Remove label","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"},"description":"Label"}}}}}}}},"/api/v2/worksheets/{id}/actions/activate":{"post":{"summary":"Activate","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheets/{id}/actions/deactivate":{"post":{"summary":"Deactivate","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheets/{id}/actions/delete":{"post":{"summary":"Delete Worksheet","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Deletes the record the same way deleting it in the admin does, with the same checks and side effects. Once deleted, the record is no longer found (404), or the action answers 422.\n\nA soft-deleted record can be restored with `actions/resurrect`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/worksheets/{id}/actions/duplicate":{"post":{"summary":"Duplicate","tags":["Worksheets"],"x-simplero-resource-type":"worksheets","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/wysiwyg_content_templates":{"get":{"summary":"List macros","tags":["Wysiwyg Content Templates"],"x-simplero-resource-type":"wysiwyg_content_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WysiwygContentTemplate"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","nullable":true,"description":"Current page number. Nil when paginating via `after`."},"per_page":{"type":"integer","description":"Results per page"},"total":{"type":"integer","nullable":true,"description":"Total number of records. Nil when paginating via `after` — counting is skipped so cursor pagination stays cheap on large tables."},"total_pages":{"type":"integer","nullable":true,"description":"Total number of pages. Nil when paginating via `after`."},"next_after":{"type":"integer","nullable":true,"description":"Id of the last record in this page. Pass as `after` on the next request for constant-cost pagination regardless of depth. Nil when the page was empty."}}}}}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Unauthorized"}},"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number (default 1). Ignored when `after` is given."},"description":"Page number (default 1). Ignored when `after` is given."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Results per page (1–100, default 20)"},"description":"Results per page (1–100, default 20)"},{"name":"after","in":"query","required":false,"schema":{"type":"integer","description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},"description":"Cursor pagination: return records with id greater than this value (use the previous response's `pagination.next_after`), ordered by id. Constant cost regardless of depth, unlike a deep `page` value on a large table — prefer it once you are paging past the first few pages. Takes precedence over `page` when both are given, and always sorts by id ascending, overriding any other ordering param this resource supports."},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search records (matches via name, body)."},"description":"Search records (matches via name, body)."}]},"post":{"summary":"Create a macro","tags":["Wysiwyg Content Templates"],"x-simplero-resource-type":"wysiwyg_content_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WysiwygContentTemplate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WysiwygContentTemplate"}}}}}},"/api/v2/wysiwyg_content_templates/{id}":{"get":{"summary":"Get a macro","tags":["Wysiwyg Content Templates"],"x-simplero-resource-type":"wysiwyg_content_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WysiwygContentTemplate"}}}}}},"404":{"description":"Not found"},"401":{"description":"Unauthorized"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}]},"patch":{"summary":"Update a macro","tags":["Wysiwyg Content Templates"],"x-simplero-resource-type":"wysiwyg_content_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WysiwygContentTemplate"}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WysiwygContentTemplateOptional"}}}}}},"/api/v2/wysiwyg_content_templates/{id}/actions/delete":{"post":{"summary":"Delete Macro","tags":["Wysiwyg Content Templates"],"x-simplero-resource-type":"wysiwyg_content_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"description":"Permanently deletes this record with the same checks as the admin. This cannot be undone. An audit snapshot is retained for 13 months at `GET /api/v2/deletion_logs`; it does not restore deleted records or their dependents.\n\nRemoves this reusable rich-text template.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}},"/api/v2/wysiwyg_content_templates/{id}/actions/record_usage":{"post":{"summary":"Record usage","tags":["Wysiwyg Content Templates"],"x-simplero-resource-type":"wysiwyg_content_templates","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}}},"headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key must be 1 to 255 characters and not only spaces; Idempotency-Key was used for a different request.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"404":{"description":"Not found","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"401":{"description":"Unauthorized","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Your permissions changed after this Idempotency-Key was used, so the saved response can't be shown. The original request may already have taken effect: check its result before sending the request again.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"409":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: A request with this Idempotency-Key is still in progress.","headers":{"Idempotent-Replayed":{"description":"Present only when this is a saved response replayed for the same Idempotency-Key and request.","schema":{"type":"string","enum":["true"]}}}},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}}}}}},"description":"With Idempotency-Key: Idempotency-Key could not be checked. Retry the request with the same key."}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key for this operation. Reuse it with the exact same request to replay the saved response for 24 hours. Must not be only whitespace.","schema":{"type":"string","minLength":1,"maxLength":255}}]}}},"components":{"securitySchemes":{"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key from Settings \u003e Integrations"}},"schemas":{"AccessControl":{"type":"object","properties":{"status":{"type":"string","description":"One of `draft`, `live` or `scheduled`. Setting `live` opens it immediately; `scheduled` needs a `starts_at` in the future."},"access":{"type":"string","enum":["open","gated","dripped"],"description":"Who gets in once it is live: `open` to anyone who can reach its container, `gated` to those granted it, `dripped` a set number of days after they got access."},"starts_at":{"type":"string","format":"date-time","description":"When it opens. In the future means scheduled; in the past is the day it went live."},"ends_at":{"type":"string","format":"date-time","description":"When it closes again. Leave out for no end."},"drip_days_count":{"type":"integer","description":"Days after someone gets access to the container before this opens. Used when `access` is `dripped`."}},"required":["access"]},"AccessGate":{"type":"object","properties":{"mode":{"type":"string","enum":["none","message","lesson_teaser","list_signup","product_purchase","product_variant_purchase","url"],"description":"What the visitor has to do to keep going: join a list, buy a product, buy a specific product variant, or follow a link. `none` hides the gated thing entirely; `message` shows the copy with no way through."},"button_url":{"type":"string","format":"uri","description":"Where the gate's button links. Used when `mode` is `url`."},"headline":{"type":"string","description":"Heading on the gate, e.g. \"Enjoying the conversation?\"."},"copy":{"type":"string","description":"Body text under the headline."},"button_label":{"type":"string","description":"Label on the gate's button, e.g. \"Continue chatting\"."},"list":{"$ref":"#/components/schemas/List","readOnly":true,"description":"List the visitor is subscribed to. Used when `mode` is `list_signup`."},"list_id":{"type":"integer","description":"List the visitor is subscribed to. Used when `mode` is `list_signup`."},"product":{"$ref":"#/components/schemas/Product","readOnly":true,"description":"Product the visitor buys. Used when `mode` is `product_purchase`."},"product_id":{"type":"integer","description":"Product the visitor buys. Used when `mode` is `product_purchase`."},"product_variant":{"$ref":"#/components/schemas/ProductVariant","readOnly":true,"description":"Product variant the visitor buys. Used when `mode` is `product_variant_purchase`."},"product_variant_id":{"type":"integer","description":"Product variant the visitor buys. Used when `mode` is `product_variant_purchase`."}},"required":["mode"]},"AccessGrant":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"resource":{"type":"object","readOnly":true},"resource_id":{"type":"integer","readOnly":true},"resource_type":{"type":"string","readOnly":true},"intermediary":{"type":"object","readOnly":true},"intermediary_id":{"type":"integer","readOnly":true},"intermediary_type":{"type":"string","readOnly":true},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"enabled":{"type":"boolean"},"note":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["customer_id","resource_id","resource_type","created_at","updated_at"]},"AccessGrantOptional":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"enabled":{"type":"boolean"},"note":{"type":"string"}}},"AccessRule":{"type":"object","properties":{"delay_count":{"type":"integer"},"delay_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"provider":{"type":"object"},"provider_id":{"type":"integer"},"provider_type":{"type":"string"},"resource":{"type":"object"},"resource_id":{"type":"integer"},"resource_type":{"type":"string"},"enabled":{"type":"boolean","readOnly":true},"badge":{"type":"string"},"product_variants":{"type":"array","items":{"$ref":"#/components/schemas/ProductVariant"},"readOnly":true},"product_variant_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["delay_unit","provider_id","provider_type","resource_id","resource_type","created_at","updated_at"]},"AccessRuleOptional":{"type":"object","properties":{"delay_count":{"type":"integer"},"delay_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"badge":{"type":"string"},"product_variant_ids":{"type":"array","items":{"type":"integer"}}}},"AccountCurrency":{"type":"object","properties":{"currency_code":{"type":"string","readOnly":true},"currency_name":{"type":"string","readOnly":true},"base_currency_code":{"type":"string","readOnly":true},"exchange_rate":{"type":"number","readOnly":true,"description":"Value of one unit in the account base currency, rounded as in Settings. Null when no rate is known."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["currency_code","created_at","updated_at"]},"Action":{"type":"object","properties":{"relative_time_count":{"type":"integer"},"relative_time_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"action":{"type":"string","description":"Action identifier in the form '\u003cModel\u003e-\u003caction_name\u003e', e.g. 'Customer-library_mailing'."},"args":{"type":"object","description":"Arguments for the action. The exact shape depends on `action` — e.g. `Customer-library_mailing` takes `{ mailing_id }`, and `Customer-add_tag` / `Customer-remove_tag` take `{ tag_ids }` (or one `tag_id`). Those two return `tag_ids`, plus `tag_id` while there is only one tag."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["action","created_at","updated_at"]},"ActionOptional":{"type":"object","properties":{"relative_time_count":{"type":"integer"},"relative_time_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"action":{"type":"string","description":"Action identifier in the form '\u003cModel\u003e-\u003caction_name\u003e', e.g. 'Customer-library_mailing'."},"args":{"type":"object","description":"Arguments for the action. The exact shape depends on `action` — e.g. `Customer-library_mailing` takes `{ mailing_id }`, and `Customer-add_tag` / `Customer-remove_tag` take `{ tag_ids }` (or one `tag_id`). Those two return `tag_ids`, plus `tag_id` while there is only one tag."}}},"AdminRole":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"system_key":{"type":"string"}}},"Administratorship":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"admin_role":{"$ref":"#/components/schemas/AdminRole"},"admin_role_id":{"type":"integer"},"invitation":{"$ref":"#/components/schemas/Invitation"},"invitation_id":{"type":"integer"},"enabled":{"type":"boolean"},"ticket_assignee":{"type":"boolean"},"ticket_sms_alerts":{"type":"boolean"},"show_on_ticket":{"type":"boolean"},"can_self_grant_super_admin":{"type":"boolean"},"num_logins":{"type":"integer","readOnly":true},"last_login_at":{"type":"string","format":"date-time","readOnly":true},"second_to_last_login_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"calendar_providers":{"type":"array","items":{"type":"string"},"readOnly":true,"description":"Calendar services this admin connected for scheduling: google, microsoft, ical or icloud. Empty when none is connected."},"default_calendar":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"provider":{"type":"string","description":"google, microsoft, ical or icloud"}},"required":["id","name","provider"],"nullable":true,"readOnly":true,"description":"Calendar that bookings on this admin's scheduling links go to, unless a link sets its own calendar_id. Null when no connected calendar is set."}},"required":["admin_role_id"]},"Affiliate":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}},"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"upstream_affiliate":{"$ref":"#/components/schemas/Affiliate","readOnly":true},"upstream_affiliate_id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string","format":"email"},"url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"handle":{"type":"string"},"list_size":{"type":"integer"},"paypal_email":{"type":"string","format":"email"},"phone_number":{"type":"string"},"tax_id":{"type":"string"},"company_name":{"type":"string"},"affiliate_program":{"$ref":"#/components/schemas/AffiliateProgram","readOnly":true},"affiliate_program_id":{"type":"integer"},"first_names":{"type":"string"},"last_name":{"type":"string"},"country_code":{"type":"string"},"coupon_code":{"type":"string"},"state":{"type":"string"},"commission_type":{"type":"string","enum":["inherit","percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"personal_or_corporate":{"type":"string"},"address":{"type":"string"},"address_2":{"type":"string"},"city":{"type":"string"},"postal_code":{"type":"string"},"region_code":{"type":"string"},"tax_percent":{"type":"number"},"phone_country_code":{"type":"string"},"sms_alerts":{"type":"boolean"},"wants_broadcasts":{"type":"boolean"},"recurring_charge_behavior":{"type":"string","enum":["forever","duration","inherit"],"description":"How long the affiliate earns commission on recurring charges: `forever`, for a `duration` (see `recurring_charge_duration_count` / `_unit`), or `inherit` from the program."},"documentation_approved":{"type":"boolean","readOnly":true,"description":"Set with the `approve_documentation` action; `request_documentation` asks the affiliate for it."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","name","affiliate_program_id","first_names","last_name","country_code","recurring_charge_behavior"]},"AffiliateClick":{"type":"object","properties":{"affiliate_id":{"type":"integer","readOnly":true},"affiliate_link_id":{"type":"integer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"user_id":{"type":"integer","readOnly":true},"url":{"type":"string","format":"uri","readOnly":true,"description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"path":{"type":"string","readOnly":true},"repeat":{"type":"boolean","readOnly":true},"product_id":{"type":"integer","readOnly":true},"page_id":{"type":"integer","readOnly":true},"landing_page_id":{"type":"integer","readOnly":true},"page_type":{"type":"string","enum":["not_applicable","product_sales_page","product_order_form"],"readOnly":true},"ip_address":{"type":"string","readOnly":true},"referrer_host":{"type":"string","readOnly":true,"description":"Host of the page the visitor came from, e.g. www.youtube.com. Only the host is stored, never the full referrer URL."},"utm_source":{"type":"string","readOnly":true},"utm_medium":{"type":"string","readOnly":true},"utm_campaign":{"type":"string","readOnly":true},"sub_id":{"type":"string","readOnly":true,"description":"The sub_id parameter on the affiliate link, for the affiliate's own campaign tracking."},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["affiliate_id","url","path","ip_address","created_at"]},"AffiliateLink":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"affiliate_program":{"$ref":"#/components/schemas/AffiliateProgram","readOnly":true},"affiliate_program_id":{"type":"integer"},"label":{"type":"string"},"destination":{"type":"string"},"affiliate_id":{"type":"integer"},"position":{"type":"integer","description":"Sort order within the affiliate program and affiliate, lowest first. Inserts or moves the link and shifts siblings; omit on create to insert at the top."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","affiliate_program_id","label","destination","created_at","updated_at"]},"AffiliateLinkOptional":{"type":"object","properties":{"label":{"type":"string"},"destination":{"type":"string"},"affiliate_id":{"type":"integer"},"position":{"type":"integer","description":"Sort order within the affiliate program and affiliate, lowest first. Inserts or moves the link and shifts siblings; omit on create to insert at the top."}}},"AffiliateOptional":{"type":"object","properties":{"field_value_ids":{"type":"array","items":{"type":"integer"}},"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string"},"customer_id":{"type":"integer"},"upstream_affiliate_id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string","format":"email"},"url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"handle":{"type":"string"},"list_size":{"type":"integer"},"paypal_email":{"type":"string","format":"email"},"phone_number":{"type":"string"},"tax_id":{"type":"string"},"company_name":{"type":"string"},"first_names":{"type":"string"},"last_name":{"type":"string"},"country_code":{"type":"string"},"coupon_code":{"type":"string"},"state":{"type":"string"},"commission_type":{"type":"string","enum":["inherit","percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"personal_or_corporate":{"type":"string"},"address":{"type":"string"},"address_2":{"type":"string"},"city":{"type":"string"},"postal_code":{"type":"string"},"region_code":{"type":"string"},"tax_percent":{"type":"number"},"phone_country_code":{"type":"string"},"sms_alerts":{"type":"boolean"},"wants_broadcasts":{"type":"boolean"},"recurring_charge_behavior":{"type":"string","enum":["forever","duration","inherit"],"description":"How long the affiliate earns commission on recurring charges: `forever`, for a `duration` (see `recurring_charge_duration_count` / `_unit`), or `inherit` from the program."}}},"AffiliateProgram":{"type":"object","properties":{"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"server_side_expiration_count":{"type":"integer"},"server_side_expiration_unit":{"type":"string","enum":["days","months","weeks","years"]},"cookie_expiration_count":{"type":"integer"},"cookie_expiration_unit":{"type":"string","enum":["days","months","weeks","years"]},"token":{"type":"string","readOnly":true},"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"description":{"type":"string"},"commission_type":{"type":"string","enum":["percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"tiered":{"type":"boolean"},"upstream_percentage":{"type":"integer"},"upstream_paid_by_affiliate":{"type":"boolean"},"payout_schedule":{"type":"string","enum":["manual","first_of_month","last_of_month","second_last_of_month","specific_day"]},"payout_method":{"type":"string","enum":["paypal_masspay","paypal_payouts","manual"]},"payout_day":{"type":"integer"},"minimum_payout_cents":{"type":"integer"},"require_approval":{"type":"boolean"},"require_documentation":{"type":"boolean"},"require_paypal_email":{"type":"boolean"},"allow_self_purchase":{"type":"boolean"},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"send_login_email":{"type":"boolean"},"affiliates_count":{"type":"integer","readOnly":true},"attachments_count":{"type":"integer","readOnly":true},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"readOnly":true},"attachment_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"cookie_model":{"type":"string","enum":["first","last"],"description":"Which affiliate gets credit when a visitor clicked several affiliate links: the `first` or the `last` one."},"affiliate_expiration_type":{"type":"string","enum":["cookie","duration","forever","none"]},"delay_days":{"type":"integer","description":"Days after a sale before its commission becomes payable."},"recurring_charge_behavior":{"type":"string","enum":["forever","duration"],"description":"How long affiliates earn commission on recurring charges: `forever`, or for a `duration` (see `recurring_charge_duration_count` / `_unit`)."},"show_leaderboard":{"type":"boolean"},"show_leaderboard_revenue":{"type":"boolean"},"show_leaderboard_leads":{"type":"boolean"},"show_leaderboard_units":{"type":"boolean"},"leaderboard_starts_at":{"type":"string","format":"date-time","description":"Only sales from this date on count on the leaderboard."},"terms_url":{"type":"string","format":"uri","description":"Link to the affiliate terms. When set, it is used instead of `terms`."},"terms":{"type":"string","description":"HTML content from a WYSIWYG editor"},"welcome_page":{"type":"string","description":"HTML content from a WYSIWYG editor"},"welcome_email_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"documentation_info":{"type":"string","description":"HTML content from a WYSIWYG editor"},"registration_top":{"type":"string","description":"HTML content from a WYSIWYG editor"},"registration_sidebar":{"type":"string","description":"HTML content from a WYSIWYG editor"},"registration_bottom":{"type":"string","description":"HTML content from a WYSIWYG editor"},"welcome_email_subject":{"type":"string"},"documentation_only_home":{"type":"boolean","description":"Only require tax documentation from affiliates in the account's own country."},"ask_affiliates_for_tax_info":{"type":"boolean"},"admin_email":{"type":"string","format":"email","description":"Comma-separated addresses that get notified about new affiliates."},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"broadcast_subject_prefix":{"type":"string"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"broadcast_footer":{"type":"string","description":"HTML content from a WYSIWYG editor"},"affiliate_purchase_notification":{"type":"boolean"},"affiliate_purchase_notification_subject":{"type":"string"},"affiliate_purchase_notification_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"payout_notification_subject":{"type":"string"},"payout_notification_message":{"type":"string"},"payout_notification_note":{"type":"string"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","delay_days","recurring_charge_behavior"]},"AffiliateProgramOptional":{"type":"object","properties":{"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"server_side_expiration_count":{"type":"integer"},"server_side_expiration_unit":{"type":"string","enum":["days","months","weeks","years"]},"cookie_expiration_count":{"type":"integer"},"cookie_expiration_unit":{"type":"string","enum":["days","months","weeks","years"]},"form_field_ids":{"type":"array","items":{"type":"integer"}},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"description":{"type":"string"},"commission_type":{"type":"string","enum":["percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"tiered":{"type":"boolean"},"upstream_percentage":{"type":"integer"},"upstream_paid_by_affiliate":{"type":"boolean"},"payout_schedule":{"type":"string","enum":["manual","first_of_month","last_of_month","second_last_of_month","specific_day"]},"payout_method":{"type":"string","enum":["paypal_masspay","paypal_payouts","manual"]},"payout_day":{"type":"integer"},"minimum_payout_cents":{"type":"integer"},"require_approval":{"type":"boolean"},"require_documentation":{"type":"boolean"},"require_paypal_email":{"type":"boolean"},"allow_self_purchase":{"type":"boolean"},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"send_login_email":{"type":"boolean"},"cookie_model":{"type":"string","enum":["first","last"],"description":"Which affiliate gets credit when a visitor clicked several affiliate links: the `first` or the `last` one."},"affiliate_expiration_type":{"type":"string","enum":["cookie","duration","forever","none"]},"delay_days":{"type":"integer","description":"Days after a sale before its commission becomes payable."},"recurring_charge_behavior":{"type":"string","enum":["forever","duration"],"description":"How long affiliates earn commission on recurring charges: `forever`, or for a `duration` (see `recurring_charge_duration_count` / `_unit`)."},"show_leaderboard":{"type":"boolean"},"show_leaderboard_revenue":{"type":"boolean"},"show_leaderboard_leads":{"type":"boolean"},"show_leaderboard_units":{"type":"boolean"},"leaderboard_starts_at":{"type":"string","format":"date-time","description":"Only sales from this date on count on the leaderboard."},"terms_url":{"type":"string","format":"uri","description":"Link to the affiliate terms. When set, it is used instead of `terms`."},"terms":{"type":"string","description":"HTML content from a WYSIWYG editor"},"welcome_page":{"type":"string","description":"HTML content from a WYSIWYG editor"},"welcome_email_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"documentation_info":{"type":"string","description":"HTML content from a WYSIWYG editor"},"registration_top":{"type":"string","description":"HTML content from a WYSIWYG editor"},"registration_sidebar":{"type":"string","description":"HTML content from a WYSIWYG editor"},"registration_bottom":{"type":"string","description":"HTML content from a WYSIWYG editor"},"welcome_email_subject":{"type":"string"},"documentation_only_home":{"type":"boolean","description":"Only require tax documentation from affiliates in the account's own country."},"ask_affiliates_for_tax_info":{"type":"boolean"},"admin_email":{"type":"string","format":"email","description":"Comma-separated addresses that get notified about new affiliates."},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"broadcast_subject_prefix":{"type":"string"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"broadcast_footer":{"type":"string","description":"HTML content from a WYSIWYG editor"},"affiliate_purchase_notification":{"type":"boolean"},"affiliate_purchase_notification_subject":{"type":"string"},"affiliate_purchase_notification_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"payout_notification_subject":{"type":"string"},"payout_notification_message":{"type":"string"},"payout_notification_note":{"type":"string"},"card_image_id":{"type":"integer"}}},"AgenticWorkflow":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string"},"active":{"type":"boolean"},"key":{"type":"string","description":"Machine handle a run is started by. Derived from the name when left out, and suffixed if that handle is already taken."},"description":{"type":"string","description":"What this workflow does, in one line. Shown to the bot when it picks a workflow for someone."},"instructions":{"type":"string","description":"The brief the agent is given at the start of every run. Reaches the box as instructions.md, alongside the workflow's files."},"files":{"type":"array","items":{"$ref":"#/components/schemas/AgenticWorkflowFile"},"readOnly":true},"file_ids":{"type":"array","items":{"type":"integer"},"readOnly":true}},"required":["created_at","updated_at","name"]},"AgenticWorkflowFile":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"agentic_workflow":{"$ref":"#/components/schemas/AgenticWorkflow","readOnly":true},"agentic_workflow_id":{"type":"integer"},"path":{"type":"string","description":"Where the file lands in a run's workdir, relative to it. Cannot be changed once the file exists — create another one instead."},"content":{"type":"string","description":"What a run materializes. Writing it bumps the version and stamps the API key's user as the author."},"kind":{"type":"string","enum":["knowledge","script"],"readOnly":true,"description":"Taken from the path — anything under scripts/ is a script, everything else is knowledge."},"version":{"type":"integer","readOnly":true,"description":"Bumped on every write. Runs carry it so a box can tell its copy is stale."},"guard_status":{"type":"string","enum":["pending","safe","unsafe_rejected","skipped"],"readOnly":true,"description":"Where an agent's proposed edit stands with the safety guard. Admin and API writes land safe without one."},"updated_by":{"type":"string","readOnly":true,"description":"Who wrote the live content, as an opaque stamp — \"user:\u003cid\u003e\", \"run:\u003cid\u003e\", or \"seed\"."},"author_label":{"type":"string","readOnly":true,"description":"The same author, as a name a person can read."},"pending_content":{"type":"string","readOnly":true,"description":"An edit an agent proposed that the guard has not cleared yet. Runs never see it until it does."},"pending_updated_by":{"type":"string","readOnly":true,"description":"Who proposed that edit, as the same opaque stamp."},"pending_author_label":{"type":"string","readOnly":true,"description":"And as a name a person can read."}},"required":["created_at","updated_at","agentic_workflow_id","path"]},"AgenticWorkflowFileOptional":{"type":"object","properties":{"content":{"type":"string","description":"What a run materializes. Writing it bumps the version and stamps the API key's user as the author."}}},"AgenticWorkflowOptional":{"type":"object","properties":{"name":{"type":"string"},"active":{"type":"boolean"},"description":{"type":"string","description":"What this workflow does, in one line. Shown to the bot when it picks a workflow for someone."},"instructions":{"type":"string","description":"The brief the agent is given at the start of every run. Reaches the box as instructions.md, alongside the workflow's files."}}},"AgenticWorkflowRun":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"agentic_workflow":{"$ref":"#/components/schemas/AgenticWorkflow","readOnly":true},"agentic_workflow_id":{"type":"integer"},"initial_message":{"type":"string","description":"Everything the agent needs, in plain prose — urls, logins, preferences. A run is handed this and nothing else, and giving it is what starts the run."},"status":{"type":"string","enum":["queued","running","waiting","paused","finished","failed","killed"],"readOnly":true},"progress_label":{"type":"string","readOnly":true},"progress_percent":{"type":"integer","readOnly":true},"result":{"type":"string","readOnly":true,"description":"What the run said it did, once it finished."},"failure_reason":{"type":"string","readOnly":true,"description":"Why the last leg stopped — a person stopping it counts."},"fatal_failure":{"type":"boolean","readOnly":true,"description":"True once nothing further will be attempted by itself: the budget is spent, or the agent said no retry can help."},"started_at":{"type":"string","format":"date-time","readOnly":true},"finished_at":{"type":"string","format":"date-time","readOnly":true},"parked_at":{"type":"string","format":"date-time","readOnly":true},"user":{"$ref":"#/components/schemas/User","readOnly":true,"description":"The admin the run acts as — its own API key can do what they can do and nothing more. Always the principal of the key that started the run, and empty when that key was not scoped to anyone."},"user_id":{"type":"integer","readOnly":true,"description":"The admin the run acts as — its own API key can do what they can do and nothing more. Always the principal of the key that started the run, and empty when that key was not scoped to anyone."},"account_id":{"type":"integer","readOnly":true,"description":"The account the run writes into. For a run started over the API that is always the account whose key started it; a run started from chat writes into the customer's own."},"account_handle":{"type":"string","readOnly":true},"chat_bot_conversation":{"$ref":"#/components/schemas/ChatBot::Conversation","readOnly":true,"description":"The bot conversation a run started from chat talks to. Empty for a run started over the API."},"chat_bot_conversation_id":{"type":"integer","readOnly":true,"description":"The bot conversation a run started from chat talks to. Empty for a run started over the API."},"waiting_on":{"type":"object","properties":{"type":{"type":"string","description":"What kind of wait this is — `question` or `manual_fix`."},"content":{"type":"string","description":"The question, in the agent's own words."},"live_url":{"type":"string","description":"For a manual_fix wait, the live browser to solve the block in."},"asked_at":{"type":"string","format":"date-time"},"deadline_at":{"type":"string","format":"date-time"},"message_id":{"type":"integer"}},"nullable":true,"readOnly":true,"description":"What the run is blocked on right now, if anything. Answer it with POST actions/message."},"responses":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["agent","user"],"description":"Who said it."},"type":{"type":"string","enum":["general","question","answer"]},"at":{"type":"string","format":"date-time"},"content":{"type":"string"},"deadline_at":{"type":"string","format":"date-time","description":"When the agent stops waiting on an unanswered question."},"delivered_at":{"type":"string","format":"date-time","description":"When the agent was handed this, for messages sent to it."},"message_id":{"type":"integer","description":"The chat message a question was posted as, for a run started from chat."}}},"readOnly":true,"description":"Everything said in either direction, oldest first."},"recoveries":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"reason":{"type":"string"}}},"readOnly":true,"description":"One entry per time the watchdog had to get this run moving again."},"cost_usd":{"type":"number","readOnly":true,"description":"What the agent runtime has billed for this run so far, in USD."}},"required":["created_at","updated_at","agentic_workflow_id","initial_message"]},"AlternativePrice":{"type":"object","properties":{"priceable":{"type":"object","readOnly":true},"priceable_id":{"type":"integer"},"priceable_type":{"type":"string"},"currency_code":{"type":"string"},"price_cents":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["priceable_id","priceable_type","currency_code","price_cents","created_at","updated_at"]},"AlternativePriceOptional":{"type":"object","properties":{"currency_code":{"type":"string"},"price_cents":{"type":"integer"}}},"Asset":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"alt_text":{"type":"string","description":"Text describing the image for screen readers and when it fails to load."},"public":{"type":"boolean","description":"Whether links to the file are publicly accessible. When false, links are private and encoded."},"filename":{"type":"string","readOnly":true},"content_type":{"type":"string","readOnly":true},"size":{"type":"integer","readOnly":true},"duration_seconds":{"type":"integer","readOnly":true},"width":{"type":"integer","readOnly":true},"height":{"type":"integer","readOnly":true},"last_played_at":{"type":"string","format":"date-time","readOnly":true,"description":"When a member last played the video or audio. Updated at most once a day; blank if never played."},"media_type":{"type":"string","readOnly":true},"url":{"type":"string","readOnly":true},"transcript":{"type":"string","readOnly":true},"source_asset_id":{"type":"integer","readOnly":true,"description":"The original asset ID for an immutable image crop. Empty for other assets."},"crop_rectangle":{"type":"object","properties":{"x":{"type":"integer"},"y":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"}},"nullable":true,"readOnly":true,"description":"The crop rectangle in current oriented original-image pixels; its relative region survives replacement. Empty for other assets."},"image_generation":{"type":"object","properties":{"prompt":{"type":"string"},"style":{"type":"string"},"model":{"type":"string"},"size":{"type":"string"},"user_id":{"type":"integer","nullable":true}},"nullable":true,"readOnly":true,"description":"The prompt, art style, model, size, and creator user ID of an approved AI-generated image. Empty for other assets."},"still_frame_asset_id":{"type":"integer","description":"For video assets, the ID of an image asset (in this account) to use as the still frame / poster. Only settable on video assets."},"bookmarks":{"type":"array","items":{"$ref":"#/components/schemas/AssetBookmark"},"readOnly":true,"description":"The asset's shared chapter markers, ordered by position in seconds."},"bookmark_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"The asset's shared chapter markers, ordered by position in seconds."},"transcript_sentences_with_timestamps":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The segment text."},"start":{"type":"number","description":"Start time in seconds."},"end":{"type":"number","description":"End time in seconds."}},"required":["text","start","end"]},"nullable":true,"readOnly":true,"description":"Sentence-level transcript segments with start/end timestamps in seconds. Null when no timestamped transcript is available."},"has_transcript":{"type":"boolean","readOnly":true,"description":"Whether the original asset has timestamped transcript segments. A plain transcript can exist without them. Renditions read transcript fields from their original."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"AssetBookmark":{"type":"object","properties":{"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer"},"position_sec":{"type":"integer"},"description":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["asset_id","position_sec","created_at","updated_at"]},"AssetBookmarkOptional":{"type":"object","properties":{"position_sec":{"type":"integer"},"description":{"type":"string"}}},"AssetOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"alt_text":{"type":"string","description":"Text describing the image for screen readers and when it fails to load."},"public":{"type":"boolean","description":"Whether links to the file are publicly accessible. When false, links are private and encoded."},"still_frame_asset_id":{"type":"integer","description":"For video assets, the ID of an image asset (in this account) to use as the still frame / poster. Only settable on video assets."}}},"Attachment":{"type":"object","properties":{"attachable":{"type":"object","readOnly":true},"attachable_id":{"type":"integer"},"attachable_type":{"type":"string"},"title":{"type":"string"},"position":{"type":"integer"},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer"},"media_type":{"type":"string","readOnly":true},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"view_embedded":{"type":"boolean"},"worksheet":{"$ref":"#/components/schemas/Worksheet","readOnly":true},"worksheet_id":{"type":"integer"},"bot_tier":{"$ref":"#/components/schemas/BotTier","readOnly":true},"bot_tier_id":{"type":"integer"},"embed":{"$ref":"#/components/schemas/Embed","readOnly":true},"embed_id":{"type":"integer"},"link":{"type":"string","format":"uri","description":"External URL to attach instead of a file, including scheme (e.g. https://example.com). Use this or `asset_id`, not both."},"link_embeddable":{"type":"boolean","readOnly":true,"description":"Whether the linked page allows being shown in an iframe. Determined automatically after the link is saved."},"prevent_downloads":{"type":"boolean","description":"Hide download links and the transcript copy button for this attachment."},"download_preference":{"type":"string","enum":["allow_download","prevent_download","same_as_site_or_product"],"description":"Download behavior for embedded PDFs."},"pdf_stamp_position":{"type":"string","description":"Where to stamp the buyer's details on a PDF sold as a digital download. One of `none`, `top`, or `bottom`."},"likes_count":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["attachable_id","attachable_type"]},"AttachmentOptional":{"type":"object","properties":{"title":{"type":"string"},"position":{"type":"integer"},"asset_id":{"type":"integer"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"view_embedded":{"type":"boolean"},"worksheet_id":{"type":"integer"},"bot_tier_id":{"type":"integer"},"embed_id":{"type":"integer"},"link":{"type":"string","format":"uri","description":"External URL to attach instead of a file, including scheme (e.g. https://example.com). Use this or `asset_id`, not both."},"prevent_downloads":{"type":"boolean","description":"Hide download links and the transcript copy button for this attachment."},"download_preference":{"type":"string","enum":["allow_download","prevent_download","same_as_site_or_product"],"description":"Download behavior for embedded PDFs."},"pdf_stamp_position":{"type":"string","description":"Where to stamp the buyer's details on a PDF sold as a digital download. One of `none`, `top`, or `bottom`."}}},"AutoResponse":{"type":"object","properties":{"resend_delay_count":{"type":"integer"},"resend_delay_unit":{"type":"string","enum":["hours","days"]},"resend_filter":{"type":"string","description":"Automatically resend to recipients who didn't open ('no_open') or didn't click ('no_click'), resend_delay after the email went out. Blank = off."},"resend_subject":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_preheader":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_body":{"type":"string","description":"Body for the automatic resend. Blank = same as the original."},"resend_style":{"type":"string","description":"Make the resend look like a 'reply' or a 'forward' of the original, with resend_note above the quoted original. Blank = resend the same email."},"resend_note":{"type":"string","description":"Note above the quoted original when resend_style is reply or forward."},"resend_of":{"$ref":"#/components/schemas/Mailing","readOnly":true,"description":"The original email, when this email is an automatic resend."},"resend_of_id":{"type":"integer","readOnly":true,"description":"The original email, when this email is an automatic resend."},"email_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the email BuilderDoc owned by this Mailing."},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"body_editor":{"type":"string","description":"Writable values are wysiwyg and html. Existing emails may return builder, but the new email builder is not on the API yet."},"subject":{"type":"string"},"preheader":{"type":"string"},"body":{"type":"string","description":"Email content for the wysiwyg and html editors. Read-only when the stored body_editor is builder; switch editors in a separate request before writing body."},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"template":{"$ref":"#/components/schemas/EmailTemplate","readOnly":true},"email_template_id":{"type":"integer"},"recipients_segment":{"$ref":"#/components/schemas/Segment","readOnly":true},"recipients_segment_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"hide_from_archive":{"type":"boolean"},"hide_web_version":{"type":"boolean"},"hide_from_recents":{"type":"boolean"},"show_in_admin":{"type":"boolean"},"non_warming":{"type":"boolean"},"split_test":{"type":"boolean"},"subject_b":{"type":"string"},"preheader_b":{"type":"string"},"test_percentage":{"type":"integer"},"test_duration_minutes":{"type":"integer"},"state":{"type":"string","readOnly":true},"recipients_count":{"type":"integer","readOnly":true},"subject_a_open_rate":{"type":"number","readOnly":true},"subject_b_open_rate":{"type":"number","readOnly":true},"spam_score":{"type":"number","readOnly":true},"spam_hits":{"type":"string","readOnly":true},"for_single_action":{"type":"boolean","readOnly":true},"deliveries_finalized":{"type":"boolean","readOnly":true},"split_test_p_value":{"type":"number","readOnly":true},"delivered_at":{"type":"string","format":"date-time","readOnly":true},"deliver_at":{"type":"string","format":"date-time","readOnly":true},"queued_at":{"type":"string","format":"date-time","readOnly":true},"body_updated_at":{"type":"string","format":"date-time","readOnly":true},"start_delivering_at":{"type":"string","format":"date-time","readOnly":true},"first_delivery_at":{"type":"string","format":"date-time","readOnly":true},"last_delivery_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"delivery_spread_window_minutes":{"type":"integer"}},"required":["email_template_id"]},"Automation":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"token":{"type":"string","readOnly":true},"name":{"type":"string"},"active":{"type":"boolean"},"on_hold":{"type":"boolean"},"reenter":{"type":"boolean"},"allow_duplicate_active_contact":{"type":"boolean"},"force_customer":{"type":"boolean"},"always_run":{"type":"boolean"},"object_type":{"type":"string","description":"Type of recipient this automation runs on. Blank means flexible (any contact-like object). Examples: 'Customer', 'Purchase', 'Entrant', 'Subscription', 'EventOccurrenceParticipant'."},"manage_mode":{"type":"integer"},"require_consent_to_start":{"type":"boolean","description":"When on, contacts without GDPR consent do not start this automation from a list signup. When off, each action step decides whether they skip it."},"notes":{"type":"string"},"start_confirmation_page":{"$ref":"#/components/schemas/LandingPage","readOnly":true},"start_confirmation_page_id":{"type":"integer"},"stop_confirmation_page":{"$ref":"#/components/schemas/LandingPage","readOnly":true},"stop_confirmation_page_id":{"type":"integer"},"pause_confirmation_page":{"$ref":"#/components/schemas/LandingPage","readOnly":true},"pause_confirmation_page_id":{"type":"integer"},"resume_confirmation_page":{"$ref":"#/components/schemas/LandingPage","readOnly":true},"resume_confirmation_page_id":{"type":"integer"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/Step"},"readOnly":true},"step_ids":{"type":"array","items":{"type":"integer"}},"starter_products":{"type":"array","items":{"$ref":"#/components/schemas/Product"},"readOnly":true},"starter_product_ids":{"type":"array","items":{"type":"integer"}},"starter_lists":{"type":"array","items":{"$ref":"#/components/schemas/List"},"readOnly":true},"starter_list_ids":{"type":"array","items":{"type":"integer"}},"starter_tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"},"readOnly":true,"description":"Tags that start this automation when applied to a contact. Writing starter_tag_ids replaces the whole set. Tag starters only start automations whose object_type is blank or Customer."},"starter_tag_ids":{"type":"array","items":{"type":"integer"},"description":"Tags that start this automation when applied to a contact. Writing starter_tag_ids replaces the whole set. Tag starters only start automations whose object_type is blank or Customer."},"flows_count":{"type":"integer","readOnly":true},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"AutomationOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"active":{"type":"boolean"},"on_hold":{"type":"boolean"},"reenter":{"type":"boolean"},"allow_duplicate_active_contact":{"type":"boolean"},"force_customer":{"type":"boolean"},"always_run":{"type":"boolean"},"object_type":{"type":"string","description":"Type of recipient this automation runs on. Blank means flexible (any contact-like object). Examples: 'Customer', 'Purchase', 'Entrant', 'Subscription', 'EventOccurrenceParticipant'."},"manage_mode":{"type":"integer"},"require_consent_to_start":{"type":"boolean","description":"When on, contacts without GDPR consent do not start this automation from a list signup. When off, each action step decides whether they skip it."},"notes":{"type":"string"},"start_confirmation_page_id":{"type":"integer"},"stop_confirmation_page_id":{"type":"integer"},"pause_confirmation_page_id":{"type":"integer"},"resume_confirmation_page_id":{"type":"integer"},"step_ids":{"type":"array","items":{"type":"integer"}},"starter_product_ids":{"type":"array","items":{"type":"integer"}},"starter_list_ids":{"type":"array","items":{"type":"integer"}},"starter_tag_ids":{"type":"array","items":{"type":"integer"},"description":"Tags that start this automation when applied to a contact. Writing starter_tag_ids replaces the whole set. Tag starters only start automations whose object_type is blank or Customer."},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false."}}},"Availability":{"type":"object","properties":{"owner":{"$ref":"#/components/schemas/Administratorship","readOnly":true},"owner_id":{"type":"integer"},"name":{"type":"string"},"preset":{"type":"boolean"},"recurring_ranges":{"type":"array","items":{"type":"object","properties":{"days":{"type":"array","items":{"type":"string","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]}},"starts_at":{"type":"string","description":"Start time in 12h format, e.g. '09:00 AM'"},"ends_at":{"type":"string","description":"End time in 12h format, e.g. '05:00 PM'"}},"required":["days","starts_at","ends_at"]},"description":"Weekly recurring availability windows. Each entry defines one or more days-of-week with a start/end time."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["owner","owner_id","created_at","updated_at"]},"AvailabilityOptional":{"type":"object","properties":{"name":{"type":"string"},"preset":{"type":"boolean"},"recurring_ranges":{"type":"array","items":{"type":"object","properties":{"days":{"type":"array","items":{"type":"string","enum":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]}},"starts_at":{"type":"string","description":"Start time in 12h format, e.g. '09:00 AM'"},"ends_at":{"type":"string","description":"End time in 12h format, e.g. '05:00 PM'"}},"required":["days","starts_at","ends_at"]},"description":"Weekly recurring availability windows. Each entry defines one or more days-of-week with a start/end time."}}},"AvailabilityPeriod":{"type":"object","properties":{"owner":{"type":"object","readOnly":true},"owner_id":{"type":"integer"},"owner_type":{"type":"string"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["owner_id","owner_type","created_at","updated_at"]},"AvailabilityPeriodOptional":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}},"AwardedCertificate":{"type":"object","properties":{"certificate_id":{"type":"integer","readOnly":true},"site_member_id":{"type":"integer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"user_id":{"type":"integer","readOnly":true},"awarded_for_id":{"type":"integer","readOnly":true},"awarded_for_type":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"Badge":{"type":"object","properties":{"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer"},"name":{"type":"string"},"emoji":{"type":"string"},"emoji_only":{"type":"boolean"},"badge_color":{"type":"string"},"text_color":{"type":"string"},"enabled":{"type":"boolean"},"for_action":{"type":"string","enum":["assigned_manually","create_posts","create_comments","receive_comments_on_posts","receive_comments_on_comments","complete_courses","complete_worksheets","product_purchase","list_subscription"],"nullable":true,"description":"What awards the badge. assigned_manually means an admin awards it by hand."},"num":{"type":"integer","nullable":true,"description":"How many posts, comments, completions, or replies are needed. Required for the calculated actions."},"condition":{"type":"string","enum":["anytime","specific_dates","date_of_joining"],"nullable":true,"description":"Limits which activity counts toward num."},"condition_start_date":{"type":"string","nullable":true,"description":"Date range for the specific_dates condition."},"condition_end_date":{"type":"string","nullable":true,"description":"Date range for the specific_dates condition."},"condition_time_count":{"type":"integer","nullable":true,"description":"Length of the window after joining for the date_of_joining condition."},"condition_time_unit":{"type":"string","enum":["days","weeks","months"],"nullable":true},"validity":{"type":"string","enum":["forever","time_period","specific_date"],"nullable":true,"description":"How long an awarded badge is kept."},"valid_time_count":{"type":"integer","nullable":true,"description":"Length of the time_period validity."},"valid_time_unit":{"type":"string","enum":["days","weeks","months"],"nullable":true},"valid_till":{"type":"string","nullable":true,"description":"End date for the specific_date validity."},"product_ids":{"type":"array","items":{"type":"integer"},"description":"Products whose active purchase awards the badge (product_purchase)."},"list_ids":{"type":"array","items":{"type":"integer"},"description":"Lists whose active subscription awards the badge (list_subscription)."},"system_key":{"type":"string","readOnly":true,"description":"Set on the built-in system badges, which cannot be deleted."},"color":{"type":"string","readOnly":true,"description":"Legacy color name of a system badge. Use badge_color and text_color."},"custom_config":{"type":"object","nullable":true,"readOnly":true,"description":"Raw stored award settings. Read the separate fields instead."},"last_checked_at":{"type":"string","format":"date-time","readOnly":true},"members_count":{"type":"integer","readOnly":true,"description":"Members who currently hold the badge."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["site_id","name","created_at","updated_at"]},"BadgeOptional":{"type":"object","properties":{"name":{"type":"string"},"emoji":{"type":"string"},"emoji_only":{"type":"boolean"},"badge_color":{"type":"string"},"text_color":{"type":"string"},"enabled":{"type":"boolean"},"for_action":{"type":"string","enum":["assigned_manually","create_posts","create_comments","receive_comments_on_posts","receive_comments_on_comments","complete_courses","complete_worksheets","product_purchase","list_subscription"],"nullable":true,"description":"What awards the badge. assigned_manually means an admin awards it by hand."},"num":{"type":"integer","nullable":true,"description":"How many posts, comments, completions, or replies are needed. Required for the calculated actions."},"condition":{"type":"string","enum":["anytime","specific_dates","date_of_joining"],"nullable":true,"description":"Limits which activity counts toward num."},"condition_start_date":{"type":"string","nullable":true,"description":"Date range for the specific_dates condition."},"condition_end_date":{"type":"string","nullable":true,"description":"Date range for the specific_dates condition."},"condition_time_count":{"type":"integer","nullable":true,"description":"Length of the window after joining for the date_of_joining condition."},"condition_time_unit":{"type":"string","enum":["days","weeks","months"],"nullable":true},"validity":{"type":"string","enum":["forever","time_period","specific_date"],"nullable":true,"description":"How long an awarded badge is kept."},"valid_time_count":{"type":"integer","nullable":true,"description":"Length of the time_period validity."},"valid_time_unit":{"type":"string","enum":["days","weeks","months"],"nullable":true},"valid_till":{"type":"string","nullable":true,"description":"End date for the specific_date validity."},"product_ids":{"type":"array","items":{"type":"integer"},"description":"Products whose active purchase awards the badge (product_purchase)."},"list_ids":{"type":"array","items":{"type":"integer"},"description":"Lists whose active subscription awards the badge (list_subscription)."}}},"Block":{"type":"object","properties":{"content_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the content BuilderDoc owned by this Block."},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"description":{"type":"string"},"base_type":{"type":"string","readOnly":true,"description":"Root node type of this block (section, row, column, or element). Derived from content on create."},"global":{"type":"boolean","description":"When true, instances stay linked and always expand this block's live content. When false (saved block), insert copies the tree once."},"available_to_everyone":{"type":"boolean","description":"When true on the blank-slate account, block is a public DFY/section template."},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","base_type","user","user_id","created_at","updated_at"]},"BlockOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"description":{"type":"string"},"global":{"type":"boolean","description":"When true, instances stay linked and always expand this block's live content. When false (saved block), insert copies the tree once."},"available_to_everyone":{"type":"boolean","description":"When true on the blank-slate account, block is a public DFY/section template."}}},"BlogPost":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"body":{"type":"string","description":"The post content, as HTML."},"meta_title":{"type":"string","description":"SEO/social title override. Falls back to `title` when blank."},"meta_description":{"type":"string","description":"SEO/social description override. Falls back to the post body when blank."},"publish_status":{"type":"string"},"public_published_at":{"type":"string","format":"date-time","description":"The publication date shown on the post."},"pinned":{"type":"boolean"},"slug":{"type":"string","description":"The last part of the post's URL. Used unless `uses_custom_path` is on."},"uses_custom_path":{"type":"boolean","description":"When true, the post is served at `custom_path` instead of its slug."},"custom_path":{"type":"string","description":"A path on the site to serve the post at, used when `uses_custom_path` is true."},"comments_mode":{"type":"string","enum":["use_blog_setting","allow","moderate","deny"],"description":"`use_blog_setting` follows the site's blog comment setting."},"meta_description_is_excerpt":{"type":"boolean","description":"When true, the blog page shows `meta_description` as the post's preview text."},"thumbnail":{"$ref":"#/components/schemas/Asset","readOnly":true},"thumbnail_id":{"type":"integer"},"meta_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"meta_image_id":{"type":"integer"},"site_id":{"type":"integer","description":"The site the post is on. Required when creating a post; a post stays on its site."},"poster_id":{"type":"integer","description":"The admin shown as the author. Set on create only; defaults to the API key's user, or the account owner."},"reactions_count":{"type":"integer","readOnly":true},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer","readOnly":true},"url":{"type":"string","format":"uri","readOnly":true,"description":"The post's page URL. Append `?media_position_\u003casset_id\u003e=\u003cseconds\u003e` (the asset's id is available via the `asset` property) to link directly to a timestamp in an embedded video — the same query param the player already reads on any page it's rendered on."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","title","body","slug","site_id","created_at","updated_at"]},"BlogPostOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"body":{"type":"string","description":"The post content, as HTML."},"meta_title":{"type":"string","description":"SEO/social title override. Falls back to `title` when blank."},"meta_description":{"type":"string","description":"SEO/social description override. Falls back to the post body when blank."},"publish_status":{"type":"string"},"public_published_at":{"type":"string","format":"date-time","description":"The publication date shown on the post."},"pinned":{"type":"boolean"},"slug":{"type":"string","description":"The last part of the post's URL. Used unless `uses_custom_path` is on."},"uses_custom_path":{"type":"boolean","description":"When true, the post is served at `custom_path` instead of its slug."},"custom_path":{"type":"string","description":"A path on the site to serve the post at, used when `uses_custom_path` is true."},"comments_mode":{"type":"string","enum":["use_blog_setting","allow","moderate","deny"],"description":"`use_blog_setting` follows the site's blog comment setting."},"meta_description_is_excerpt":{"type":"boolean","description":"When true, the blog page shows `meta_description` as the post's preview text."},"thumbnail_id":{"type":"integer"},"meta_image_id":{"type":"integer"}}},"Bot":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string"},"slug":{"type":"string"},"subtitle":{"type":"string"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"system_prompt":{"type":"string"},"welcome_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"input_placeholder":{"type":"string"},"active":{"type":"boolean"},"goal":{"type":"string","description":"What the bot is for, which decides how the assistant helps finish setting it up. One of `none`, `keyword`, `content_expert`, `outcome`, `onboarding`, `booking`, `funnel`, `survey` (`none`: set up by hand), or null to hide the goal bar on its admin page. Changing it does not change any other setting."},"web_chat":{"type":"boolean","description":"Whether people can chat with the bot in a browser: its own page, the sites it is listed on and the coach. Turn off for a bot that only answers on channels such as Instagram or SMS. Channels work either way."},"default_model":{"type":"string","description":"Model id the bot answers with. 'auto' lets Simplero pick the model for each message; blank means Recommended."},"web_search":{"type":"boolean"},"browser_tools":{"type":"boolean"},"admin":{"type":"boolean"},"lock_model":{"type":"boolean"},"lock_writing_style":{"type":"boolean"},"follow_up_suggestions":{"type":"boolean"},"allow_create_simplero_account":{"type":"boolean"},"collect_testimonials":{"type":"boolean"},"collect_feedback":{"type":"boolean"},"feedback_prompt":{"type":"string"},"human_design":{"type":"boolean"},"gene_keys":{"type":"boolean"},"astrology":{"type":"boolean"},"tickets_query":{"type":"boolean"},"logs_query":{"type":"boolean"},"code_query":{"type":"boolean"},"agentic_workflows":{"type":"boolean","description":"Whether this bot can run the account's agentic workflows for the person chatting."},"unauth_chat":{"type":"boolean","description":"Whether a logged-out visitor may chat with this bot at all."},"unauth_chat_message_limit":{"type":"integer","description":"How many messages a logged-out visitor can send before being prompted to sign up or purchase. Null means unlimited; 0 shows them the gate straight away. Only applies when `unauth_chat` is on."},"unauth_chat_message_min":{"type":"integer","description":"The earliest message after which the bot may ask a logged-out visitor to sign up, once it judges they want to keep going. Null or 0 turns this off, so only `unauth_chat_message_limit` applies."},"access":{"type":"string","enum":["public","private","multi_tier"],"description":"Create-only. Seeds the starting tiers: `public` gives one free tier, `private` (the default) one paid tier, `multi_tier` a free, a paid and a premium tier. Skipped when the bot is created with tiers already attached. Manage tiers afterwards through /api/v2/bot_tiers."},"creator":{"$ref":"#/components/schemas/User","readOnly":true,"description":"Admin this bot acts as. Their avatar is the fallback avatar, and their community posts and comments are what a Site source indexes. Defaults to the API key's user."},"creator_id":{"type":"integer","description":"Admin this bot acts as. Their avatar is the fallback avatar, and their community posts and comments are what a Site source indexes. Defaults to the API key's user."},"avatar":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"Square image (at least 200x200) shown for the bot. Falls back to the creator's avatar when blank."},"avatar_id":{"type":"integer","description":"Square image (at least 200x200) shown for the bot. Falls back to the creator's avatar when blank."},"welcome_asset":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"Video, audio, or image shown on the chat open screen before the first message."},"welcome_asset_id":{"type":"integer","description":"Video, audio, or image shown on the chat open screen before the first message."},"default_writing_style":{"$ref":"#/components/schemas/ChatBot::WritingStyle","readOnly":true,"description":"One of the built-in writing styles. Personal writing styles belong to a single person and cannot be a bot default."},"default_writing_style_id":{"type":"integer","description":"One of the built-in writing styles. Personal writing styles belong to a single person and cannot be a bot default."},"service_usage_credit":{"$ref":"#/components/schemas/Credit","readOnly":true,"description":"Your own credit to charge this bot's AI usage against, instead of the account-wide one. Sell it at your own markup."},"service_usage_credit_id":{"type":"integer","description":"Your own credit to charge this bot's AI usage against, instead of the account-wide one. Sell it at your own markup."},"service_usage_limit":{"$ref":"#/components/schemas/ServiceUsageLimit","description":"Per-person AI usage allowance for this bot, overriding the account-wide limit. Leave out to inherit the account limit."},"access_gate":{"$ref":"#/components/schemas/AccessGate","description":"What a logged-out visitor is asked for once they have used up `unauth_chat_message_limit`. `mode` is required whenever this is given."},"opening_messages":{"type":"array","items":{"$ref":"#/components/schemas/ChatBot::OpeningMessage"},"description":"The person's own first messages, in their words (\"I'd like to book a call\"), never the bot's greeting. The chat sends a single one as theirs when there is no welcome video or message; several show as buttons to pick from. Writing this on update adds messages — use /api/v2/chat_bot_opening_messages to edit or remove an existing one."},"opening_message_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"The person's own first messages, in their words (\"I'd like to book a call\"), never the bot's greeting. The chat sends a single one as theirs when there is no welcome video or message; several show as buttons to pick from. Writing this on update adds messages — use /api/v2/chat_bot_opening_messages to edit or remove an existing one."},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/BotTier"},"readOnly":true},"tier_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"sites":{"type":"array","items":{"$ref":"#/components/schemas/Site"},"readOnly":true},"site_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"sources":{"type":"array","items":{"$ref":"#/components/schemas/BotSource"},"readOnly":true},"source_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"skills":{"type":"array","items":{"$ref":"#/components/schemas/BotSkill"},"readOnly":true},"skill_ids":{"type":"array","items":{"type":"integer"},"readOnly":true}},"required":["created_at","updated_at","name","slug"]},"BotChannel":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"bot":{"$ref":"#/components/schemas/Bot","readOnly":true},"bot_id":{"type":"integer"},"kind":{"type":"string","enum":["sms","telegram","instagram","facebook","whatsapp"]},"keyword":{"type":"string","description":"Word people send to start the bot: texted for SMS, commented or DMed on Instagram and Facebook. Leave blank to catch every message that matches no keyword. Uppercased on save. Not used by Telegram."},"bot_tier":{"$ref":"#/components/schemas/BotTier","readOnly":true,"description":"Tier people reach through this channel. Defaults to the bot's free tier, or its first tier."},"bot_tier_id":{"type":"integer","description":"Tier people reach through this channel. Defaults to the bot's free tier, or its first tier."},"session_timeout":{"type":"integer","description":"Seconds of inactivity before a conversation on this channel expires. Blank means never."},"platform_post_id":{"type":"string","description":"Instagram and Facebook only: limit the keyword to comments on one post. Blank applies to every post."},"dm_message":{"type":"string","description":"Instagram and Facebook only: the first DM sent when someone comments the keyword. Blank uses a friendly default."},"dm_link":{"type":"string","description":"Instagram and Facebook only: URL appended to the first DM, such as the offer or freebie."},"comment_reply":{"type":"string","description":"Instagram and Facebook only: public reply to the keyword comment. Blank uses a friendly default."},"integration_id":{"type":"integer","description":"Connected account behind the channel. For Instagram, Facebook and WhatsApp the only connected account of that kind is used when this is omitted. Telegram is never attached automatically. Without one the channel is created unconnected and the user connects an account, or adds a Telegram bot token from @BotFather, from the bot's Channels tab."},"account_missing_label":{"type":"string","readOnly":true,"description":"Why the channel cannot send or receive yet, for example \"Not configured\" or \"Needs phone number\". Null when it is ready."}},"required":["created_at","updated_at","bot_id"]},"BotChannelOptional":{"type":"object","properties":{"keyword":{"type":"string","description":"Word people send to start the bot: texted for SMS, commented or DMed on Instagram and Facebook. Leave blank to catch every message that matches no keyword. Uppercased on save. Not used by Telegram."},"bot_tier_id":{"type":"integer","description":"Tier people reach through this channel. Defaults to the bot's free tier, or its first tier."},"session_timeout":{"type":"integer","description":"Seconds of inactivity before a conversation on this channel expires. Blank means never."},"platform_post_id":{"type":"string","description":"Instagram and Facebook only: limit the keyword to comments on one post. Blank applies to every post."},"dm_message":{"type":"string","description":"Instagram and Facebook only: the first DM sent when someone comments the keyword. Blank uses a friendly default."},"dm_link":{"type":"string","description":"Instagram and Facebook only: URL appended to the first DM, such as the offer or freebie."},"comment_reply":{"type":"string","description":"Instagram and Facebook only: public reply to the keyword comment. Blank uses a friendly default."},"integration_id":{"type":"integer","description":"Connected account behind the channel. For Instagram, Facebook and WhatsApp the only connected account of that kind is used when this is omitted. Telegram is never attached automatically. Without one the channel is created unconnected and the user connects an account, or adds a Telegram bot token from @BotFather, from the bot's Channels tab."}}},"BotOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"slug":{"type":"string"},"subtitle":{"type":"string"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"system_prompt":{"type":"string"},"welcome_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"input_placeholder":{"type":"string"},"active":{"type":"boolean"},"goal":{"type":"string","description":"What the bot is for, which decides how the assistant helps finish setting it up. One of `none`, `keyword`, `content_expert`, `outcome`, `onboarding`, `booking`, `funnel`, `survey` (`none`: set up by hand), or null to hide the goal bar on its admin page. Changing it does not change any other setting."},"web_chat":{"type":"boolean","description":"Whether people can chat with the bot in a browser: its own page, the sites it is listed on and the coach. Turn off for a bot that only answers on channels such as Instagram or SMS. Channels work either way."},"default_model":{"type":"string","description":"Model id the bot answers with. 'auto' lets Simplero pick the model for each message; blank means Recommended."},"web_search":{"type":"boolean"},"browser_tools":{"type":"boolean"},"admin":{"type":"boolean"},"lock_model":{"type":"boolean"},"lock_writing_style":{"type":"boolean"},"follow_up_suggestions":{"type":"boolean"},"allow_create_simplero_account":{"type":"boolean"},"collect_testimonials":{"type":"boolean"},"collect_feedback":{"type":"boolean"},"feedback_prompt":{"type":"string"},"human_design":{"type":"boolean"},"gene_keys":{"type":"boolean"},"astrology":{"type":"boolean"},"tickets_query":{"type":"boolean"},"logs_query":{"type":"boolean"},"code_query":{"type":"boolean"},"agentic_workflows":{"type":"boolean","description":"Whether this bot can run the account's agentic workflows for the person chatting."},"unauth_chat":{"type":"boolean","description":"Whether a logged-out visitor may chat with this bot at all."},"unauth_chat_message_limit":{"type":"integer","description":"How many messages a logged-out visitor can send before being prompted to sign up or purchase. Null means unlimited; 0 shows them the gate straight away. Only applies when `unauth_chat` is on."},"unauth_chat_message_min":{"type":"integer","description":"The earliest message after which the bot may ask a logged-out visitor to sign up, once it judges they want to keep going. Null or 0 turns this off, so only `unauth_chat_message_limit` applies."},"creator_id":{"type":"integer","description":"Admin this bot acts as. Their avatar is the fallback avatar, and their community posts and comments are what a Site source indexes. Defaults to the API key's user."},"avatar_id":{"type":"integer","description":"Square image (at least 200x200) shown for the bot. Falls back to the creator's avatar when blank."},"welcome_asset_id":{"type":"integer","description":"Video, audio, or image shown on the chat open screen before the first message."},"default_writing_style_id":{"type":"integer","description":"One of the built-in writing styles. Personal writing styles belong to a single person and cannot be a bot default."},"service_usage_credit_id":{"type":"integer","description":"Your own credit to charge this bot's AI usage against, instead of the account-wide one. Sell it at your own markup."},"service_usage_limit":{"$ref":"#/components/schemas/ServiceUsageLimit","description":"Per-person AI usage allowance for this bot, overriding the account-wide limit. Leave out to inherit the account limit."},"access_gate":{"$ref":"#/components/schemas/AccessGate","description":"What a logged-out visitor is asked for once they have used up `unauth_chat_message_limit`. `mode` is required whenever this is given."},"opening_messages":{"type":"array","items":{"$ref":"#/components/schemas/ChatBot::OpeningMessage"},"description":"The person's own first messages, in their words (\"I'd like to book a call\"), never the bot's greeting. The chat sends a single one as theirs when there is no welcome video or message; several show as buttons to pick from. Writing this on update adds messages — use /api/v2/chat_bot_opening_messages to edit or remove an existing one."}}},"BotSkill":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"bot":{"$ref":"#/components/schemas/Bot","readOnly":true},"bot_id":{"type":"integer"},"name":{"type":"string","description":"The slash command that uses the skill, without the slash: lowercase letters, digits and dashes, e.g. `refund-policy`. Unique per bot."},"description":{"type":"string","description":"What the skill does, shown to people in the / menu."},"when_to_use":{"type":"string","description":"When the bot should use the skill on its own, besides someone typing the /command. Optional: the bot reads `description` when blank."},"listed":{"type":"boolean","description":"Whether the skill shows in the / menu. Unlisted skills still work when referenced, and the bot can still pick them on its own."},"instructions":{"type":"string","description":"What the bot follows once the skill is in use. Markdown."}},"required":["created_at","updated_at","bot_id","name","description","instructions"]},"BotSkillOptional":{"type":"object","properties":{"name":{"type":"string","description":"The slash command that uses the skill, without the slash: lowercase letters, digits and dashes, e.g. `refund-policy`. Unique per bot."},"description":{"type":"string","description":"What the skill does, shown to people in the / menu."},"when_to_use":{"type":"string","description":"When the bot should use the skill on its own, besides someone typing the /command. Optional: the bot reads `description` when blank."},"listed":{"type":"boolean","description":"Whether the skill shows in the / menu. Unlisted skills still work when referenced, and the bot can still pick them on its own."},"instructions":{"type":"string","description":"What the bot follows once the skill is in use. Markdown."}}},"BotSource":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"bot":{"$ref":"#/components/schemas/Bot","readOnly":true},"bot_id":{"type":"integer"},"bot_tier":{"$ref":"#/components/schemas/BotTier","readOnly":true,"description":"Tier this source unlocks at. The source is visible to that tier and every tier ranked above it. Defaults to the bot's lowest tier."},"bot_tier_id":{"type":"integer","description":"Tier this source unlocks at. The source is visible to that tier and every tier ranked above it. Defaults to the bot's lowest tier."},"resource":{"type":"object","readOnly":true,"description":"What the bot reads. Set `resource_type` to one of Site, Page, Course, CourseModule, CourseLesson, Asset, ChatBot::Source and `resource_id` to that record's id. A Site indexes every non-draft page, course, and blog post on it, plus the bot creator's forum posts and comments; the others index only themselves. `ChatBot::Source` is a source from the bot creator's personal AI coach and is fed to the bot as plain text rather than searched. Only the bot creator can attach one, and only one of their own: in the admin, or over the API from their own Coach or MCP session. An API key cannot attach a Coach source."},"resource_id":{"type":"integer","description":"What the bot reads. Set `resource_type` to one of Site, Page, Course, CourseModule, CourseLesson, Asset, ChatBot::Source and `resource_id` to that record's id. A Site indexes every non-draft page, course, and blog post on it, plus the bot creator's forum posts and comments; the others index only themselves. `ChatBot::Source` is a source from the bot creator's personal AI coach and is fed to the bot as plain text rather than searched. Only the bot creator can attach one, and only one of their own: in the admin, or over the API from their own Coach or MCP session. An API key cannot attach a Coach source."},"resource_type":{"type":"string"},"resource_name_pretty":{"type":"string","readOnly":true,"description":"Display name of the resource."},"resource_type_pretty":{"type":"string","readOnly":true,"description":"Human-readable kind of source, e.g. \"Course\" or \"Coach Source\"."}},"required":["created_at","updated_at","bot","bot_id","resource"]},"BotSourceOptional":{"type":"object","properties":{"bot_tier_id":{"type":"integer","description":"Tier this source unlocks at. The source is visible to that tier and every tier ranked above it. Defaults to the bot's lowest tier."},"resource_id":{"type":"integer","description":"What the bot reads. Set `resource_type` to one of Site, Page, Course, CourseModule, CourseLesson, Asset, ChatBot::Source and `resource_id` to that record's id. A Site indexes every non-draft page, course, and blog post on it, plus the bot creator's forum posts and comments; the others index only themselves. `ChatBot::Source` is a source from the bot creator's personal AI coach and is fed to the bot as plain text rather than searched. Only the bot creator can attach one, and only one of their own: in the admin, or over the API from their own Coach or MCP session. An API key cannot attach a Coach source."},"resource_type":{"type":"string"}}},"BotTier":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"bot":{"$ref":"#/components/schemas/Bot","readOnly":true},"bot_id":{"type":"integer"},"name":{"type":"string"},"private":{"type":"boolean","description":"Private tiers are the paid ones — a person only reaches them through a purchase, a course link, or an access rule. A public tier is open to everyone who can chat with the bot."},"position":{"type":"integer","description":"Rank among the bot's other tiers, lowest first. A source attached to a tier is visible to that tier and every tier ranked above it. On create, setting this inserts the tier at that rank and shifts the ones below it down; omit it to add the tier at the bottom. On update, setting it moves the tier and reorders the rest."}},"required":["created_at","updated_at","bot","bot_id","name"]},"BotTierOptional":{"type":"object","properties":{"name":{"type":"string"},"private":{"type":"boolean","description":"Private tiers are the paid ones — a person only reaches them through a purchase, a course link, or an access rule. A public tier is open to everyone who can chat with the bot."},"position":{"type":"integer","description":"Rank among the bot's other tiers, lowest first. A source attached to a tier is visible to that tier and every tier ranked above it. On create, setting this inserts the tier at that rank and shifts the ones below it down; omit it to add the tier at the bottom. On update, setting it moves the tier and reorders the rest."}}},"Broadcast":{"type":"object","properties":{"resend_delay_count":{"type":"integer"},"resend_delay_unit":{"type":"string","enum":["hours","days"]},"resend_filter":{"type":"string","description":"Automatically resend to recipients who didn't open ('no_open') or didn't click ('no_click'), resend_delay after the email went out. Blank = off."},"resend_subject":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_preheader":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_body":{"type":"string","description":"Body for the automatic resend. Blank = same as the original."},"resend_style":{"type":"string","description":"Make the resend look like a 'reply' or a 'forward' of the original, with resend_note above the quoted original. Blank = resend the same email."},"resend_note":{"type":"string","description":"Note above the quoted original when resend_style is reply or forward."},"resend_of":{"$ref":"#/components/schemas/Mailing","readOnly":true,"description":"The original email, when this email is an automatic resend."},"resend_of_id":{"type":"integer","readOnly":true,"description":"The original email, when this email is an automatic resend."},"email_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the email BuilderDoc owned by this Mailing."},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"body_editor":{"type":"string","description":"Writable values are wysiwyg and html. Existing emails may return builder, but the new email builder is not on the API yet."},"subject":{"type":"string"},"preheader":{"type":"string"},"body":{"type":"string","description":"Email content for the wysiwyg and html editors. Read-only when the stored body_editor is builder; switch editors in a separate request before writing body."},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"template":{"$ref":"#/components/schemas/EmailTemplate","readOnly":true},"email_template_id":{"type":"integer"},"recipients_segment":{"$ref":"#/components/schemas/Segment","readOnly":true},"recipients_segment_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"hide_from_archive":{"type":"boolean"},"hide_web_version":{"type":"boolean"},"hide_from_recents":{"type":"boolean"},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"non_warming":{"type":"boolean"},"split_test":{"type":"boolean"},"subject_b":{"type":"string"},"preheader_b":{"type":"string"},"test_percentage":{"type":"integer"},"test_duration_minutes":{"type":"integer"},"state":{"type":"string","readOnly":true},"recipients_count":{"type":"integer","readOnly":true},"subject_a_open_rate":{"type":"number","readOnly":true},"subject_b_open_rate":{"type":"number","readOnly":true},"spam_score":{"type":"number","readOnly":true},"spam_hits":{"type":"string","readOnly":true},"for_single_action":{"type":"boolean","readOnly":true},"deliveries_finalized":{"type":"boolean","readOnly":true},"split_test_p_value":{"type":"number","readOnly":true},"delivered_at":{"type":"string","format":"date-time","readOnly":true},"deliver_at":{"type":"string","format":"date-time","readOnly":true},"queued_at":{"type":"string","format":"date-time","readOnly":true},"body_updated_at":{"type":"string","format":"date-time","readOnly":true},"start_delivering_at":{"type":"string","format":"date-time","readOnly":true},"first_delivery_at":{"type":"string","format":"date-time","readOnly":true},"last_delivery_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"delivery_spread_window_minutes":{"type":"integer"},"delivery_type":{"type":"string","enum":["immediately","later","schedule","later_contact_tz"],"description":"When the broadcast goes out: `immediately`, `later` (at deliver_at), `later_contact_tz` (at deliver_at in each contact's own time zone), or `schedule` (sent from a newsletter queue)."},"schedule":{"$ref":"#/components/schemas/BroadcastSchedule","readOnly":true,"description":"The newsletter this broadcast is queued in, when it was created from a broadcast schedule."},"schedule_id":{"type":"integer","description":"The newsletter this broadcast is queued in, when it was created from a broadcast schedule."},"schedule_position":{"type":"integer","description":"Place in the newsletter send queue. Only set while queued as part of a newsletter."},"nps_score":{"$ref":"#/components/schemas/NpsScore","readOnly":true,"description":"Set when this broadcast is a one-off reply to an NPS survey response."},"nps_score_id":{"type":"integer","description":"Set when this broadcast is a one-off reply to an NPS survey response."},"queued_by":{"$ref":"#/components/schemas/User","readOnly":true},"queued_by_id":{"type":"integer"},"sent_count":{"type":"integer","readOnly":true},"opens_count":{"type":"integer","readOnly":true},"unique_opens_count":{"type":"integer","readOnly":true},"clicks_count":{"type":"integer","readOnly":true},"unique_clicks_count":{"type":"integer","readOnly":true},"bounces_count":{"type":"integer","readOnly":true},"unsubscribes_count":{"type":"integer","readOnly":true},"spamreports_count":{"type":"integer","readOnly":true},"delivered_to_count":{"type":"integer","readOnly":true,"description":"Emails the receiving mail server confirmed delivered — a subset of sent_count."},"open_rate":{"type":"number","readOnly":true,"description":"Percentage (0–100) of the emails sent. Null until the broadcast has been sent to at least one recipient."},"click_rate":{"type":"number","readOnly":true,"description":"Percentage (0–100) of the emails sent. Null until the broadcast has been sent to at least one recipient."},"bounce_rate":{"type":"number","readOnly":true,"description":"Percentage (0–100) of the emails sent. Null until the broadcast has been sent to at least one recipient."},"unsubscribe_rate":{"type":"number","readOnly":true,"description":"Percentage (0–100) of the emails sent. Null until the broadcast has been sent to at least one recipient."},"list_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"Ids of the lists / saved segments this broadcast is sent to. Only lists and saved segments are listed — other recipient rules set up in the admin (tags, products, filters, ...) are not, and exclusions never are."},"segment_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"Ids of the lists / saved segments this broadcast is sent to. Only lists and saved segments are listed — other recipient rules set up in the admin (tags, products, filters, ...) are not, and exclusions never are."},"verified_sender_id":{"type":"integer","readOnly":true,"description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","readOnly":true,"description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."}},"required":["email_template_id"]},"BroadcastSchedule":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"subject":{"type":"string"},"active":{"type":"boolean"},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"broadcast_subject_prefix":{"type":"string"},"repeat_unit":{"type":"string","enum":["non_recurring","daily","weekly","monthly"],"description":"When the newsletter goes out: every `repeat_interval` days, weeks or months (`repeat_unit`), on the `weekly_days` or the `monthly_day` / `monthly_week` + `monthly_week_day` set by the admin. `weekly_days` is comma-separated weekday numbers (1 = Monday, 7 = Sunday); `monthly_week` -1 is the last week of the month."},"repeat_interval":{"type":"integer","description":"When the newsletter goes out: every `repeat_interval` days, weeks or months (`repeat_unit`), on the `weekly_days` or the `monthly_day` / `monthly_week` + `monthly_week_day` set by the admin. `weekly_days` is comma-separated weekday numbers (1 = Monday, 7 = Sunday); `monthly_week` -1 is the last week of the month."},"weekly_days":{"type":"string","description":"When the newsletter goes out: every `repeat_interval` days, weeks or months (`repeat_unit`), on the `weekly_days` or the `monthly_day` / `monthly_week` + `monthly_week_day` set by the admin. `weekly_days` is comma-separated weekday numbers (1 = Monday, 7 = Sunday); `monthly_week` -1 is the last week of the month."},"monthly_day":{"type":"integer","description":"When the newsletter goes out: every `repeat_interval` days, weeks or months (`repeat_unit`), on the `weekly_days` or the `monthly_day` / `monthly_week` + `monthly_week_day` set by the admin. `weekly_days` is comma-separated weekday numbers (1 = Monday, 7 = Sunday); `monthly_week` -1 is the last week of the month."},"monthly_week":{"type":"integer","description":"When the newsletter goes out: every `repeat_interval` days, weeks or months (`repeat_unit`), on the `weekly_days` or the `monthly_day` / `monthly_week` + `monthly_week_day` set by the admin. `weekly_days` is comma-separated weekday numbers (1 = Monday, 7 = Sunday); `monthly_week` -1 is the last week of the month."},"monthly_week_day":{"type":"integer","description":"When the newsletter goes out: every `repeat_interval` days, weeks or months (`repeat_unit`), on the `weekly_days` or the `monthly_day` / `monthly_week` + `monthly_week_day` set by the admin. `weekly_days` is comma-separated weekday numbers (1 = Monday, 7 = Sunday); `monthly_week` -1 is the last week of the month."},"next_at":{"type":"string","format":"date-time","readOnly":true},"last_at":{"type":"string","format":"date-time","readOnly":true},"missed_at":{"type":"string","format":"date-time","readOnly":true},"delivered_count":{"type":"integer","readOnly":true},"recipients_segment_id":{"type":"integer"},"email_template_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"resend_delay_count":{"type":"integer"},"resend_delay_unit":{"type":"string","enum":["hours","days"]}},"required":["name","repeat_unit","next_at","created_at","updated_at"]},"BuilderDocNode":{"type":"object","properties":{"id":{"type":"string","description":"Unique node id, e.g. n_abc123"},"type":{"type":"string","description":"Node type identifier, e.g. section, row, column, elements/headline, elements/paragraph"},"name":{"type":"string","nullable":true,"description":"User-assigned name for this node. Null/absent if no custom name has been set. This is the stored value only — the type-derived display name is available via the `name` field on the node type from the node_types endpoint."},"settings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BuilderDocNodeSetting"},"description":"Setting id → setting value. Every setting is optional; omitted settings use component defaults."},"children":{"type":"array","items":{"$ref":"#/components/schemas/BuilderDocNode"},"description":"Child nodes, recursively."},"revision":{"type":"string","description":"Content revision as of this read of the working version. Pass it back as `revision` on updates and deletes to fail with 409 if the node changed meanwhile. Absent on stored versions."}},"required":["id","type"],"description":"A node in a BuilderDoc tree."},"BuilderDocNodeSetting":{"type":"object","properties":{"base":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Arg value — arbitrary JSON scalar, object, or array. Shape depends on the specific setting and arg."},"description":"Base breakpoint arg values. Optional. If not specified, uses the arg's default value."},"tab":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Arg value — arbitrary JSON scalar, object, or array. Shape depends on the specific setting and arg."},"description":"Tablet breakpoint arg values. Optional — each arg overrides the base value for this breakpoint and below only."},"mob":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}],"nullable":true,"description":"Arg value — arbitrary JSON scalar, object, or array. Shape depends on the specific setting and arg."},"description":"Mobile breakpoint arg values. Optional — each arg overrides the base (or tablet) value for this breakpoint only."}},"description":"Setting values grouped by breakpoint. Every breakpoint is optional; omitted breakpoints inherit from base. Within a breakpoint, every arg is optional and independently overrides the previous breakpoint's value on a per-arg basis."},"Calendar":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}}}},"Canvas":{"type":"object","properties":{"title":{"type":"string"},"internal_name":{"type":"string"},"description":{"type":"string"},"video_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","internal_name","created_at","updated_at"]},"CanvasOptional":{"type":"object","properties":{"title":{"type":"string"},"internal_name":{"type":"string"},"description":{"type":"string"},"video_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"card_image_id":{"type":"integer"}}},"Certificate":{"type":"object","properties":{"send_notification_email":{"type":"boolean","description":"Whether to email participants when they receive this certificate."},"notification_email_subject":{"type":"string","description":"Subject of the certificate notification email; required when notifications are enabled."},"notification_email_body":{"type":"string","description":"Body of the certificate notification email; required when notifications are enabled. Supports the same personalization tags as the admin editor."}}},"ChangelogEntry":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"tag":{"type":"string","description":"Kind of change: one of `simplification`, `improvement`, `feature`, `fix`, `optimization`."},"headline":{"type":"string","description":"Short title. Optional: without one, the body stands alone."},"body":{"type":"string","description":"What changed, as HTML (not markdown). Users see this."},"published":{"type":"boolean","description":"Whether users see the entry. Setting it to true stamps `published_at`. The `publish` and `unpublish` actions do the same."},"published_at":{"type":"string","format":"date-time","readOnly":true},"deployed_at":{"type":"string","format":"date-time","description":"When the change went live. Defaults to now on create."},"slack_posted_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the entry was queued for the team Slack wall, or null if it has not been queued."},"wall":{"type":"boolean","description":"Slack wall override: true includes an entry, false excludes it, null uses the meaningful-change rule. Smallies, unpublished and deleted entries are always excluded."},"smallie":{"type":"boolean","description":"A small change: listed, but it does not light up the \"new updates\" dot in the admin nav."},"feature":{"type":"string","enum":["academy","admin_search","admin_ui","affiliate_programs","ai_chat","ai_coach","assets","automations","bots","broadcasts","chat","coaching_programs","contact_notes","contacts","contracts","courses","credits","custom_fields","deals","domains","done_for_you","events","forum","funnels","ideas","interactions","labels","landing_pages","lists","member_directory","mobile_app","newsletters","nps_surveys","page_builder","pipelines","podcasts","products","scheduling_links","segments","shopping_cart","site_groups","site_search","sites","surveys","tags","tasks","testimonials","tickets","triggers","worksheets"],"description":"The area of Simplero the change is in (SimpleroFeature). Optional."},"internal_notes":{"type":"string","description":"Staff-only HTML notes for whoever checks the entry: background, where to find it, how to test it. Users never see it."},"sdev_task_url":{"type":"string","format":"uri","description":"The SDev task that built the change."},"generated_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the changelog file was written, for an entry loaded on deploy. Null otherwise."},"source_url":{"type":"string","format":"uri","readOnly":true,"description":"The changelog file on GitHub the entry was loaded from, or null for an entry made by hand or over the API."},"idea":{"$ref":"#/components/schemas/Idea","readOnly":true,"description":"The customer Idea this change delivers, if any."},"idea_id":{"type":"integer","description":"The customer Idea this change delivers, if any."},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"Image or video shown with the entry, if any."},"asset_id":{"type":"integer","description":"Image or video shown with the entry, if any."},"view_url":{"type":"string","format":"uri","readOnly":true,"description":"Public page for the entry on the changelog."},"super_admin_url":{"type":"string","format":"uri","readOnly":true,"description":"Where staff edit the entry."}},"required":["created_at","updated_at","tag","body","deployed_at"]},"ChangelogEntryOptional":{"type":"object","properties":{"tag":{"type":"string","description":"Kind of change: one of `simplification`, `improvement`, `feature`, `fix`, `optimization`."},"headline":{"type":"string","description":"Short title. Optional: without one, the body stands alone."},"body":{"type":"string","description":"What changed, as HTML (not markdown). Users see this."},"published":{"type":"boolean","description":"Whether users see the entry. Setting it to true stamps `published_at`. The `publish` and `unpublish` actions do the same."},"deployed_at":{"type":"string","format":"date-time","description":"When the change went live. Defaults to now on create."},"wall":{"type":"boolean","description":"Slack wall override: true includes an entry, false excludes it, null uses the meaningful-change rule. Smallies, unpublished and deleted entries are always excluded."},"smallie":{"type":"boolean","description":"A small change: listed, but it does not light up the \"new updates\" dot in the admin nav."},"feature":{"type":"string","enum":["academy","admin_search","admin_ui","affiliate_programs","ai_chat","ai_coach","assets","automations","bots","broadcasts","chat","coaching_programs","contact_notes","contacts","contracts","courses","credits","custom_fields","deals","domains","done_for_you","events","forum","funnels","ideas","interactions","labels","landing_pages","lists","member_directory","mobile_app","newsletters","nps_surveys","page_builder","pipelines","podcasts","products","scheduling_links","segments","shopping_cart","site_groups","site_search","sites","surveys","tags","tasks","testimonials","tickets","triggers","worksheets"],"description":"The area of Simplero the change is in (SimpleroFeature). Optional."},"internal_notes":{"type":"string","description":"Staff-only HTML notes for whoever checks the entry: background, where to find it, how to test it. Users never see it."},"sdev_task_url":{"type":"string","format":"uri","description":"The SDev task that built the change."},"idea_id":{"type":"integer","description":"The customer Idea this change delivers, if any."},"asset_id":{"type":"integer","description":"Image or video shown with the entry, if any."}}},"Charge":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"purchase_id":{"type":"integer"},"customer_id":{"type":"integer"},"product_id":{"type":"integer"},"invoice_number":{"type":"string"},"paid_at":{"type":"string","format":"date-time","readOnly":true},"due_at":{"type":"string","format":"date-time","readOnly":true},"their_price_cents":{"type":"integer"},"their_tax_cents":{"type":"integer"},"their_total_cents":{"type":"integer"},"shipping_cents":{"type":"integer"},"currency_code":{"type":"string"},"tax_percent":{"type":"number"},"quantity":{"type":"integer","readOnly":true},"period_ends_at":{"type":"string","format":"date-time","readOnly":true},"pending_at":{"type":"string","format":"date-time","readOnly":true},"custom_text":{"type":"string","readOnly":true},"eu_vat_reverse_charge":{"type":"boolean","readOnly":true},"tax_set_manually":{"type":"boolean","readOnly":true},"refund":{"type":"boolean","readOnly":true,"description":"True for a credit note: a refund of an earlier charge."},"installment_num":{"type":"integer","readOnly":true,"description":"For a charge that is one installment of a payment plan: which one, and out of how many."},"installments_count":{"type":"integer","readOnly":true,"description":"For a charge that is one installment of a payment plan: which one, and out of how many."},"price_period_id":{"type":"integer","readOnly":true},"installment_id":{"type":"integer","readOnly":true},"affiliate_id":{"type":"integer","readOnly":true},"affiliate_cents":{"type":"integer","readOnly":true},"affiliate_percentage":{"type":"integer","readOnly":true},"dispute_status":{"type":"string","enum":["open","won","lost"],"nullable":true,"readOnly":true,"description":"A chargeback on the payment for this charge: `open`, `won` or `lost`; null when it was never disputed. While a dispute is open or after it is lost, the commission does not count as earned."},"affiliate_fixed_amount":{"type":"integer","readOnly":true,"description":"The affiliate's fixed commission in cents, when the commission is a fixed amount rather than a percentage."},"affiliate_impact_at":{"type":"string","format":"date-time","readOnly":true,"description":"When this charge's commission counts as earned and payable: when it was paid, plus the program's delay days."},"upstream_affiliate_id":{"type":"integer","readOnly":true,"description":"Tiered programs: the affiliate who referred the selling affiliate, and the commission they earn on this charge."},"upstream_affiliate_cents":{"type":"integer","readOnly":true,"description":"Tiered programs: the affiliate who referred the selling affiliate, and the commission they earn on this charge."},"upstream_affiliate_percentage":{"type":"integer","readOnly":true,"description":"Tiered programs: the affiliate who referred the selling affiliate, and the commission they earn on this charge."},"our_price_cents":{"type":"integer","readOnly":true,"description":"The same amounts converted into the account's own currency (`Account#currency`) for accounting. `their_*` is what the customer was actually charged, in `currency_code`."},"our_tax_cents":{"type":"integer","readOnly":true,"description":"The same amounts converted into the account's own currency (`Account#currency`) for accounting. `their_*` is what the customer was actually charged, in `currency_code`."},"our_total_cents":{"type":"integer","readOnly":true,"description":"The same amounts converted into the account's own currency (`Account#currency`) for accounting. `their_*` is what the customer was actually charged, in `currency_code`."},"our_shipping_cents":{"type":"integer","readOnly":true,"description":"The same amounts converted into the account's own currency (`Account#currency`) for accounting. `their_*` is what the customer was actually charged, in `currency_code`."},"line_items":{"type":"array","items":{"type":"string"},"readOnly":true,"description":"Human-readable description of each line on the receipt. v1 called this `items`."},"transaction_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"Simplero's own ids for the transactions that paid this charge."},"gateway_transaction_ids":{"type":"array","items":{"type":"string"},"readOnly":true,"description":"The payment processor's own transaction ids for the same transactions. v1 called this `transaction_transaction_ids`."},"payment_methods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true,"description":"Payment processor name"},"type":{"type":"string","nullable":true},"cardtype":{"type":"string","nullable":true},"last4":{"type":"string","nullable":true},"expiration":{"type":"string","nullable":true},"amount_cents":{"type":"integer","description":"How much of this charge was paid with this payment method, in the charge currency. Several applications of the same method are summed."}}},"readOnly":true,"description":"How this charge was paid, one entry per distinct payment method. Card numbers are never returned — only the last four digits, as in v1."},"payment_processor_fee_cents":{"type":"integer","readOnly":true,"description":"What the payment processor charged the account to collect this payment, in the account's own currency. v1 called this `fees` and sent it in dollars."},"manual_account_number":{"type":"string","readOnly":true,"description":"The product's accounting classification number, for exporting into a bookkeeping system."}},"required":["created_at","updated_at","purchase_id","product_id"]},"ChatBot::Conversation":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string"},"context_type":{"type":"string","description":"Bot for a chat with a bot directly, HelpDesk for a chat in a help desk widget."},"context_id":{"type":"integer","description":"ID of the bot (context_type Bot) or help desk (context_type HelpDesk) this conversation belongs to. Filter with bot_id to get both for one bot."},"submitting_account_id":{"type":"integer","readOnly":true,"description":"For a chat in a shared support help desk: ID of the customer account it was started from."},"channel":{"type":"string"},"starred":{"type":"boolean"},"archived":{"type":"boolean"},"last_message_at":{"type":"string","format":"date-time","readOnly":true},"ended_at":{"type":"string","format":"date-time","readOnly":true},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true}},"required":["created_at","updated_at"]},"ChatBot::Message":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"conversation_id":{"type":"integer","description":"ID of the conversation this message belongs to."},"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string"},"content_is_html":{"type":"boolean"},"kind":{"type":"string","enum":["chat","summarize","speech"]},"rating":{"type":"string","enum":["negative","neutral","positive"]},"model":{"type":"string"},"auto_model":{"type":"boolean","readOnly":true,"description":"True when the person chose Auto and Simplero picked this message's model."},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"},"page_url":{"type":"string","description":"URL of the page the sender was on when they sent this message."},"tool_calls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string","description":"Tool name, e.g. `api--interface--execute`."},"status":{"type":"string","enum":["ok","error","pending"],"description":"`error` when the tool failed or reported success: false. `pending` while it still runs."},"writes_data":{"type":"boolean","description":"True when the call creates, changes or deletes data. For `api--interface--execute`, true for POST, PATCH, PUT and DELETE. Use with status `ok` to find changes that happened."},"account_handle":{"type":"string","nullable":true,"description":"Account the call ran against, when the tool names one (for example the customer account a help desk bot changed)."},"arguments":{"type":"object","description":"Arguments the bot passed. Secrets are replaced with [FILTERED]; long values are cut."},"result":{"type":"string","nullable":true,"description":"Short JSON text of what the tool returned. Secrets are replaced with [FILTERED]; at most 2000 characters."},"error":{"type":"string","nullable":true,"description":"Error message when status is `error`."},"started_at":{"type":"string","format":"date-time"},"finished_at":{"type":"string","format":"date-time","nullable":true,"description":"Null while the call is pending."},"duration_ms":{"type":"integer","nullable":true}}},"readOnly":true,"description":"Tool calls the bot made while writing this message, oldest first. Only assistant messages have them."}},"required":["created_at","updated_at","conversation_id","role"]},"ChatBot::OpeningMessage":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"owner":{"type":"object","readOnly":true,"description":"The bot these belong to — `owner_type` is always `Bot`."},"owner_id":{"type":"integer","description":"The bot these belong to — `owner_type` is always `Bot`."},"owner_type":{"type":"string"},"content":{"type":"string","description":"The message text, in the person's own words (\"I'd like to book a call\"), never the bot's greeting: the chat sends it as theirs. Shown as a button for the person to pick, or sent automatically when it is the only one and the bot has no welcome video or message."},"position":{"type":"integer","description":"Order the messages are offered in, lowest first. Messages without one come first, then in the order they were added."}},"required":["created_at","updated_at","owner_id","owner_type","content"]},"ChatBot::OpeningMessageOptional":{"type":"object","properties":{"content":{"type":"string","description":"The message text, in the person's own words (\"I'd like to book a call\"), never the bot's greeting: the chat sends it as theirs. Shown as a button for the person to pick, or sent automatically when it is the only one and the bot has no welcome video or message."},"position":{"type":"integer","description":"Order the messages are offered in, lowest first. Messages without one come first, then in the order they were added."}}},"ChatBot::WritingStyle":{"type":"object"},"ChoiceMenu":{"type":"object","properties":{"name":{"type":"string"},"internal_name":{"type":"string"},"active":{"type":"boolean"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer"},"options":{"type":"array","items":{"$ref":"#/components/schemas/ChoiceMenuOption"},"readOnly":true},"option_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"ChoiceMenuFlow":{"type":"object","properties":{"customer_id":{"type":"integer"},"purchase_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"purchase":{"$ref":"#/components/schemas/Purchase","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"responses":{"type":"array","items":{"$ref":"#/components/schemas/ChoiceMenuResponse"},"readOnly":true},"response_ids":{"type":"array","items":{"type":"integer"},"readOnly":true}},"required":["created_at","updated_at"]},"ChoiceMenuOption":{"type":"object","properties":{"pause_purchase_duration_count":{"type":"integer"},"pause_purchase_duration_unit":{"type":"string","enum":["days","weeks","months"]},"menu":{"$ref":"#/components/schemas/ChoiceMenu","readOnly":true},"choice_menu_id":{"type":"integer"},"title":{"type":"string"},"active":{"type":"boolean"},"always_run":{"type":"boolean"},"position":{"type":"integer"},"content":{"type":"string","description":"HTML content from a WYSIWYG editor"},"action_type":{"type":"string","enum":["none","change_plan","upgrade","downgrade","shortest_downgrade","pause_purchase","cancel_subscription"]},"result_type":{"type":"string","enum":["default","custom_message","redirect_to","goto_choice_menu"]},"include_secret_prices":{"type":"boolean"},"goto_choice_menu_id":{"type":"integer","description":"Menu shown next when result_type is goto_choice_menu"},"custom_message_content":{"type":"string","description":"HTML shown in the message after this option is chosen. Stored in result_payload, so it is not a wysiwyg column."},"custom_message_button_label":{"type":"string"},"custom_message_button_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"redirect_to_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"specific_price_id":{"type":"integer","description":"The one price a plan-change option offers, instead of every eligible price"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["choice_menu_id","title","created_at","updated_at"]},"ChoiceMenuOptionOptional":{"type":"object","properties":{"pause_purchase_duration_count":{"type":"integer"},"pause_purchase_duration_unit":{"type":"string","enum":["days","weeks","months"]},"title":{"type":"string"},"active":{"type":"boolean"},"always_run":{"type":"boolean"},"position":{"type":"integer"},"content":{"type":"string","description":"HTML content from a WYSIWYG editor"},"action_type":{"type":"string","enum":["none","change_plan","upgrade","downgrade","shortest_downgrade","pause_purchase","cancel_subscription"]},"result_type":{"type":"string","enum":["default","custom_message","redirect_to","goto_choice_menu"]},"include_secret_prices":{"type":"boolean"},"goto_choice_menu_id":{"type":"integer","description":"Menu shown next when result_type is goto_choice_menu"},"custom_message_content":{"type":"string","description":"HTML shown in the message after this option is chosen. Stored in result_payload, so it is not a wysiwyg column."},"custom_message_button_label":{"type":"string"},"custom_message_button_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"redirect_to_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"specific_price_id":{"type":"integer","description":"The one price a plan-change option offers, instead of every eligible price"}}},"ChoiceMenuOptional":{"type":"object","properties":{"name":{"type":"string"},"internal_name":{"type":"string"},"active":{"type":"boolean"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"asset_id":{"type":"integer"}}},"ChoiceMenuResponse":{"type":"object","properties":{"flow":{"$ref":"#/components/schemas/ChoiceMenuFlow","readOnly":true},"choice_menu_flow_id":{"type":"integer"},"option":{"$ref":"#/components/schemas/ChoiceMenuOption","readOnly":true},"choice_menu_option_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["choice_menu_flow_id","choice_menu_option_id","created_at","updated_at"]},"CoachingProgram":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"title":{"type":"string"},"internal_name":{"type":"string","description":"Name shown only in admin. Defaults to title"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"flexible_scheduling":{"type":"boolean","description":"Lets clients book their sessions in any order"},"one_on_one_chat_enabled":{"type":"boolean"},"description":{"type":"string"},"sessions":{"type":"array","items":{"$ref":"#/components/schemas/CoachingSession"},"readOnly":true},"session_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","created_at","updated_at"]},"CoachingProgramOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"title":{"type":"string"},"internal_name":{"type":"string","description":"Name shown only in admin. Defaults to title"},"card_image_id":{"type":"integer"},"flexible_scheduling":{"type":"boolean","description":"Lets clients book their sessions in any order"},"one_on_one_chat_enabled":{"type":"boolean"},"description":{"type":"string"}}},"CoachingSession":{"type":"object","properties":{"coaching_program":{"$ref":"#/components/schemas/CoachingProgram","readOnly":true},"coaching_program_id":{"type":"integer"},"quantity":{"type":"integer","description":"How many of these sessions each client gets"},"title":{"type":"string"},"description":{"type":"string"},"internal_name":{"type":"string","description":"Name shown only in admin. Defaults to title"},"duration_minutes":{"type":"integer","description":"Length of each session. Overrides the scheduling link's duration"},"scheduling_link":{"$ref":"#/components/schemas/SchedulingLink","readOnly":true,"description":"Where clients book these sessions. Its live setting is ignored here"},"scheduling_link_id":{"type":"integer","description":"Where clients book these sessions. Its live setting is ignored here"},"position":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["coaching_program_id","title","created_at","updated_at"]},"CoachingSessionOptional":{"type":"object","properties":{"quantity":{"type":"integer","description":"How many of these sessions each client gets"},"title":{"type":"string"},"description":{"type":"string"},"internal_name":{"type":"string","description":"Name shown only in admin. Defaults to title"},"duration_minutes":{"type":"integer","description":"Length of each session. Overrides the scheduling link's duration"},"scheduling_link_id":{"type":"integer","description":"Where clients book these sessions. Its live setting is ignored here"},"position":{"type":"integer"}}},"Contract":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"internal_name":{"type":"string","description":"Name shown only in the admin."},"content":{"type":"string","description":"HTML content from a WYSIWYG editor"},"active":{"type":"boolean","description":"Inactive contracts are not asked for."},"show_in_admin":{"type":"boolean","description":"Starred in the admin: marked with a star in pickers and filters."},"single_signature_per_customer":{"type":"boolean","description":"Skip signing for people who already signed any version."},"bcc_emails":{"type":"string","description":"Comma-separated addresses that get a copy of each signed contract."},"current_version":{"$ref":"#/components/schemas/ContractVersion","readOnly":true,"description":"The version new signers sign. Changing the title or content of a contract that has signatures starts a new version."},"versions":{"type":"array","items":{"$ref":"#/components/schemas/ContractVersion"},"readOnly":true},"version_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","internal_name","content","created_at","updated_at"]},"ContractAssociation":{"type":"object","properties":{"contractable":{"type":"object","readOnly":true},"contractable_id":{"type":"integer"},"contractable_type":{"type":"string"},"contract":{"$ref":"#/components/schemas/Contract","readOnly":true},"contract_id":{"type":"integer"},"signing_mode":{"type":"string","enum":["inline_checkbox","modal_before_payment","page_after_payment"],"description":"When they sign. `inline_checkbox` is a check box on the order form (products) or the registration form (affiliate programs). `modal_before_payment` is before payment or registration. `page_after_payment` is after payment or registration. On a product, a mode other than `inline_checkbox` needs a plan with signature contracts."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["contractable","contractable_id","contractable_type","contract","contract_id","signing_mode","created_at","updated_at"]},"ContractAssociationOptional":{"type":"object","properties":{"signing_mode":{"type":"string","enum":["inline_checkbox","modal_before_payment","page_after_payment"],"description":"When they sign. `inline_checkbox` is a check box on the order form (products) or the registration form (affiliate programs). `modal_before_payment` is before payment or registration. `page_after_payment` is after payment or registration. On a product, a mode other than `inline_checkbox` needs a plan with signature contracts."}}},"ContractOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"internal_name":{"type":"string","description":"Name shown only in the admin."},"content":{"type":"string","description":"HTML content from a WYSIWYG editor"},"active":{"type":"boolean","description":"Inactive contracts are not asked for."},"show_in_admin":{"type":"boolean","description":"Starred in the admin: marked with a star in pickers and filters."},"single_signature_per_customer":{"type":"boolean","description":"Skip signing for people who already signed any version."},"bcc_emails":{"type":"string","description":"Comma-separated addresses that get a copy of each signed contract."}}},"ContractSignature":{"type":"object","properties":{"contract_version":{"$ref":"#/components/schemas/ContractVersion","readOnly":true},"contract_version_id":{"type":"integer","readOnly":true},"contract_id":{"type":"integer","readOnly":true},"version_number":{"type":"string","readOnly":true,"description":"Which version was signed: 'v1', 'v2'… in creation order."},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer","readOnly":true},"signing_context_type":{"type":"string","readOnly":true,"description":"What it was signed for: Entrant (a purchase), EventOccurrenceParticipant (an event registration) or Affiliate."},"signing_context_id":{"type":"integer","readOnly":true,"description":"The id of the record it was signed for; see signing_context_type."},"acceptance_method":{"type":"string","enum":["signature","check_box"],"readOnly":true},"ip_address":{"type":"string","readOnly":true},"signed_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"ContractVersion":{"type":"object","properties":{"title":{"type":"string","readOnly":true},"content":{"type":"string","readOnly":true,"description":"HTML content from a WYSIWYG editor"},"version_number":{"type":"string","readOnly":true,"description":"'v1', 'v2'… in creation order."},"latest":{"type":"boolean","readOnly":true,"description":"True for the contract's current version."},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","content","created_at"]},"CountdownInstance":{"type":"object","properties":{"timer":{"$ref":"#/components/schemas/CountdownTimer","readOnly":true},"countdown_timer_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"source":{"type":"object","readOnly":true},"source_id":{"type":"integer"},"source_type":{"type":"string"},"starts_at":{"type":"string","format":"date-time","readOnly":true},"ends_at":{"type":"string","format":"date-time","readOnly":true},"canceled_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["customer_id","starts_at","ends_at","created_at","updated_at"]},"CountdownTimer":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"internal_name":{"type":"string"},"strategy":{"type":"string","enum":["manual","fixed","user_choice","product_purchased_at","product_activated_at","list_subscribed_at","coaching_client_created_at","podcast_subscribed_at","activated_at"],"description":"Determines how the countdown's end time is calculated and which other fields apply:\n- manual: duration applies. Instance starts when created.\n- fixed: fixed_ends_at applies. All instances end at the same time.\n- activated_at: duration applies. Counts from the activation time of the object the visitor arrived through (purchase, list subscription, …). An instance is created the first time that visitor sees the timer on a page. deadline_time_of_day, when set, snaps that deadline to a clock time in the account time zone.\n- user_choice: the user_choice fields (instant_label, just_in_time_interval, daily_times, weekly_days, weekly_times, user_choices_time_zone) apply. The user picks their end time from generated options.\n- all other strategies: duration applies and owner_id/owner_type must reference the related object (Product, List, etc.)."},"duration_sign":{"type":"integer","description":"Sign for the duration: 1 = after the source date, -1 = before. Only applies when duration_count/duration_unit apply (see strategy)."},"fixed_ends_at":{"type":"string","format":"date-time","description":"Exact end time for the countdown. Only applies when strategy is fixed."},"allow_restart":{"type":"boolean","description":"When false (default), starting this timer for a contact who already has an instance is a no-op — the original deadline holds.\nWhen true, re-starting resets starts_at/ends_at and clears canceled_at so the countdown can run again for a new cycle."},"owner":{"type":"object","readOnly":true},"owner_id":{"type":"integer"},"owner_type":{"type":"string"},"instant_label":{"type":"string","description":"Only applies when strategy is user_choice. Label shown for the \"instant replay\" option. Example: \"Watch now\""},"just_in_time_interval":{"type":"integer","description":"Only applies when strategy is user_choice. Minutes interval for the just-in-time option. Example: 15"},"daily_times":{"type":"array","items":{"type":"string"},"description":"Only applies when strategy is user_choice. Daily recurring times in 24h HH:MM format. Example: [\"09:00\", \"15:30\"]"},"weekly_days":{"type":"array","items":{"type":"integer"},"description":"Only applies when strategy is user_choice. Days of the week the weekly option repeats, 0=Sunday through 6=Saturday. Example: [1, 3, 5]"},"weekly_times":{"type":"array","items":{"type":"string"},"description":"Only applies when strategy is user_choice. Weekly recurring times in 24h HH:MM format. Example: [\"10:00\", \"14:00\"]"},"user_choices_time_zone":{"type":"string","description":"Only applies when strategy is user_choice. Timezone source for generated options. \"account\" uses the account timezone; \"local\" uses the visitor's detected timezone."},"deadline_time_of_day":{"type":"string","description":"Only applies when strategy is activated_at. Optional clock time, stored as 24h HH:MM. \"09:00\", \"9:00 AM\", \"9am\" and \"09.00\" are all accepted. After the duration, the deadline moves to this time in the account time zone, or to the next day if that time has already passed. Blank means the deadline is exactly the duration after activation."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["internal_name","strategy","created_at","updated_at"]},"CountdownTimerOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"internal_name":{"type":"string"},"strategy":{"type":"string","enum":["manual","fixed","user_choice","product_purchased_at","product_activated_at","list_subscribed_at","coaching_client_created_at","podcast_subscribed_at","activated_at"],"description":"Determines how the countdown's end time is calculated and which other fields apply:\n- manual: duration applies. Instance starts when created.\n- fixed: fixed_ends_at applies. All instances end at the same time.\n- activated_at: duration applies. Counts from the activation time of the object the visitor arrived through (purchase, list subscription, …). An instance is created the first time that visitor sees the timer on a page. deadline_time_of_day, when set, snaps that deadline to a clock time in the account time zone.\n- user_choice: the user_choice fields (instant_label, just_in_time_interval, daily_times, weekly_days, weekly_times, user_choices_time_zone) apply. The user picks their end time from generated options.\n- all other strategies: duration applies and owner_id/owner_type must reference the related object (Product, List, etc.)."},"duration_sign":{"type":"integer","description":"Sign for the duration: 1 = after the source date, -1 = before. Only applies when duration_count/duration_unit apply (see strategy)."},"fixed_ends_at":{"type":"string","format":"date-time","description":"Exact end time for the countdown. Only applies when strategy is fixed."},"allow_restart":{"type":"boolean","description":"When false (default), starting this timer for a contact who already has an instance is a no-op — the original deadline holds.\nWhen true, re-starting resets starts_at/ends_at and clears canceled_at so the countdown can run again for a new cycle."},"owner_id":{"type":"integer"},"owner_type":{"type":"string"},"instant_label":{"type":"string","description":"Only applies when strategy is user_choice. Label shown for the \"instant replay\" option. Example: \"Watch now\""},"just_in_time_interval":{"type":"integer","description":"Only applies when strategy is user_choice. Minutes interval for the just-in-time option. Example: 15"},"daily_times":{"type":"array","items":{"type":"string"},"description":"Only applies when strategy is user_choice. Daily recurring times in 24h HH:MM format. Example: [\"09:00\", \"15:30\"]"},"weekly_days":{"type":"array","items":{"type":"integer"},"description":"Only applies when strategy is user_choice. Days of the week the weekly option repeats, 0=Sunday through 6=Saturday. Example: [1, 3, 5]"},"weekly_times":{"type":"array","items":{"type":"string"},"description":"Only applies when strategy is user_choice. Weekly recurring times in 24h HH:MM format. Example: [\"10:00\", \"14:00\"]"},"user_choices_time_zone":{"type":"string","description":"Only applies when strategy is user_choice. Timezone source for generated options. \"account\" uses the account timezone; \"local\" uses the visitor's detected timezone."},"deadline_time_of_day":{"type":"string","description":"Only applies when strategy is activated_at. Optional clock time, stored as 24h HH:MM. \"09:00\", \"9:00 AM\", \"9am\" and \"09.00\" are all accepted. After the duration, the deadline moves to this time in the account time zone, or to the next day if that time has already passed. Blank means the deadline is exactly the duration after activation."}}},"Coupon":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"coupon_code":{"type":"string"},"internal_name":{"type":"string"},"discount_type":{"type":"string","enum":["none","percent","cents"]},"discount_percent":{"type":"number"},"discount_cents":{"type":"integer"},"discount_on_renewal":{"type":"boolean"},"discount_on_installments":{"type":"boolean"},"auto_apply":{"type":"boolean"},"auto_apply_trigger_quantity":{"type":"integer"},"auto_apply_target":{"type":"string"},"available_from":{"type":"string","format":"date-time"},"available_to":{"type":"string","format":"date-time"},"quantity_remain":{"type":"integer"},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"},"readOnly":true},"product_ids":{"type":"array","items":{"type":"integer"}},"eligible_labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true,"description":"Restricts the coupon to products with any of these labels."},"eligible_label_ids":{"type":"array","items":{"type":"integer"},"description":"Restricts the coupon to products with any of these labels."},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true,"description":"Restricts the coupon to products in any of these categories."},"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"Restricts the coupon to products in any of these categories."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"CouponOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"coupon_code":{"type":"string"},"internal_name":{"type":"string"},"discount_type":{"type":"string","enum":["none","percent","cents"]},"discount_percent":{"type":"number"},"discount_cents":{"type":"integer"},"discount_on_renewal":{"type":"boolean"},"discount_on_installments":{"type":"boolean"},"auto_apply":{"type":"boolean"},"auto_apply_trigger_quantity":{"type":"integer"},"auto_apply_target":{"type":"string"},"available_from":{"type":"string","format":"date-time"},"available_to":{"type":"string","format":"date-time"},"quantity_remain":{"type":"integer"},"product_ids":{"type":"array","items":{"type":"integer"}},"eligible_label_ids":{"type":"array","items":{"type":"integer"},"description":"Restricts the coupon to products with any of these labels."},"facet_value_ids":{"type":"array","items":{"type":"integer"},"description":"Restricts the coupon to products in any of these categories."}}},"Course":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"access_control":{"$ref":"#/components/schemas/AccessControl","description":"When this is live and who gets in. Replaces `publish_status` and `publish_at`."},"access_gate":{"$ref":"#/components/schemas/AccessGate","description":"What someone without access sees, and how they get in."},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"curriculum_facets":{"type":"array","items":{"$ref":"#/components/schemas/Facet"},"readOnly":true,"description":"Facets this course's modules and lessons can be tagged with. Module and lesson facet_values must belong to one of them."},"curriculum_facet_ids":{"type":"array","items":{"type":"integer"},"description":"Facets this course's modules and lessons can be tagged with. Module and lesson facet_values must belong to one of them."},"title":{"type":"string"},"internal_name":{"type":"string"},"url":{"type":"string","format":"uri","readOnly":true,"description":"Course's public page on its site."},"position":{"type":"integer","description":"Sort order among the course's siblings on the same site, lowest first. This is the catalog / course-list order. On create, setting this inserts the course at that position and shifts later courses on the same site down; omit it to append at the end (the default). On update, setting it moves the course and reorders the affected siblings accordingly."},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"short_description":{"type":"string"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"display_mode":{"type":"string"},"comments_mode":{"type":"string"},"completion_enabled":{"type":"boolean"},"require_completion":{"type":"boolean"},"access_restricted":{"type":"boolean"},"autoplay_enabled":{"type":"boolean"},"prevent_downloads":{"type":"boolean"},"podcast_enabled":{"type":"boolean"},"show_lesson_author":{"type":"boolean"},"hide_content_counts":{"type":"boolean"},"hide_content_duration":{"type":"boolean"},"allow_private_note":{"type":"boolean"},"add_lessons_to_top":{"type":"boolean"},"award_certificates":{"type":"boolean"},"show_lesson_updated_at":{"type":"boolean"},"hide_from_index":{"type":"boolean","description":"Hides the course from the site's course directory page. It stays reachable by its URL."},"show_upcoming_lessons":{"type":"boolean","description":"Shows lessons in drip-by-day modules that have not opened yet, locked, with the date they open. They count toward the lesson total and progress."},"navigation_bar_position":{"type":"string","enum":["below_additional_media","above_additional_media"],"description":"Where the prev/complete/next bar sits relative to additional media files on each lesson. `below_additional_media` (existing courses) or `above_additional_media` (new courses)."},"exclude_from_new_content":{"type":"boolean"},"show_unauthorized":{"type":"string"},"unauthorized_btn_type":{"type":"integer"},"unauthorized_btn_label":{"type":"string"},"unauthorized_btn_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"unauthorized_message":{"type":"string"},"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer"},"site_groups":{"type":"array","items":{"$ref":"#/components/schemas/SiteGroup"},"readOnly":true},"site_group_ids":{"type":"array","items":{"type":"integer"}},"catalog_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"catalog_image_id":{"type":"integer"},"app_card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"app_card_image_id":{"type":"integer"},"description_background_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"description_background_image_id":{"type":"integer"},"default_lesson_thumbnail":{"$ref":"#/components/schemas/Asset","readOnly":true},"default_lesson_thumbnail_id":{"type":"integer"},"unauthorized_btn_product":{"$ref":"#/components/schemas/Product","readOnly":true},"unauthorized_btn_product_id":{"type":"integer"},"modules":{"type":"array","items":{"$ref":"#/components/schemas/CourseModule"},"readOnly":true,"description":"The course's modules, in order. A course created over the API starts with none — create them explicitly."},"module_ids":{"type":"array","items":{"type":"integer"},"description":"The course's modules, in order. A course created over the API starts with none — create them explicitly."},"lessons":{"type":"array","items":{"$ref":"#/components/schemas/CourseLesson"},"readOnly":true},"certificate":{"$ref":"#/components/schemas/Certificate","description":"Certificate notification email settings. Send an object with send_notification_email, notification_email_subject, and notification_email_body. Updates the existing certificate or creates its settings if absent."},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"},"readOnly":true},"product_ids":{"type":"array","items":{"type":"integer"}},"bot_tiers":{"type":"array","items":{"$ref":"#/components/schemas/BotTier"},"readOnly":true,"description":"Bot tiers that members with access to this course also get. The bots show as cards on the course page."},"bot_tier_ids":{"type":"array","items":{"type":"integer"},"description":"Bot tiers that members with access to this course also get. The bots show as cards on the course page."},"events":{"type":"array","items":{"$ref":"#/components/schemas/Event"},"readOnly":true,"description":"Event series shown on the course page."},"event_ids":{"type":"array","items":{"type":"integer"},"description":"Event series shown on the course page."}},"required":["created_at","updated_at","title","internal_name","site_id"]},"CourseLesson":{"type":"object","properties":{"drip_restriction_tag_ids":{"type":"array","items":{"type":"integer"},"description":"Account tag IDs required for restricted/dripped content (any matching tag). Empty array clears; omit to preserve."},"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"access_control":{"$ref":"#/components/schemas/AccessControl","description":"When this is live and who gets in. Replaces `publish_status` and `publish_at`."},"access_gate":{"$ref":"#/components/schemas/AccessGate","description":"What someone without access sees, and how they get in."},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"position":{"type":"integer","description":"Sort order among the lesson's siblings within its `course_module`, lowest first. On create, setting this inserts the lesson at that position and shifts later lessons in the same module down; omit it to append at the end (the default). On update, setting it moves the lesson and reorders the affected siblings accordingly."},"type":{"type":"string","description":"The kind of lesson. Must be one of:\n  - `CourseLesson::Content` — standard lesson with body, video, audio, attachments, etc.\n  - `CourseLesson::Quiz` — a quiz made up of questions the student answers.\n  - `CourseLesson::Worksheet` — a downloadable worksheet the student fills out.\n  - `CourseLesson::Survey` — a survey the student completes.\n`text` is also accepted for a standard content lesson and stored as `CourseLesson::Content`.\nShort names `Content`, `Quiz`, `Worksheet`, and `Survey` are accepted on create (any capitalization) and stored as the full class name.\nCannot be changed once the lesson is created."},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"short_description":{"type":"string"},"date":{"type":"string","format":"date-time"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"body_media_type":{"type":"string"},"media_duration_seconds":{"type":"integer"},"comments_count":{"type":"integer","readOnly":true},"total_views":{"type":"integer","readOnly":true},"comments_override":{"type":"string","enum":["inherit","allow","deny","moderate"],"description":"Whether members can comment on this lesson. `inherit` uses the course's `comments_mode`."},"expand_additional_content":{"type":"boolean"},"hide_additional_content_toggles":{"type":"boolean"},"show_unauthorized_course":{"type":"string","enum":["show","hide","overview"],"description":"What someone WITHOUT access to the COURSE sees for this lesson. This is the field behind the \"Preview\" badge shown on each lesson in the admin course editor — set it to `overview` for the \"Teaser\" badge. One of `hide`, `overview` (Teaser: title, description, and duration only), or `show` (Full: entire lesson content)."},"show_unauthorized_lesson":{"type":"string","enum":["overview","hide","content"],"description":"What someone WITH course access sees when this specific lesson isn't unlocked for them yet (e.g. still locked by drip scheduling). Distinct from `show_unauthorized_course` — does not affect the lesson's \"Preview\" badge. One of `hide`, `overview`, or `content` (show `unauthorized_message` instead)."},"unauthorized_message":{"type":"string"},"credit":{"$ref":"#/components/schemas/Credit","readOnly":true},"credit_id":{"type":"integer","readOnly":true},"credit_amount":{"type":"number","readOnly":true},"imported_from_url":{"type":"string","format":"uri","description":"Where this lesson was imported from, when it came from another platform. An importer sets it to the exact source lesson URL it read, and reads it back to tell what it has already brought over, so a re-run resumes instead of duplicating."},"passing_percentage":{"type":"number"},"time_limit":{"type":"integer"},"show_correct_answers":{"type":"boolean"},"disable_content_while_in_quiz":{"type":"boolean"},"complete_on_quiz_pass":{"type":"boolean","description":"When true, passing this quiz automatically marks the lesson itself as completed for the member — the same as if they'd clicked \"Complete\" — so any \"lesson completed\" trigger on it fires on quiz pass instead of requiring a separate manual step. If no passing grade is set, finishing the quiz counts as passing. Off by default."},"preferred_playback_rate_disabled":{"type":"boolean"},"allow_multiple_completions":{"type":"boolean"},"start_from_beginning":{"type":"boolean"},"loop_asset":{"type":"boolean"},"stop_after_lesson":{"type":"boolean"},"playback_end_behavior":{"type":"string"},"course_module":{"$ref":"#/components/schemas/CourseModule","readOnly":true},"course_module_id":{"type":"integer"},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer"},"thumbnail":{"$ref":"#/components/schemas/Asset","readOnly":true},"thumbnail_id":{"type":"integer"},"author":{"$ref":"#/components/schemas/User","readOnly":true},"author_id":{"type":"integer"},"worksheet":{"$ref":"#/components/schemas/Worksheet","readOnly":true},"worksheet_id":{"type":"integer"},"survey":{"$ref":"#/components/schemas/Survey","readOnly":true},"survey_id":{"type":"integer"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"readOnly":true},"attachment_ids":{"type":"array","items":{"type":"integer"}},"quiz_questions":{"type":"array","items":{"$ref":"#/components/schemas/QuizQuestion"},"readOnly":true},"quiz_question_ids":{"type":"array","items":{"type":"integer"}},"url":{"type":"string","format":"uri","readOnly":true,"description":"The lesson's page URL. Append `?media_position_\u003casset_id\u003e=\u003cseconds\u003e` (the asset's id is available via the `asset` property) to link directly to a timestamp in an embedded video — the same query param the player already reads on any page it's rendered on."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","type","comments_override","course_module_id","created_at","updated_at"]},"CourseLessonCompletion":{"type":"object","properties":{"lesson":{"$ref":"#/components/schemas/CourseLesson","readOnly":true},"lesson_id":{"type":"integer","readOnly":true},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"course_completed":{"type":"boolean","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["lesson_id","created_at"]},"CourseLessonOptional":{"type":"object","properties":{"drip_restriction_tag_ids":{"type":"array","items":{"type":"integer"},"description":"Account tag IDs required for restricted/dripped content (any matching tag). Empty array clears; omit to preserve."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"access_control":{"$ref":"#/components/schemas/AccessControl","description":"When this is live and who gets in. Replaces `publish_status` and `publish_at`."},"access_gate":{"$ref":"#/components/schemas/AccessGate","description":"What someone without access sees, and how they get in."},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"position":{"type":"integer","description":"Sort order among the lesson's siblings within its `course_module`, lowest first. On create, setting this inserts the lesson at that position and shifts later lessons in the same module down; omit it to append at the end (the default). On update, setting it moves the lesson and reorders the affected siblings accordingly."},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"short_description":{"type":"string"},"date":{"type":"string","format":"date-time"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"body_media_type":{"type":"string"},"media_duration_seconds":{"type":"integer"},"comments_override":{"type":"string","enum":["inherit","allow","deny","moderate"],"description":"Whether members can comment on this lesson. `inherit` uses the course's `comments_mode`."},"expand_additional_content":{"type":"boolean"},"hide_additional_content_toggles":{"type":"boolean"},"show_unauthorized_course":{"type":"string","enum":["show","hide","overview"],"description":"What someone WITHOUT access to the COURSE sees for this lesson. This is the field behind the \"Preview\" badge shown on each lesson in the admin course editor — set it to `overview` for the \"Teaser\" badge. One of `hide`, `overview` (Teaser: title, description, and duration only), or `show` (Full: entire lesson content)."},"show_unauthorized_lesson":{"type":"string","enum":["overview","hide","content"],"description":"What someone WITH course access sees when this specific lesson isn't unlocked for them yet (e.g. still locked by drip scheduling). Distinct from `show_unauthorized_course` — does not affect the lesson's \"Preview\" badge. One of `hide`, `overview`, or `content` (show `unauthorized_message` instead)."},"unauthorized_message":{"type":"string"},"imported_from_url":{"type":"string","format":"uri","description":"Where this lesson was imported from, when it came from another platform. An importer sets it to the exact source lesson URL it read, and reads it back to tell what it has already brought over, so a re-run resumes instead of duplicating."},"passing_percentage":{"type":"number"},"time_limit":{"type":"integer"},"show_correct_answers":{"type":"boolean"},"disable_content_while_in_quiz":{"type":"boolean"},"complete_on_quiz_pass":{"type":"boolean","description":"When true, passing this quiz automatically marks the lesson itself as completed for the member — the same as if they'd clicked \"Complete\" — so any \"lesson completed\" trigger on it fires on quiz pass instead of requiring a separate manual step. If no passing grade is set, finishing the quiz counts as passing. Off by default."},"preferred_playback_rate_disabled":{"type":"boolean"},"allow_multiple_completions":{"type":"boolean"},"start_from_beginning":{"type":"boolean"},"loop_asset":{"type":"boolean"},"stop_after_lesson":{"type":"boolean"},"playback_end_behavior":{"type":"string"},"asset_id":{"type":"integer"},"thumbnail_id":{"type":"integer"},"author_id":{"type":"integer"},"worksheet_id":{"type":"integer"},"survey_id":{"type":"integer"},"attachment_ids":{"type":"array","items":{"type":"integer"}},"quiz_question_ids":{"type":"array","items":{"type":"integer"}}}},"CourseModule":{"type":"object","properties":{"drip_restriction_tag_ids":{"type":"array","items":{"type":"integer"},"description":"Account tag IDs required for restricted/dripped content (any matching tag). Empty array clears; omit to preserve."},"access_control":{"$ref":"#/components/schemas/AccessControl","description":"When this is live and who gets in. Replaces `publish_status` and `publish_at`."},"title":{"type":"string"},"position":{"type":"integer","description":"Sort order among the module's siblings within its `course`, lowest first. On create, setting this inserts the module at that position and shifts later modules in the same course down; omit it to append at the end (the default). On update, setting it moves the module and reorders the affected siblings accordingly."},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"color":{"type":"string"},"drip_days_count":{"type":"integer"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"course":{"$ref":"#/components/schemas/Course","readOnly":true},"course_id":{"type":"integer"},"lessons":{"type":"array","items":{"$ref":"#/components/schemas/CourseLesson"},"readOnly":true},"lesson_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","course_id","created_at","updated_at"]},"CourseModuleOptional":{"type":"object","properties":{"drip_restriction_tag_ids":{"type":"array","items":{"type":"integer"},"description":"Account tag IDs required for restricted/dripped content (any matching tag). Empty array clears; omit to preserve."},"access_control":{"$ref":"#/components/schemas/AccessControl","description":"When this is live and who gets in. Replaces `publish_status` and `publish_at`."},"title":{"type":"string"},"position":{"type":"integer","description":"Sort order among the module's siblings within its `course`, lowest first. On create, setting this inserts the module at that position and shifts later modules in the same course down; omit it to append at the end (the default). On update, setting it moves the module and reorders the affected siblings accordingly."},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"color":{"type":"string"},"drip_days_count":{"type":"integer"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"lesson_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}}}},"CourseOptional":{"type":"object","properties":{"access_control":{"$ref":"#/components/schemas/AccessControl","description":"When this is live and who gets in. Replaces `publish_status` and `publish_at`."},"access_gate":{"$ref":"#/components/schemas/AccessGate","description":"What someone without access sees, and how they get in."},"label_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"curriculum_facet_ids":{"type":"array","items":{"type":"integer"},"description":"Facets this course's modules and lessons can be tagged with. Module and lesson facet_values must belong to one of them."},"title":{"type":"string"},"internal_name":{"type":"string"},"position":{"type":"integer","description":"Sort order among the course's siblings on the same site, lowest first. This is the catalog / course-list order. On create, setting this inserts the course at that position and shifts later courses on the same site down; omit it to append at the end (the default). On update, setting it moves the course and reorders the affected siblings accordingly."},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"short_description":{"type":"string"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"display_mode":{"type":"string"},"comments_mode":{"type":"string"},"completion_enabled":{"type":"boolean"},"require_completion":{"type":"boolean"},"access_restricted":{"type":"boolean"},"autoplay_enabled":{"type":"boolean"},"prevent_downloads":{"type":"boolean"},"podcast_enabled":{"type":"boolean"},"show_lesson_author":{"type":"boolean"},"hide_content_counts":{"type":"boolean"},"hide_content_duration":{"type":"boolean"},"allow_private_note":{"type":"boolean"},"add_lessons_to_top":{"type":"boolean"},"award_certificates":{"type":"boolean"},"show_lesson_updated_at":{"type":"boolean"},"hide_from_index":{"type":"boolean","description":"Hides the course from the site's course directory page. It stays reachable by its URL."},"show_upcoming_lessons":{"type":"boolean","description":"Shows lessons in drip-by-day modules that have not opened yet, locked, with the date they open. They count toward the lesson total and progress."},"navigation_bar_position":{"type":"string","enum":["below_additional_media","above_additional_media"],"description":"Where the prev/complete/next bar sits relative to additional media files on each lesson. `below_additional_media` (existing courses) or `above_additional_media` (new courses)."},"exclude_from_new_content":{"type":"boolean"},"show_unauthorized":{"type":"string"},"unauthorized_btn_type":{"type":"integer"},"unauthorized_btn_label":{"type":"string"},"unauthorized_btn_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"unauthorized_message":{"type":"string"},"site_group_ids":{"type":"array","items":{"type":"integer"}},"catalog_image_id":{"type":"integer"},"app_card_image_id":{"type":"integer"},"description_background_image_id":{"type":"integer"},"default_lesson_thumbnail_id":{"type":"integer"},"unauthorized_btn_product_id":{"type":"integer"},"module_ids":{"type":"array","items":{"type":"integer"},"description":"The course's modules, in order. A course created over the API starts with none — create them explicitly."},"certificate":{"$ref":"#/components/schemas/Certificate","description":"Certificate notification email settings. Send an object with send_notification_email, notification_email_subject, and notification_email_body. Updates the existing certificate or creates its settings if absent."},"product_ids":{"type":"array","items":{"type":"integer"}},"bot_tier_ids":{"type":"array","items":{"type":"integer"},"description":"Bot tiers that members with access to this course also get. The bots show as cards on the course page."},"event_ids":{"type":"array","items":{"type":"integer"},"description":"Event series shown on the course page."}}},"Credit":{"type":"object","properties":{"expiration_count":{"type":"integer"},"expiration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"show_in_admin":{"type":"boolean"},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"name_plural":{"type":"string"},"internal_name":{"type":"string"},"description":{"type":"string"},"trigger_shortcut":{"type":"boolean"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"CreditChange":{"type":"object","properties":{"amount":{"type":"string","readOnly":true,"description":"Exact decimal amount as a string, for example \"-1.25\". Negative for debits."},"note":{"type":"string","readOnly":true},"expires_at":{"type":"string","format":"date-time","readOnly":true},"credit_id":{"type":"integer","readOnly":true,"description":"Credit type ID. For AI credit top-ups, this refers to Simplero's own record and may not resolve through your API key."},"product_id":{"type":"integer","readOnly":true,"description":"Product ID, when present. For AI credit top-ups, this refers to Simplero's own record and may not resolve through your API key."},"purchase_id":{"type":"integer","readOnly":true,"description":"Purchase ID, when present. For AI credit top-ups, this refers to Simplero's own record and may not resolve through your API key."},"charge_id":{"type":"integer","readOnly":true,"description":"Charge ID, when present. For AI credit top-ups, this refers to Simplero's own record and may not resolve through your API key."},"reversal_of_id":{"type":"integer","readOnly":true},"owner_type":{"type":"string","readOnly":true,"description":"Who holds the credits. Always \"Account\" on this endpoint."},"owner_id":{"type":"integer","readOnly":true},"entrant_id":{"type":"integer","readOnly":true},"issued_by_user_id":{"type":"integer","readOnly":true},"consumed_by_user_id":{"type":"integer","readOnly":true},"credit_name":{"type":"string","nullable":true,"readOnly":true,"description":"Name of the credit type."},"product_name":{"type":"string","nullable":true,"readOnly":true,"description":"Name of the product that granted the credits, or null when there is no product."},"ai_usages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"operation_type":{"type":"string"},"model":{"type":"string"},"input_tokens":{"type":"integer","nullable":true},"output_tokens":{"type":"integer","nullable":true},"credits":{"type":"number"},"context":{"type":"string","nullable":true}},"required":["id","created_at","operation_type","model","credits"]},"readOnly":true,"description":"AI usage behind this credit change. Empty for non-AI changes and for the account-wallet mirror row created when a contact's custom credit pays for AI, which has no linked usage."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["amount","owner_type","owner_id","created_at","updated_at"]},"CreditOptional":{"type":"object","properties":{"expiration_count":{"type":"integer"},"expiration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"show_in_admin":{"type":"boolean"},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"name_plural":{"type":"string"},"internal_name":{"type":"string"},"description":{"type":"string"},"trigger_shortcut":{"type":"boolean"}}},"CustomDomain":{"type":"object","properties":{"domain":{"type":"string","description":"The hostname this record serves, e.g. www.example.com"},"force":{"type":"boolean","description":"Set on create to add the domain even when its DNS is not configured yet"},"points_to_id":{"type":"integer","description":"ID of the site, landing page, funnel, space, or account this domain serves"},"points_to_type":{"type":"string","description":"One of: Site, LandingPage, Funnel, Space, Account"},"active":{"type":"boolean","readOnly":true,"description":"Whether DNS resolves correctly, so the domain is serving traffic"},"preferred_domain":{"type":"string","readOnly":true,"description":"The hostname we build URLs with when both the root domain and www resolve"},"last_dns_check_result":{"type":"string","enum":["valid","warning","invalid"],"readOnly":true},"last_checked_at":{"type":"string","format":"date-time","readOnly":true},"failure_count":{"type":"integer","readOnly":true},"failure_began_at":{"type":"string","format":"date-time","readOnly":true},"cached_resolved_cname":{"type":"string","readOnly":true,"description":"CNAME the domain resolved to at the last check"},"cached_resolved_root_dns":{"type":"array","items":{"type":"string"},"readOnly":true,"description":"Root domain records seen at the last check, e.g. [\"A 34.228.154.79\"]"},"cname_should_be":{"type":"string","readOnly":true,"description":"The hostname the CNAME record must point to"},"a_record_should_be":{"type":"string","readOnly":true,"description":"The A record value for the root domain (example.com, not www.example.com)"},"url":{"type":"string","format":"uri","readOnly":true,"description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"cert_installed":{"type":"boolean","readOnly":true,"description":"Whether an SSL certificate is installed on the web servers"},"cert_expires_at":{"type":"string","format":"date-time","readOnly":true},"cert_error_at":{"type":"string","format":"date-time","readOnly":true},"cert_error":{"type":"string","readOnly":true,"description":"Why the last SSL certificate request failed, if it did"},"cdn_proxied":{"type":"boolean","description":"Serve this domain through the CloudFront CDN. Needs the CloudFront CDN proxy feature on the account"},"cdn_cert_status":{"type":"string","readOnly":true,"description":"CloudFront certificate status, e.g. pending-validation or issued. Point DNS at CloudFront once issued"},"cdn_error":{"type":"string","readOnly":true,"description":"Why the last CloudFront sync failed, if it did"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["domain","created_at","updated_at"]},"CustomDomainOptional":{"type":"object","properties":{"points_to_id":{"type":"integer","description":"ID of the site, landing page, funnel, space, or account this domain serves"},"points_to_type":{"type":"string","description":"One of: Site, LandingPage, Funnel, Space, Account"},"cdn_proxied":{"type":"boolean","description":"Serve this domain through the CloudFront CDN. Needs the CloudFront CDN proxy feature on the account"}}},"Customer":{"type":"object","properties":{"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}},"first_names":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string","format":"email"},"alternative_emails":{"type":"array","items":{"type":"string"},"description":"Other email addresses of this contact. They help Simplero find this contact when someone buys, signs up or registers with them; all email still goes to `email`. Setting it replaces the list (at most 10). An address that belongs to another contact returns 422 with that contact's id."},"phone_number":{"type":"string"},"do_not_contact":{"type":"boolean"},"do_not_sms":{"type":"boolean"},"locale":{"type":"string"},"gdpr_consent":{"type":"boolean"},"active_denorm":{"type":"boolean","readOnly":true},"last_warmed_at":{"type":"string","format":"date-time","readOnly":true,"description":"When this contact last engaged, such as opening or clicking an email, buying, or joining a list or event. Shown as \"Last engagement\" in the admin."},"lifetime_value_cents_excl_tax":{"type":"integer","readOnly":true,"description":"What this contact has paid in total (lifetime value), in cents of the account currency, excluding tax. Left out when the caller's admin role does not have the Financials permission."},"lead_score":{"type":"number","description":"Setting it replaces the score, as the contact form does. The `adjust_lead_score` action instead adds to it and records the change in the lead score history."},"lead_acquisition_cost_cents_excl_tax":{"type":"integer","description":"What it cost to acquire this lead, in cents of the account currency, excluding tax."},"customer_acquisition_cost_cents_excl_tax":{"type":"integer","description":"What it cost to turn this lead into a customer, in cents of the account currency, excluding tax."},"utm_campaign_first":{"type":"string","description":"The first `utm_campaign` this contact arrived with."},"utm_campaign_last":{"type":"string","description":"The most recent `utm_campaign` this contact arrived with."},"utm_content_first":{"type":"string","description":"The first `utm_content` this contact arrived with."},"utm_content_last":{"type":"string","description":"The most recent `utm_content` this contact arrived with."},"utm_medium_first":{"type":"string","description":"The first `utm_medium` this contact arrived with."},"utm_medium_last":{"type":"string","description":"The most recent `utm_medium` this contact arrived with."},"utm_source_first":{"type":"string","description":"The first `utm_source` this contact arrived with."},"utm_source_last":{"type":"string","description":"The most recent `utm_source` this contact arrived with."},"utm_term_first":{"type":"string","description":"The first `utm_term` this contact arrived with."},"utm_term_last":{"type":"string","description":"The most recent `utm_term` this contact arrived with."},"utm_adgroup_first":{"type":"string","description":"The first `utm_adgroup` this contact arrived with."},"utm_adgroup_last":{"type":"string","description":"The most recent `utm_adgroup` this contact arrived with."},"utm_keyword_first":{"type":"string","description":"The first `utm_keyword` this contact arrived with."},"utm_keyword_last":{"type":"string","description":"The most recent `utm_keyword` this contact arrived with."},"archived_at":{"type":"string","format":"date-time","readOnly":true},"affiliate":{"$ref":"#/components/schemas/Affiliate","readOnly":true},"affiliate_id":{"type":"integer"},"funnel":{"$ref":"#/components/schemas/Funnel","readOnly":true},"funnel_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer","readOnly":true},"credits":{"type":"array","items":{"type":"object","properties":{"credit_id":{"type":"integer"},"credit_name":{"type":"string","description":"Name of the credit type."},"balance":{"type":"number","description":"Current balance. Can be zero or negative."},"expires_at":{"type":"string","format":"date-time","nullable":true,"description":"When the next batch of credits expires, or null when none expire."}},"required":["credit_id","credit_name","balance","expires_at"]},"readOnly":true,"description":"Credit balances held by this contact, one entry per credit type. Credit types that have since been deleted are still listed."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["email","lead_score"]},"CustomerAffiliateAttribution":{"type":"object","properties":{"customer_id":{"type":"integer","readOnly":true},"affiliate_id":{"type":"integer","readOnly":true},"affiliate_program_id":{"type":"integer","readOnly":true},"expires_at":{"type":"string","format":"date-time","readOnly":true,"description":"When this affiliate stops getting credit for the contact's purchases in this program. Null means never."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["customer_id","affiliate_id","affiliate_program_id","created_at","updated_at"]},"CustomerNote":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer","readOnly":true},"noted_object":{"type":"object","readOnly":true},"noted_object_id":{"type":"integer"},"noted_object_type":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"private":{"type":"boolean"},"body_is_html":{"type":"boolean"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["customer_id","created_at","updated_at"]},"CustomerNoteOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"noted_object_id":{"type":"integer"},"noted_object_type":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"private":{"type":"boolean"},"body_is_html":{"type":"boolean"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"}}},"CustomerOptional":{"type":"object","properties":{"field_value_ids":{"type":"array","items":{"type":"integer"}},"first_names":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string","format":"email"},"alternative_emails":{"type":"array","items":{"type":"string"},"description":"Other email addresses of this contact. They help Simplero find this contact when someone buys, signs up or registers with them; all email still goes to `email`. Setting it replaces the list (at most 10). An address that belongs to another contact returns 422 with that contact's id."},"phone_number":{"type":"string"},"do_not_contact":{"type":"boolean"},"do_not_sms":{"type":"boolean"},"locale":{"type":"string"},"gdpr_consent":{"type":"boolean"},"lead_score":{"type":"number","description":"Setting it replaces the score, as the contact form does. The `adjust_lead_score` action instead adds to it and records the change in the lead score history."},"lead_acquisition_cost_cents_excl_tax":{"type":"integer","description":"What it cost to acquire this lead, in cents of the account currency, excluding tax."},"customer_acquisition_cost_cents_excl_tax":{"type":"integer","description":"What it cost to turn this lead into a customer, in cents of the account currency, excluding tax."},"utm_campaign_first":{"type":"string","description":"The first `utm_campaign` this contact arrived with."},"utm_campaign_last":{"type":"string","description":"The most recent `utm_campaign` this contact arrived with."},"utm_content_first":{"type":"string","description":"The first `utm_content` this contact arrived with."},"utm_content_last":{"type":"string","description":"The most recent `utm_content` this contact arrived with."},"utm_medium_first":{"type":"string","description":"The first `utm_medium` this contact arrived with."},"utm_medium_last":{"type":"string","description":"The most recent `utm_medium` this contact arrived with."},"utm_source_first":{"type":"string","description":"The first `utm_source` this contact arrived with."},"utm_source_last":{"type":"string","description":"The most recent `utm_source` this contact arrived with."},"utm_term_first":{"type":"string","description":"The first `utm_term` this contact arrived with."},"utm_term_last":{"type":"string","description":"The most recent `utm_term` this contact arrived with."},"utm_adgroup_first":{"type":"string","description":"The first `utm_adgroup` this contact arrived with."},"utm_adgroup_last":{"type":"string","description":"The most recent `utm_adgroup` this contact arrived with."},"utm_keyword_first":{"type":"string","description":"The first `utm_keyword` this contact arrived with."},"utm_keyword_last":{"type":"string","description":"The most recent `utm_keyword` this contact arrived with."},"affiliate_id":{"type":"integer"},"funnel_id":{"type":"integer"}}},"DateFilter":{"type":"object","properties":{"preset":{"type":"string","enum":["today","past","future","yesterday","this_week","this_month","this_quarter","this_year","last_week","last_month","last_quarter","last_year","since_week","since_month","since_quarter","since_year","custom"]},"from":{"type":"string","format":"date","description":"Only when preset is custom"},"to":{"type":"string","format":"date","description":"Only when preset is custom"}}},"Deal":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"value_cents":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"purchase":{"$ref":"#/components/schemas/Purchase","readOnly":true},"purchase_id":{"type":"integer"},"pipeline_stage":{"$ref":"#/components/schemas/PipelineStage","readOnly":true},"pipeline_stage_id":{"type":"integer"},"assignee":{"$ref":"#/components/schemas/User","readOnly":true},"assignee_id":{"type":"integer","readOnly":true},"last_activity_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}}},"required":["name","customer_id","pipeline_stage","pipeline_stage_id","last_activity_at","created_at","updated_at"]},"DealOptional":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"value_cents":{"type":"integer"},"customer_id":{"type":"integer"},"product_id":{"type":"integer"},"purchase_id":{"type":"integer"},"pipeline_stage_id":{"type":"integer"},"field_value_ids":{"type":"array","items":{"type":"integer"}}}},"DeletionLog":{"type":"object","properties":{"record_type":{"type":"string","readOnly":true},"record_id":{"type":"integer","readOnly":true},"record_name":{"type":"string","readOnly":true},"user_id":{"type":"integer","readOnly":true},"api_key_id":{"type":"integer","readOnly":true},"source":{"type":"string","readOnly":true},"snapshot":{"type":"object","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["record_type","record_id","source","snapshot","created_at"]},"DeliveryReply":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"from":{"type":"string","readOnly":true},"subject":{"type":"string","readOnly":true},"body":{"type":"string","readOnly":true},"mailing_id":{"type":"integer","readOnly":true},"mailing_delivery_id":{"type":"integer","readOnly":true},"received_at":{"type":"string","format":"date-time","readOnly":true}},"required":["from","received_at"]},"DirectoryListing":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product","description":"The Product this listing shows. The card reads its name, subtitle, card image and Price."},"product_id":{"type":"integer","description":"The Product this listing shows. The card reads its name, subtitle, card image and Price."},"slug":{"type":"string","description":"Part of the listing URL, unique within the account."},"category":{"type":"string","enum":["coaching","health","fitness","relationships","spirituality","business","marketing","money","creative","education","technology","lifestyle"]},"language":{"type":"string"},"status":{"type":"string","enum":["draft","in_review","listed","changes_needed","removed"],"readOnly":true,"description":"Use the submit_for_review and remove_from_directory actions to change it."},"review_note":{"type":"string","readOnly":true,"description":"Why the AI review asked for changes. Empty when the listing passed."},"reviewed_at":{"type":"string","format":"date-time","readOnly":true},"listed_at":{"type":"string","format":"date-time","readOnly":true},"views_count":{"type":"integer","readOnly":true},"clicks_count":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"free":{"type":"boolean","readOnly":true,"description":"Whether the Product is free. Follows the Product; drives the Price filter on /discover."}},"required":["product_id","slug","created_at","updated_at"]},"DirectoryListingOptional":{"type":"object","properties":{"product_id":{"type":"integer","description":"The Product this listing shows. The card reads its name, subtitle, card image and Price."},"slug":{"type":"string","description":"Part of the listing URL, unique within the account."},"category":{"type":"string","enum":["coaching","health","fitness","relationships","spirituality","business","marketing","money","creative","education","technology","lifestyle"]},"language":{"type":"string"}}},"DirectoryProfile":{"type":"object","properties":{"handle":{"type":"string","description":"The creator page is at simplero.com/discover/\u003chandle\u003e. Unique across Simplero."},"display_name":{"type":"string"},"bio":{"type":"string"},"website_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"avatar_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"avatar_image_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["handle","created_at","updated_at"]},"DirectoryProfileOptional":{"type":"object","properties":{"handle":{"type":"string","description":"The creator page is at simplero.com/discover/\u003chandle\u003e. Unique across Simplero."},"display_name":{"type":"string"},"bio":{"type":"string"},"website_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"avatar_image_id":{"type":"integer"}}},"DnsRecord":{"type":"object","properties":{"domain":{"$ref":"#/components/schemas/Domain","readOnly":true},"domain_id":{"type":"integer","readOnly":true},"record_type":{"type":"string","readOnly":true},"name":{"type":"string","readOnly":true},"value":{"type":"string","readOnly":true},"ttl":{"type":"string","readOnly":true},"priority":{"type":"integer","readOnly":true},"state":{"type":"string","enum":["pending","creating","active","error"],"readOnly":true},"kind":{"type":"string","enum":["regular","system"],"readOnly":true},"provider_error":{"type":"string","readOnly":true,"description":"Why the DNS provider rejected the record, when state is error"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["domain_id","record_type","name","value","created_at","updated_at"]},"Doc":{"type":"object","properties":{"content_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the content BuilderDoc owned by this Doc."},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string","description":"Leave blank to take the title from the first line of the first section, until a title is set."},"public":{"type":"boolean","description":"When true, anyone with public_url can read the published content."},"public_url":{"type":"string","readOnly":true,"description":"Shareable link to the published content. Private docs require an invited Simplero ID or an authorized account admin."},"listed":{"type":"boolean","description":"When true and the doc is public and published, it shows in the account's docs index at account_url/docs."},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","created_at","updated_at"]},"DocInvitation":{"type":"object","properties":{"doc":{"$ref":"#/components/schemas/Doc","readOnly":true},"doc_id":{"type":"integer"},"email":{"type":"string","format":"email"},"url":{"type":"string","readOnly":true,"description":"The invite link. The first Simplero ID that opens it claims the invite."},"user":{"$ref":"#/components/schemas/User","readOnly":true,"description":"The Simplero ID that claimed the invite. Empty until claimed."},"user_id":{"type":"integer","readOnly":true,"description":"The Simplero ID that claimed the invite. Empty until claimed."},"claimed_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["doc_id","email","created_at","updated_at"]},"DocInvitationOptional":{"type":"object"},"DocOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string","description":"Leave blank to take the title from the first line of the first section, until a title is set."},"public":{"type":"boolean","description":"When true, anyone with public_url can read the published content."},"listed":{"type":"boolean","description":"When true and the doc is public and published, it shows in the account's docs index at account_url/docs."}}},"Domain":{"type":"object","properties":{"name":{"type":"string","readOnly":true},"registrar_name":{"type":"string","readOnly":true},"provider":{"type":"string","readOnly":true},"registrar_url":{"type":"string","readOnly":true,"description":"The registrar website as reported by WHOIS, when available."},"state":{"type":"string","enum":["created","importing","inactive","active","error"],"readOnly":true,"description":"inactive: waiting for the nameservers to point to Simplero. active: they do. error: creating the DNS records failed, or the checks gave up."},"dns_error_message":{"type":"string","readOnly":true,"description":"Why creating the DNS records failed."},"nameservers_changed_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the last check found the nameservers pointing to Simplero."},"cached_nameservers":{"type":"array","items":{"type":"string"},"readOnly":true,"description":"The nameservers last seen. They come from WHOIS when the domain was added and are replaced by the matching Simplero set once a check succeeds."},"registration_state":{"type":"string","enum":["pending","active","expired","redemption","transferring_in","transferring_out","transferred_out","released"],"readOnly":true,"description":"Null when the domain is registered elsewhere and Simplero only hosts its DNS. Otherwise its registration through Simplero: pending (paid, being registered), active, expired (renewable at the normal price), redemption (restorable for a fee), transferring_in, transferring_out, transferred_out (now at another registrar) or released (deleted by the registry)."},"expires_on":{"type":"string","format":"date-time","readOnly":true,"description":"When the registration expires. Null unless registered through Simplero."},"registered_at":{"type":"string","format":"date-time","readOnly":true,"description":"When Simplero registered the domain, or finished transferring it in."},"auto_renew":{"type":"boolean","readOnly":true,"description":"Whether Simplero renews the domain 30 days before it expires, charging the card on the Simplero plan. Null unless registered through Simplero."},"whois_privacy":{"type":"boolean","readOnly":true,"description":"Whether the owner's contact details are hidden in WHOIS. Null unless registered through Simplero."},"transfer_lock":{"type":"boolean","readOnly":true,"description":"Whether the registrar lock that blocks transfers to another registrar is on. Null unless registered through Simplero."},"next_renewal_attempt_at":{"type":"string","format":"date-time","readOnly":true,"description":"When Simplero next tries to charge for the renewal. Null when no renewal is due."},"verification_deadline_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the owner has to confirm their email address by (the registry emails them a link), or the domain is suspended."},"suspended_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the registry suspended the domain, for example because the owner did not confirm their email address in time."},"registrant_contact_id":{"type":"integer","readOnly":true,"description":"The id of the owner's registrant contact. Null unless registered through Simplero."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"DoneForYouTemplate":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"name":{"type":"string"},"author":{"type":"string"},"author_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"state":{"type":"string","description":"`draft` or `published`. Only Simplero can publish to the Done-For-You library for all accounts."},"label":{"$ref":"#/components/schemas/Label","readOnly":true,"description":"Label whose objects the template installs"},"label_id":{"type":"integer","description":"Label whose objects the template installs"},"cover_image_asset":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"Cover image"},"cover_image_asset_id":{"type":"integer","description":"Cover image"},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"Explainer video"},"asset_id":{"type":"integer","description":"Explainer video"},"available_to_affiliate_accounts":{"type":"boolean"},"available_to_child_accounts":{"type":"boolean"},"install_on_new_child_accounts":{"type":"boolean"},"keep_in_sync":{"type":"boolean","description":"Child account installs stay in sync with this template instead of being independent copies"},"locale":{"type":"string","readOnly":true},"system_key":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"DoneForYouTemplateOptional":{"type":"object","properties":{"name":{"type":"string"},"author":{"type":"string"},"author_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"state":{"type":"string","description":"`draft` or `published`. Only Simplero can publish to the Done-For-You library for all accounts."},"label_id":{"type":"integer","description":"Label whose objects the template installs"},"cover_image_asset_id":{"type":"integer","description":"Cover image"},"asset_id":{"type":"integer","description":"Explainer video"},"available_to_affiliate_accounts":{"type":"boolean"},"available_to_child_accounts":{"type":"boolean"},"install_on_new_child_accounts":{"type":"boolean"},"keep_in_sync":{"type":"boolean","description":"Child account installs stay in sync with this template instead of being independent copies"}}},"EmailBounce":{"type":"object","properties":{"delivery_id":{"type":"integer","readOnly":true},"delivery_type":{"type":"string","readOnly":true},"kind":{"type":"string","enum":["hard","soft"],"readOnly":true},"message":{"type":"string","readOnly":true},"email":{"type":"string","format":"email","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["delivery_id","delivery_type","kind","created_at","updated_at"]},"EmailDomain":{"type":"object","properties":{"domain":{"type":"string","readOnly":true},"dns_provider":{"type":"string","readOnly":true},"spf_status":{"type":"string","enum":["spf_not_verified","spf_verifying","spf_failed","spf_verified"],"readOnly":true},"dkim_status":{"type":"string","enum":["dkim_not_verified","dkim_verifying","dkim_failed","dkim_verified"],"readOnly":true},"ever_verified":{"type":"boolean","readOnly":true},"verified":{"type":"boolean","readOnly":true},"last_verified_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"dns_records":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"value":{"type":"string"},"verified":{"type":"boolean"}}},"readOnly":true,"description":"Public DNS records shown in Email settings; verification credentials and private keys are excluded."}},"required":["domain"]},"EmailTemplate":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"system_key":{"type":"string"},"body":{"type":"string"},"header_image_id":{"type":"integer"},"header_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"font":{"type":"string"},"font_size":{"type":"integer"},"line_height":{"type":"string"},"text_color":{"type":"string"},"link_color":{"type":"string"},"social_sharing_links":{"type":"boolean"},"email_filler_copy":{"type":"boolean"},"footer_text_color":{"type":"string"},"footer_background_color":{"type":"string"},"legal_footer_text_color":{"type":"string"},"legal_footer_background_color":{"type":"string"},"custom_css":{"type":"string"},"attachments_count":{"type":"integer","readOnly":true},"is_default":{"type":"boolean","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"EmailTemplateOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"system_key":{"type":"string"},"body":{"type":"string"},"header_image_id":{"type":"integer"},"header_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"font":{"type":"string"},"font_size":{"type":"integer"},"line_height":{"type":"string"},"text_color":{"type":"string"},"link_color":{"type":"string"},"social_sharing_links":{"type":"boolean"},"email_filler_copy":{"type":"boolean"},"footer_text_color":{"type":"string"},"footer_background_color":{"type":"string"},"legal_footer_text_color":{"type":"string"},"legal_footer_background_color":{"type":"string"},"custom_css":{"type":"string"}}},"Embed":{"type":"object","properties":{"source_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"thumbnail_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"embed_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"}}},"Event":{"type":"object","properties":{"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"automation_templates":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"answer_keys":{"type":"array","items":{"type":"string"}},"answer_options":{"type":"object","description":"Choices per answer key, e.g. style: [{ value, title, emails, default }], locale: [{ value, title, default }]"}}},"readOnly":true,"description":"Templates create_automation_from_template accepts for this record, with the answers each one reads."},"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"token":{"type":"string","readOnly":true},"title":{"type":"string"},"subtitle":{"type":"string"},"internal_name":{"type":"string"},"url":{"type":"string","format":"uri","readOnly":true,"description":"Public event page where visitors register. Shows the next upcoming session."},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"description_is_html":{"type":"boolean"},"location_type":{"type":"string","enum":["url","simplero_live","in_person","zoom","google_meet","microsoft_teams","tbd","legacy"]},"location_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"location_text":{"type":"string"},"location_address":{"type":"string"},"event_type":{"type":"string","enum":["non_recurring_event_with_fixed_time","recurring_event_without_fixed_time","recurring_event_with_fixed_time"],"description":"To create a recurring event, also pass a recurrence_setting."},"approval_type":{"type":"string","enum":["automatically_approve_registrations","manually_approve_registrations","no_registrations_required"]},"registration_type":{"type":"string","enum":["any","each","multiple"],"description":"Only meaningful for recurring events"},"state":{"type":"string","readOnly":true},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer"},"calendar":{"$ref":"#/components/schemas/Calendar","readOnly":true},"calendar_id":{"type":"integer"},"integration":{"$ref":"#/components/schemas/Integration","readOnly":true},"integration_id":{"type":"integer"},"funnel_step":{"$ref":"#/components/schemas/FunnelStep","readOnly":true},"funnel_step_id":{"type":"integer"},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"max_participants_list":{"$ref":"#/components/schemas/List","readOnly":true},"max_participants_list_id":{"type":"integer"},"recording_course_module":{"$ref":"#/components/schemas/CourseModule","readOnly":true},"recording_course_module_id":{"type":"integer"},"contract":{"$ref":"#/components/schemas/Contract","readOnly":true},"contract_id":{"type":"integer","description":"Contract registrants must sign before registering. Empty: none."},"scheduling_link":{"$ref":"#/components/schemas/SchedulingLink","readOnly":true,"description":"Set by the SchedulingLink booking flow. Not settable via the Event API."},"scheduling_link_id":{"type":"integer","readOnly":true,"description":"Set by the SchedulingLink booking flow. Not settable via the Event API."},"meeting_room":{"$ref":"#/components/schemas/MeetingRoom","readOnly":true,"description":"Set when the event is a session of an admin's /meet room. Not settable via the Event API."},"meeting_room_id":{"type":"integer","readOnly":true,"description":"Set when the event is a session of an admin's /meet room. Not settable via the Event API."},"send_registration_info_email":{"type":"boolean"},"registration_info_email_subject":{"type":"string"},"registration_info_email_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"approved_registrant_content":{"type":"string","description":"Content shown only to approved registrants on the event page."},"approval_notification_emails":{"type":"string","description":"Comma-separated emails to notify whenever someone registers for this event."},"approval_notification_sms":{"type":"string","description":"Comma-separated phone numbers to text whenever someone registers for this event."},"registration_ends_minutes_before":{"type":"integer"},"max_participants":{"type":"integer"},"show_spots_remaining":{"type":"boolean","description":"Show how many spots are left on the event page (counts approved registrations against max_participants)."},"disable_self_cancellation":{"type":"boolean","description":"When true, attendees cannot cancel their own registration from the event page — only an admin can cancel."},"require_first_name":{"type":"boolean","description":"When true, public event registration requires a first name. Always required when a contract is attached."},"max_participants_custom_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"waitlist_status_enabled":{"type":"boolean"},"auto_approve_from_waitlist":{"type":"boolean"},"import_recording":{"type":"boolean"},"show_replay_to_registrants":{"type":"boolean"},"recording_title":{"type":"string"},"recording_position":{"type":"string","enum":["top","bottom"]},"recording_publish_status":{"type":"string","enum":["draft","published","dripped"]},"recording_drip_to":{"type":"string","enum":["all_participants","only_attendees"]},"preferred_recording_version":{"type":"string","enum":["speaker_with_screen","gallery_with_screen","speaker_without_screen","gallery_without_screen","host_only"]},"add_other_versions_as_attachments":{"type":"boolean"},"import_chat":{"type":"boolean"},"recording_lesson_text":{"type":"string","enum":["event_description","ai_summary","blank"]},"recording_summary_instructions":{"type":"string"},"past_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"meta_conversion_event":{"type":"string","description":"Facebook/Meta Pixel event fired on registration. Common values: \"CompleteRegistration\", \"Schedule\", \"Lead\", \"SubmitApplication\", \"Contact\". Accepts custom event names."},"rescheduling_policy":{"type":"string","description":"Scheduling-link events only. One of \"allow\", \"disallow\", or (for master links) \"allow_master\"."},"indexed":{"type":"boolean","description":"Whether this event should appear in site search indexes."},"recurrence_setting":{"$ref":"#/components/schemas/EventRecurrenceSetting","description":"Recurrence rule. Pass this at creation time to make a recurring event — EventOccurrences are auto-generated from it."},"occurrences":{"type":"array","items":{"$ref":"#/components/schemas/EventOccurrence"},"description":"For non-recurring events, pass a single occurrence with starts_at, ends_at and time_zone at creation time. A time without an offset is read in time_zone (the account time zone when omitted). For recurring events, pass the first occurrence the same way, plus a recurrence_setting; the rest are generated from it."},"occurrence_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"For non-recurring events, pass a single occurrence with starts_at, ends_at and time_zone at creation time. A time without an offset is read in time_zone (the account time zone when omitted). For recurring events, pass the first occurrence the same way, plus a recurrence_setting; the rest are generated from it."},"sites":{"type":"array","items":{"$ref":"#/components/schemas/Site"},"readOnly":true},"site_ids":{"type":"array","items":{"type":"integer"}},"livestream_config":{"$ref":"#/components/schemas/LivestreamConfig","description":"Simplero Live settings. Only used when location_type is simplero_live. Null until the settings are first saved; the defaults apply until then."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","internal_name","created_at","updated_at"]},"EventOccurrence":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"token":{"type":"string","readOnly":true},"title":{"type":"string"},"description":{"type":"string"},"event":{"$ref":"#/components/schemas/Event","readOnly":true},"event_id":{"type":"integer"},"starts_at":{"type":"string","format":"date-time","description":"ISO 8601. Without an offset, read in time_zone. Returned in time_zone, with its offset. Not changeable on a recurring Zoom event or an occurrence with time blocks. On a booking appointment (an event with a scheduling link), a change is a reschedule checked against availability."},"ends_at":{"type":"string","format":"date-time","description":"ISO 8601. Without an offset, read in time_zone. Returned in time_zone, with its offset. Not changeable on a recurring Zoom event or an occurrence with time blocks. On a booking appointment (an event with a scheduling link), a change is a reschedule checked against availability."},"time_zone":{"type":"string"},"status":{"type":"string","enum":["confirmed","canceled","payment_pending","expired"],"description":"Not settable via the API — changing it has side effects (cancellation notifications, calendar sync) that require going through the proper cancellation flow."},"past_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"cancelation_reason":{"type":"string"},"rescheduling_reason":{"type":"string"},"lesson":{"$ref":"#/components/schemas/CourseLesson","readOnly":true,"description":"The CourseLesson created when a Zoom recording is imported."},"lesson_id":{"type":"integer","description":"The CourseLesson created when a Zoom recording is imported."},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"The Asset for the imported recording (video/audio file)."},"asset_id":{"type":"integer","description":"The Asset for the imported recording (video/audio file)."},"recording_assets":{"type":"array","items":{"$ref":"#/components/schemas/Asset"},"readOnly":true,"description":"All recording Assets saved for this session — kept even when the recording is not imported into a lesson."},"recording_asset_ids":{"type":"array","items":{"type":"integer"},"description":"All recording Assets saved for this session — kept even when the recording is not imported into a lesson."},"participants":{"type":"array","items":{"$ref":"#/components/schemas/EventOccurrenceParticipant"},"readOnly":true},"participant_ids":{"type":"array","items":{"type":"integer"}},"sites":{"type":"array","items":{"$ref":"#/components/schemas/Site"},"readOnly":true},"site_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","event_id"]},"EventOccurrenceOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"description":{"type":"string"},"starts_at":{"type":"string","format":"date-time","description":"ISO 8601. Without an offset, read in time_zone. Returned in time_zone, with its offset. Not changeable on a recurring Zoom event or an occurrence with time blocks. On a booking appointment (an event with a scheduling link), a change is a reschedule checked against availability."},"ends_at":{"type":"string","format":"date-time","description":"ISO 8601. Without an offset, read in time_zone. Returned in time_zone, with its offset. Not changeable on a recurring Zoom event or an occurrence with time blocks. On a booking appointment (an event with a scheduling link), a change is a reschedule checked against availability."}}},"EventOccurrenceParticipant":{"type":"object","properties":{"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}},"token":{"type":"string","readOnly":true},"customer":{"$ref":"#/components/schemas/Customer"},"customer_id":{"type":"integer"},"event":{"$ref":"#/components/schemas/Event","readOnly":true},"event_occurrence":{"$ref":"#/components/schemas/EventOccurrence","readOnly":true},"event_occurrence_id":{"type":"integer"},"funnel_step":{"$ref":"#/components/schemas/FunnelStep","readOnly":true},"funnel_step_id":{"type":"integer"},"affiliate":{"$ref":"#/components/schemas/Affiliate","readOnly":true},"affiliate_id":{"type":"integer"},"affiliate_link":{"$ref":"#/components/schemas/AffiliateLink","readOnly":true},"affiliate_link_id":{"type":"integer"},"starts_at":{"type":"string","format":"date-time","readOnly":true},"role":{"type":"string","enum":["attendee","organizer","scheduler"]},"registration_state":{"type":"string","enum":["approved","pending","canceled","denied","waiting_payment","payment_timed_out","contract_pending","waitlisted"]},"registered_at":{"type":"string","format":"date-time","readOnly":true},"first_joined_at":{"type":"string","format":"date-time","readOnly":true},"last_joined_at":{"type":"string","format":"date-time","readOnly":true},"last_left_at":{"type":"string","format":"date-time","readOnly":true},"duration_attended_in_seconds":{"type":"integer"},"time_zone":{"type":"string"},"join_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"created_customer":{"type":"boolean"},"utm_source":{"type":"string"},"utm_medium":{"type":"string"},"utm_campaign":{"type":"string"},"utm_term":{"type":"string"},"utm_content":{"type":"string"},"utm_keyword":{"type":"string"},"utm_adgroup":{"type":"string"},"ref":{"type":"string"},"track":{"type":"string"},"referrer":{"type":"string"},"ip_address":{"type":"string"},"user_agent":{"type":"string"},"device_type":{"type":"string","enum":["mobile","desktop"]},"screen_size":{"type":"string"},"request_locale":{"type":"string"}},"required":["token"]},"EventOptional":{"type":"object","properties":{"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"form_field_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"subtitle":{"type":"string"},"internal_name":{"type":"string"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"description_is_html":{"type":"boolean"},"location_type":{"type":"string","enum":["url","simplero_live","in_person","zoom","google_meet","microsoft_teams","tbd","legacy"]},"location_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"location_text":{"type":"string"},"location_address":{"type":"string"},"approval_type":{"type":"string","enum":["automatically_approve_registrations","manually_approve_registrations","no_registrations_required"]},"registration_type":{"type":"string","enum":["any","each","multiple"],"description":"Only meaningful for recurring events"},"asset_id":{"type":"integer"},"calendar_id":{"type":"integer"},"integration_id":{"type":"integer"},"funnel_step_id":{"type":"integer"},"product_id":{"type":"integer"},"max_participants_list_id":{"type":"integer"},"recording_course_module_id":{"type":"integer"},"contract_id":{"type":"integer","description":"Contract registrants must sign before registering. Empty: none."},"send_registration_info_email":{"type":"boolean"},"registration_info_email_subject":{"type":"string"},"registration_info_email_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"approved_registrant_content":{"type":"string","description":"Content shown only to approved registrants on the event page."},"approval_notification_emails":{"type":"string","description":"Comma-separated emails to notify whenever someone registers for this event."},"approval_notification_sms":{"type":"string","description":"Comma-separated phone numbers to text whenever someone registers for this event."},"registration_ends_minutes_before":{"type":"integer"},"max_participants":{"type":"integer"},"show_spots_remaining":{"type":"boolean","description":"Show how many spots are left on the event page (counts approved registrations against max_participants)."},"disable_self_cancellation":{"type":"boolean","description":"When true, attendees cannot cancel their own registration from the event page — only an admin can cancel."},"require_first_name":{"type":"boolean","description":"When true, public event registration requires a first name. Always required when a contract is attached."},"max_participants_custom_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"waitlist_status_enabled":{"type":"boolean"},"auto_approve_from_waitlist":{"type":"boolean"},"import_recording":{"type":"boolean"},"show_replay_to_registrants":{"type":"boolean"},"recording_title":{"type":"string"},"recording_position":{"type":"string","enum":["top","bottom"]},"recording_publish_status":{"type":"string","enum":["draft","published","dripped"]},"recording_drip_to":{"type":"string","enum":["all_participants","only_attendees"]},"preferred_recording_version":{"type":"string","enum":["speaker_with_screen","gallery_with_screen","speaker_without_screen","gallery_without_screen","host_only"]},"add_other_versions_as_attachments":{"type":"boolean"},"import_chat":{"type":"boolean"},"recording_lesson_text":{"type":"string","enum":["event_description","ai_summary","blank"]},"recording_summary_instructions":{"type":"string"},"past_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"meta_conversion_event":{"type":"string","description":"Facebook/Meta Pixel event fired on registration. Common values: \"CompleteRegistration\", \"Schedule\", \"Lead\", \"SubmitApplication\", \"Contact\". Accepts custom event names."},"rescheduling_policy":{"type":"string","description":"Scheduling-link events only. One of \"allow\", \"disallow\", or (for master links) \"allow_master\"."},"indexed":{"type":"boolean","description":"Whether this event should appear in site search indexes."},"recurrence_setting":{"$ref":"#/components/schemas/EventRecurrenceSetting","description":"Recurrence rule. Pass this at creation time to make a recurring event — EventOccurrences are auto-generated from it."},"occurrences":{"type":"array","items":{"$ref":"#/components/schemas/EventOccurrence"},"description":"For non-recurring events, pass a single occurrence with starts_at, ends_at and time_zone at creation time. A time without an offset is read in time_zone (the account time zone when omitted). For recurring events, pass the first occurrence the same way, plus a recurrence_setting; the rest are generated from it."},"site_ids":{"type":"array","items":{"type":"integer"}},"livestream_config":{"$ref":"#/components/schemas/LivestreamConfig","description":"Simplero Live settings. Only used when location_type is simplero_live. Null until the settings are first saved; the defaults apply until then."}}},"EventRecurrenceSetting":{"type":"object","properties":{"repeat_unit":{"type":"string","enum":["non_recurring","daily","weekly","monthly"]},"repeat_interval":{"type":"integer"},"weekly_days":{"type":"string","description":"Comma-separated list of weekday numbers (1=Monday through 7=Sunday), e.g. \"1,3,5\" for Mon/Wed/Fri. Only used when repeat_unit is \"weekly\"."},"monthly_day":{"type":"integer","description":"Day of month (1–31). Used when repeat_unit is \"monthly\" and the rule is \"repeat on day N\"."},"monthly_week":{"type":"integer","description":"Week of month (1–4, or -1 for the last week). Used with monthly_week_day when the rule is \"repeat on the Nth weekday\"."},"monthly_week_day":{"type":"integer","description":"Weekday number (1=Monday through 7=Sunday) paired with monthly_week."},"end_times":{"type":"integer","description":"Stop after this many occurrences. Mutually exclusive with end_at."},"end_at":{"type":"string","format":"date-time","description":"Stop generating occurrences at/after this datetime. Mutually exclusive with end_times."}},"required":["repeat_unit"]},"Facet":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"internal_name":{"type":"string"},"note":{"type":"string"},"system_key":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","internal_name","created_at","updated_at"]},"FacetOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"internal_name":{"type":"string"},"note":{"type":"string"}}},"FacetValue":{"type":"object","properties":{"facet":{"$ref":"#/components/schemas/Facet","readOnly":true},"facet_id":{"type":"integer"},"name":{"type":"string"},"icon":{"type":"string"},"color":{"type":"string"},"admin_description":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"user_description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"disabled_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["facet_id","name","created_at","updated_at"]},"FacetValueOptional":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string"},"color":{"type":"string"},"admin_description":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"user_description":{"type":"string","description":"HTML content from a WYSIWYG editor"}}},"Faceting":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/FacetValue","readOnly":true},"facet_value_id":{"type":"integer"},"object":{"type":"object","readOnly":true},"object_id":{"type":"integer"},"object_type":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["facet_value_id"]},"Field":{"type":"object","properties":{"label":{"type":"string"},"internal_name":{"type":"string"},"active":{"type":"boolean"},"position":{"type":"integer"},"key":{"type":"string","description":"Unique key used to interpolate the field value in templates, e.g. {{field.\u003ckey\u003e}}"},"field_type":{"type":"string","enum":["f_in_table_name","f_in_table_email","f_text","f_name","f_email","f_gender","f_url","f_age","f_birth_date","f_text_area","f_phone","f_address","f_time_zone","f_facebook_url","f_x_username","f_skype_name","f_radio_button","f_check_box","f_check_boxes","f_select","f_acceptance","f_date","f_datetime","f_integer","f_decimal","f_us_state","f_country","f_currency","f_money","f_scale_rating","f_yes_no","f_tiktok_handle","f_instagram_username","f_linkedin_username","f_youtube_handle","f_pinterest_username","f_reddit_username","f_heading","f_switch","f_divider","f_section","f_file","f_hidden","f_countdown_timer_option","f_image"],"description":"f_in_table_name / f_in_table_email are the contact's own name and email: creating one returns the account's existing field (other attributes are ignored) instead of adding a duplicate. Updating it switches the field's type: a field with options can only switch to another option type (delete the options first); a field without answers can switch to any type; a field with answers only within its storage group (radio/dropdown/check boxes; text/multiline text; yes-no/switch/check box/acceptance; integer/scale rating) and only when no answer would be lost — otherwise 422."},"customer_editable":{"type":"boolean","description":"Whether contacts can edit this field's value in public-facing forms"},"subheading":{"type":"string","description":"Smaller text shown below the field label"},"content":{"type":"string","description":"HTML content for acceptance and heading/section fields"},"min":{"type":"integer","description":"Minimum value for scale/rating fields"},"max":{"type":"integer","description":"Maximum value for scale/rating fields"},"score_mode":{"type":"string","enum":["ignored","counted","inverted"],"description":"Scale/rating fields in surveys: whether the chosen number counts toward the survey score — ignored (default, shown as \"Don't count\"), counted, or inverted (the top number scores lowest)"},"min_label":{"type":"string","description":"Label shown at the minimum end of a scale/rating"},"mid_label":{"type":"string","description":"Label shown at the midpoint of a scale/rating"},"max_label":{"type":"string","description":"Label shown at the maximum end of a scale/rating"},"countdown_timer":{"$ref":"#/components/schemas/CountdownTimer","readOnly":true},"countdown_timer_id":{"type":"integer","readOnly":true},"image":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"The image shown by an `f_image` page element."},"image_id":{"type":"integer","description":"The image shown by an `f_image` page element."},"field_options":{"type":"array","items":{"$ref":"#/components/schemas/FieldOption"},"readOnly":true},"field_option_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"FieldOption":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/Field","readOnly":true},"field_id":{"type":"integer"},"label":{"type":"string"},"position":{"type":"integer"},"score":{"type":"integer"},"other_option":{"type":"boolean","description":"When true, this option is an \"Other\" option that lets contacts enter their own value"},"other_placeholder":{"type":"string","description":"Placeholder text shown in the input when the \"Other\" option is selected"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["field_id","label","created_at","updated_at"]},"FieldOptionOptional":{"type":"object","properties":{"label":{"type":"string"},"position":{"type":"integer"},"score":{"type":"integer"},"other_option":{"type":"boolean","description":"When true, this option is an \"Other\" option that lets contacts enter their own value"},"other_placeholder":{"type":"string","description":"Placeholder text shown in the input when the \"Other\" option is selected"}}},"FieldOptionValue":{"type":"object","properties":{"field_value":{"$ref":"#/components/schemas/FieldValue","readOnly":true},"field_value_id":{"type":"integer"},"field_option":{"$ref":"#/components/schemas/FieldOption","readOnly":true},"field_option_id":{"type":"integer"}},"required":["field_value_id","field_option_id"]},"FieldOptional":{"type":"object","properties":{"label":{"type":"string"},"internal_name":{"type":"string"},"active":{"type":"boolean"},"position":{"type":"integer"},"key":{"type":"string","description":"Unique key used to interpolate the field value in templates, e.g. {{field.\u003ckey\u003e}}"},"field_type":{"type":"string","enum":["f_in_table_name","f_in_table_email","f_text","f_name","f_email","f_gender","f_url","f_age","f_birth_date","f_text_area","f_phone","f_address","f_time_zone","f_facebook_url","f_x_username","f_skype_name","f_radio_button","f_check_box","f_check_boxes","f_select","f_acceptance","f_date","f_datetime","f_integer","f_decimal","f_us_state","f_country","f_currency","f_money","f_scale_rating","f_yes_no","f_tiktok_handle","f_instagram_username","f_linkedin_username","f_youtube_handle","f_pinterest_username","f_reddit_username","f_heading","f_switch","f_divider","f_section","f_file","f_hidden","f_countdown_timer_option","f_image"],"description":"f_in_table_name / f_in_table_email are the contact's own name and email: creating one returns the account's existing field (other attributes are ignored) instead of adding a duplicate. Updating it switches the field's type: a field with options can only switch to another option type (delete the options first); a field without answers can switch to any type; a field with answers only within its storage group (radio/dropdown/check boxes; text/multiline text; yes-no/switch/check box/acceptance; integer/scale rating) and only when no answer would be lost — otherwise 422."},"customer_editable":{"type":"boolean","description":"Whether contacts can edit this field's value in public-facing forms"},"subheading":{"type":"string","description":"Smaller text shown below the field label"},"content":{"type":"string","description":"HTML content for acceptance and heading/section fields"},"min":{"type":"integer","description":"Minimum value for scale/rating fields"},"max":{"type":"integer","description":"Maximum value for scale/rating fields"},"score_mode":{"type":"string","enum":["ignored","counted","inverted"],"description":"Scale/rating fields in surveys: whether the chosen number counts toward the survey score — ignored (default, shown as \"Don't count\"), counted, or inverted (the top number scores lowest)"},"min_label":{"type":"string","description":"Label shown at the minimum end of a scale/rating"},"mid_label":{"type":"string","description":"Label shown at the midpoint of a scale/rating"},"max_label":{"type":"string","description":"Label shown at the maximum end of a scale/rating"},"image_id":{"type":"integer","description":"The image shown by an `f_image` page element."},"field_option_ids":{"type":"array","items":{"type":"integer"}}}},"FieldValue":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/Field","readOnly":true},"field_id":{"type":"integer"},"owner":{"type":"object","readOnly":true},"owner_id":{"type":"integer"},"owner_type":{"type":"string"},"subfield":{"type":"string","enum":["value","first_names","last_name","address","address_2","postal_code","city","region","country_code","number","date","time","region_code","other"]},"value":{"type":"string"},"text_value":{"type":"string","readOnly":true},"int_value":{"type":"integer","readOnly":true},"date_value":{"type":"string","format":"date-time","readOnly":true},"datetime_value":{"type":"string","format":"date-time","readOnly":true},"boolean_value":{"type":"boolean","readOnly":true},"decimal_value":{"type":"number","readOnly":true},"field_options":{"type":"array","items":{"$ref":"#/components/schemas/FieldOption"},"readOnly":true},"field_option_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["field_id","owner_id","owner_type"]},"FieldValueOptional":{"type":"object","properties":{"value":{"type":"string"}}},"Flow":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"automation":{"$ref":"#/components/schemas/Automation","readOnly":true},"automation_id":{"type":"integer"},"current_step_id":{"type":"integer","readOnly":true,"description":"The step the contact is at. Nil once the flow is completed or stopped."},"state":{"type":"string","readOnly":true,"description":"completed, paused, active, or stopped. A failing flow is active with failure_count above 0."},"continue_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the flow next runs. Kept while paused, then pushed back by the paused time on resume. Nil when stopped or completed."},"waiting_since":{"type":"string","format":"date-time","readOnly":true,"description":"When the contact started waiting at a wait step. Nil when not waiting."},"paused_at":{"type":"string","format":"date-time","readOnly":true},"pause_reason":{"type":"string","readOnly":true},"completed_at":{"type":"string","format":"date-time","readOnly":true},"failure_count":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["customer","customer_id","automation","automation_id","created_at","updated_at"]},"FormField":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/Field"},"field_id":{"type":"integer"},"owner":{"type":"object","readOnly":true},"owner_id":{"type":"integer"},"owner_type":{"type":"string"},"purpose":{"type":"string","enum":["participant","purchase","contact","survey","affiliate","member","pipeline","builder_doc"]},"name_option":{"type":"string","enum":["first_name","one_field","two_fields"]},"label":{"type":"string"},"placeholder":{"type":"string"},"help_text":{"type":"string"},"required":{"type":"boolean"},"active":{"type":"boolean"},"position":{"type":"integer"},"publicly_visible":{"type":"boolean"}},"required":["field_id"]},"FormFieldOptional":{"type":"object","properties":{"owner_id":{"type":"integer"},"owner_type":{"type":"string"},"purpose":{"type":"string","enum":["participant","purchase","contact","survey","affiliate","member","pipeline","builder_doc"]},"name_option":{"type":"string","enum":["first_name","one_field","two_fields"]},"label":{"type":"string"},"placeholder":{"type":"string"},"help_text":{"type":"string"},"required":{"type":"boolean"},"active":{"type":"boolean"},"position":{"type":"integer"},"publicly_visible":{"type":"boolean"}}},"Forum":{"type":"object"},"ForumCategory":{"type":"object","properties":{"label":{"type":"string","description":"Name of the category."},"forum_id":{"type":"integer","readOnly":true,"description":"ID of the forum this category belongs to."},"intro_text":{"type":"string","description":"Introductory text for the category, as HTML."},"archived":{"type":"boolean","description":"Whether the category is archived."},"forum_title":{"type":"string","readOnly":true,"description":"Display title of the forum this category belongs to."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["label","forum_id","created_at","updated_at"]},"ForumCategoryOptional":{"type":"object","properties":{"label":{"type":"string","description":"Name of the category."},"intro_text":{"type":"string","description":"Introductory text for the category, as HTML."},"archived":{"type":"boolean","description":"Whether the category is archived."}}},"ForumPost":{"type":"object","properties":{"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"token":{"type":"string","readOnly":true},"title":{"type":"string"},"body":{"type":"string","description":"The post text, rendered as HTML."},"approved":{"type":"boolean","readOnly":true,"description":"Whether the post is approved (null while pending moderation). Set automatically from the poster and the forum's moderation settings; posts by staff or admins are always approved."},"publish_status":{"type":"string","description":"draft or published. When creating through the API, defaults to published: goes live now and notifies members (if the forum is enabled), like the admin new-post form."},"comments_count":{"type":"integer","readOnly":true},"forum_id":{"type":"integer","description":"The forum this post belongs to. Required when creating a post."},"category_id":{"type":"integer"},"poster_id":{"type":"integer"},"poster_name":{"type":"string","readOnly":true,"description":"The display name of the member who created the post."},"reactions_count":{"type":"integer","readOnly":true},"popularity_milestone":{"type":"integer","readOnly":true,"description":"The highest milestone of reactions and comments together (10, 25, 50 or 100) members were told about. 0 before the first; null for one older than this feature until its next activity."},"url":{"type":"string","format":"uri","readOnly":true,"description":"Public link to the post on the site."},"post_kind":{"type":"string","readOnly":true,"description":"What kind of post it is: win, question, struggle, announcement, tip, other. Set automatically once the post is live; decides which reactions the post suggests. Null until then."},"header_image_url":{"type":"string","readOnly":true,"description":"URL of the post's header/banner image, if set."},"header_image_id":{"type":"integer","description":"The header image (an asset of this account). Its URL is in `header_image_url`."},"pinned_to_feed":{"type":"boolean"},"pinned_to_forum":{"type":"boolean"},"pinned_to_category":{"type":"boolean"},"public_published_at":{"type":"string","format":"date-time","description":"The publication date shown on the post."},"poll":{"$ref":"#/components/schemas/Poll","description":"The poll on the post, if any. Send it with its options to create the post and poll together; after that, change it through `/api/v2/polls`."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","title","created_at","updated_at"]},"ForumPostOptional":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"body":{"type":"string","description":"The post text, rendered as HTML."},"publish_status":{"type":"string","description":"draft or published. When creating through the API, defaults to published: goes live now and notifies members (if the forum is enabled), like the admin new-post form."},"forum_id":{"type":"integer","description":"The forum this post belongs to. Required when creating a post."},"category_id":{"type":"integer"},"poster_id":{"type":"integer"},"header_image_id":{"type":"integer","description":"The header image (an asset of this account). Its URL is in `header_image_url`."},"pinned_to_feed":{"type":"boolean"},"pinned_to_forum":{"type":"boolean"},"pinned_to_category":{"type":"boolean"},"public_published_at":{"type":"string","format":"date-time","description":"The publication date shown on the post."}}},"FrustrationReport":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"account":{"$ref":"#/components/schemas/Account","readOnly":true},"account_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"body":{"type":"string"},"page_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"source":{"type":"string"},"user_agent":{"type":"string"},"status":{"type":"string","enum":["new","in_progress","closed","done"],"description":"Triage state: `new` (untouched), `in_progress` (being handled or discussed), `closed` (not acted on — duplicate, junk), or `done` (fixed, built, or tracked elsewhere)."},"linear_identifier":{"type":"string","readOnly":true,"description":"Identifier of the Linear issue filed from or linked to this report (the team prefix plus a number, e.g. `TEAM-123`), or null if there is none. Set it with the `link_linear_issue` action and clear it with `unlink_linear_issue`."},"linear_url":{"type":"string","format":"uri","readOnly":true,"description":"URL of the Linear issue filed from or linked to this report, or null if there is none. Set it with the `link_linear_issue` action and clear it with `unlink_linear_issue`."},"linear_id":{"type":"string","readOnly":true,"description":"Linear's internal id for the linked issue, or null if there is none. Pass it as `linear_id` to the `unlink_linear_issue` action."},"urls_visited":{"type":"array","items":{"type":"string"},"readOnly":true,"description":"The page the report was filed from, followed by the pages visited on the way there, newest first."},"transcribing":{"type":"boolean","readOnly":true,"description":"True while an audio recording is still being transcribed into `body`. A blank body with this false means no transcript is coming."},"screenshot_asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"screenshot_asset_id":{"type":"integer","readOnly":true},"audio_asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"audio_asset_id":{"type":"integer","readOnly":true},"metadata":{"type":"object","nullable":true,"description":"Client-side context captured with the report: path, viewport_width, viewport_height, locale, raw_transcript. Keys vary and any may be absent."}},"required":["created_at","updated_at","account_id","user_id","body","source"]},"FrustrationReportOptional":{"type":"object","properties":{"body":{"type":"string"},"page_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"source":{"type":"string"},"user_agent":{"type":"string"},"status":{"type":"string","enum":["new","in_progress","closed","done"],"description":"Triage state: `new` (untouched), `in_progress` (being handled or discussed), `closed` (not acted on — duplicate, junk), or `done` (fixed, built, or tracked elsewhere)."},"metadata":{"type":"object","nullable":true,"description":"Client-side context captured with the report: path, viewport_width, viewport_height, locale, raw_transcript. Keys vary and any may be absent."}}},"Funnel":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"stealme_token":{"type":"string","readOnly":true},"name":{"type":"string"},"url_type":{"type":"string","enum":["canonical","custom_domain","site"]},"url_site_path":{"type":"string"},"url":{"type":"string","format":"uri","readOnly":true,"description":"Public funnel link. Visitors start at the first page."},"url_site":{"$ref":"#/components/schemas/Site","readOnly":true},"url_site_id":{"type":"integer"},"theme":{"$ref":"#/components/schemas/Theme","readOnly":true},"theme_id":{"type":"integer"},"style_guide":{"$ref":"#/components/schemas/StyleGuide","readOnly":true},"style_guide_id":{"type":"integer"},"allow_anonymous_on_private_site":{"type":"boolean","description":"When the funnel is under a private or join site: lets visitors who are not logged in see its steps. Off: they must log in."},"active":{"type":"boolean"},"recipe":{"type":"string","readOnly":true,"description":"The Create recipe that built the funnel, e.g. lead_magnet. Blank when built by hand or copied."},"custom_tracking_code":{"type":"string"},"custom_tracking_code_for_body":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"},"readOnly":true},"step_ids":{"type":"array","items":{"type":"integer"}},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/FunnelConnector"},"readOnly":true},"connector_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"FunnelConnector":{"type":"object","properties":{"funnel":{"$ref":"#/components/schemas/Funnel","readOnly":true},"funnel_id":{"type":"integer","readOnly":true},"parent":{"$ref":"#/components/schemas/FunnelStep","readOnly":true},"parent_id":{"type":"integer"},"child":{"$ref":"#/components/schemas/FunnelStep","readOnly":true},"child_id":{"type":"integer"},"name":{"type":"string"},"position":{"type":"integer"},"weight":{"type":"integer","description":"Split-test traffic allocation (0–100). 0 = disabled. For non-split connectors, ignored."},"otherwise_branch":{"type":"boolean","readOnly":true,"description":"On condition steps, true marks the fallback branch taken when no other connector's rules match."},"created_blank":{"type":"boolean","readOnly":true,"description":"True if this connector was created as an empty branch (no rules, no steps inside) waiting to be filled in."},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only on the branches of a condition step, never on its otherwise branch. Visitors take the first branch (by weight, then position) whose rule they match, else the first branch without a rule, so clearing a branch's rule makes it a fallback like otherwise."}},"required":["funnel","funnel_id","parent","parent_id","child","child_id"]},"FunnelConnectorOptional":{"type":"object","properties":{"name":{"type":"string"},"position":{"type":"integer"},"weight":{"type":"integer","description":"Split-test traffic allocation (0–100). 0 = disabled. For non-split connectors, ignored."},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only on the branches of a condition step, never on its otherwise branch. Visitors take the first branch (by weight, then position) whose rule they match, else the first branch without a rule, so clearing a branch's rule makes it a fallback like otherwise."}}},"FunnelOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"url_type":{"type":"string","enum":["canonical","custom_domain","site"]},"url_site_path":{"type":"string"},"url_site_id":{"type":"integer"},"theme_id":{"type":"integer"},"style_guide_id":{"type":"integer"},"allow_anonymous_on_private_site":{"type":"boolean","description":"When the funnel is under a private or join site: lets visitors who are not logged in see its steps. Off: they must log in."},"active":{"type":"boolean"},"custom_tracking_code":{"type":"string"},"custom_tracking_code_for_body":{"type":"string"},"step_ids":{"type":"array","items":{"type":"integer"}},"connector_ids":{"type":"array","items":{"type":"integer"}}}},"FunnelStep":{"type":"object","properties":{"funnel":{"$ref":"#/components/schemas/Funnel","readOnly":true},"funnel_id":{"type":"integer"},"step_type":{"type":"string","enum":["first","split_test","condition","join","page","product","survey","scheduling_link","redirect","last"]},"name":{"type":"string"},"slug":{"type":"string"},"live":{"type":"boolean"},"archived":{"type":"boolean","readOnly":true,"description":"Change it with the archive and restore actions."},"landing_page":{"$ref":"#/components/schemas/LandingPage","readOnly":true},"landing_page_id":{"type":"integer"},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"survey":{"$ref":"#/components/schemas/Survey","readOnly":true},"scheduling_link":{"$ref":"#/components/schemas/SchedulingLink","readOnly":true},"survey_id":{"type":"integer"},"scheduling_link_id":{"type":"integer"},"product_id":{"type":"integer"},"price_id":{"type":"integer","description":"A product step's price to charge, often a secret one. One of the product's prices. Empty: the product's usual prices."},"redirect_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"offline_behavior":{"type":"string","enum":["not_found","funnel_start","funnel_step","redirect_url"]},"offline_funnel_step":{"$ref":"#/components/schemas/FunnelStep","readOnly":true},"offline_funnel_step_id":{"type":"integer"},"offline_redirect_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"split_step":{"$ref":"#/components/schemas/FunnelStep","readOnly":true},"split_step_id":{"type":"integer","readOnly":true},"parent_connectors":{"type":"array","items":{"$ref":"#/components/schemas/FunnelConnector"},"readOnly":true},"parent_connector_ids":{"type":"array","items":{"type":"integer"}},"child_connectors":{"type":"array","items":{"$ref":"#/components/schemas/FunnelConnector"},"readOnly":true},"child_connector_ids":{"type":"array","items":{"type":"integer"}},"unique_views":{"type":"integer","readOnly":true},"total_views":{"type":"integer","readOnly":true},"url":{"type":"string","format":"uri","readOnly":true,"description":"Public URL of this step. The first step links to the funnel start. Empty for steps without a page."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["funnel_id","name","created_at","updated_at"]},"FunnelStepOptional":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"live":{"type":"boolean"},"landing_page_id":{"type":"integer"},"survey_id":{"type":"integer"},"scheduling_link_id":{"type":"integer"},"product_id":{"type":"integer"},"price_id":{"type":"integer","description":"A product step's price to charge, often a secret one. One of the product's prices. Empty: the product's usual prices."},"redirect_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"offline_behavior":{"type":"string","enum":["not_found","funnel_start","funnel_step","redirect_url"]},"offline_funnel_step_id":{"type":"integer"},"offline_redirect_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"parent_connector_ids":{"type":"array","items":{"type":"integer"}},"child_connector_ids":{"type":"array","items":{"type":"integer"}}}},"GeoFilter":{"type":"object","properties":{"distance":{"type":"string","enum":["5","10","25","50","100","200","300","400","500","750","1000"]},"location":{"type":"string"}}},"Idea":{"type":"object","properties":{"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"description":{"type":"string"},"admin_notes":{"type":"string"},"submitted_at":{"type":"string","format":"date-time"},"upvotes_count":{"type":"integer","readOnly":true},"comments_count":{"type":"integer","readOnly":true},"popularity_milestone":{"type":"integer","readOnly":true,"description":"The highest upvote milestone (10, 25, 50 or 100) members were told about. 0 before the first; null for one older than this feature until its next activity."},"pipeline_stage":{"$ref":"#/components/schemas/PipelineStage","readOnly":true},"pipeline_stage_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"assignee":{"$ref":"#/components/schemas/User","readOnly":true},"assignee_id":{"type":"integer"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/SiteComment"},"readOnly":true,"description":"Approved comments on this idea, oldest-first and thread-ordered. Each comment carries parent_id and depth so you can reconstruct reply threads."},"comment_ids":{"type":"array","items":{"type":"integer"},"description":"Approved comments on this idea, oldest-first and thread-ordered. Each comment carries parent_id and depth so you can reconstruct reply threads."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}}},"required":["title","description","submitted_at","pipeline_stage","pipeline_stage_id","customer","customer_id","created_at","updated_at"]},"IdeaOptional":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"description":{"type":"string"},"admin_notes":{"type":"string"},"submitted_at":{"type":"string","format":"date-time"},"customer_id":{"type":"integer"},"assignee_id":{"type":"integer"},"comment_ids":{"type":"array","items":{"type":"integer"},"description":"Approved comments on this idea, oldest-first and thread-ordered. Each comment carries parent_id and depth so you can reconstruct reply threads."},"field_value_ids":{"type":"array","items":{"type":"integer"}}}},"Installment":{"type":"object","properties":{"delta_count":{"type":"integer"},"delta_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"period":{"$ref":"#/components/schemas/PricePeriod","readOnly":true},"price_period_id":{"type":"integer"},"alternative_prices":{"type":"array","items":{"$ref":"#/components/schemas/AlternativePrice"},"readOnly":true},"alternative_price_ids":{"type":"array","items":{"type":"integer"}},"position":{"type":"integer"},"wait_for":{"type":"string"},"delta_sign":{"type":"integer"},"price_cents":{"type":"integer"},"repetitions":{"type":"integer"},"milestone_text":{"type":"string"},"due_on":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["price_period_id","created_at","updated_at"]},"InstallmentOptional":{"type":"object","properties":{"delta_count":{"type":"integer"},"delta_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"alternative_price_ids":{"type":"array","items":{"type":"integer"}},"position":{"type":"integer"},"wait_for":{"type":"string"},"delta_sign":{"type":"integer"},"price_cents":{"type":"integer"},"repetitions":{"type":"integer"},"milestone_text":{"type":"string"},"due_on":{"type":"string","format":"date-time"}}},"Integration":{"type":"object","properties":{"token":{"type":"string","readOnly":true}}},"Integrations::Zoom":{"type":"object","properties":{"token":{"type":"string","readOnly":true}}},"Invitation":{"type":"object"},"Label":{"type":"object","properties":{"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"label_color":{"type":"string"},"text_color":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"LabelOptional":{"type":"object","properties":{"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"label_color":{"type":"string"},"text_color":{"type":"string"}}},"Labeling":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/Label","readOnly":true},"label_id":{"type":"integer"},"labeled_object":{"type":"object","readOnly":true},"labeled_object_id":{"type":"integer"},"labeled_object_type":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["label_id","created_at","updated_at"]},"LandingPage":{"type":"object","properties":{"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"token":{"type":"string","readOnly":true},"stealme_token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"content_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the content BuilderDoc owned by this LandingPage."},"name":{"type":"string"},"page_type":{"type":"string","enum":["embedded","raw","themed_full","builder_doc"]},"locale":{"type":"string"},"active":{"type":"boolean"},"publish_status":{"type":"string","readOnly":true},"hide_from_customers":{"type":"boolean"},"permanent_redirect":{"type":"boolean"},"expires_at":{"type":"string","format":"date-time"},"deleted_at":{"type":"string","format":"date-time","readOnly":true},"page_title":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"color_mode":{"type":"string"},"noindex":{"type":"boolean"},"meta_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"meta_image_id":{"type":"integer"},"favicon":{"$ref":"#/components/schemas/Asset","readOnly":true},"favicon_id":{"type":"integer"},"cta_object":{"type":"object","readOnly":true},"cta_object_id":{"type":"integer","readOnly":true},"cta_object_type":{"type":"string","readOnly":true},"inactive_action":{"type":"string"},"inactive_redirect_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"custom_tracking_code":{"type":"string","description":"Only relevant when page_type is themed_full or builder_doc."},"custom_tracking_code_for_body":{"type":"string","description":"Only relevant when page_type is themed_full or builder_doc."},"desktop_preview_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"desktop_preview_image_id":{"type":"integer","readOnly":true},"url_type":{"type":"string","enum":["canonical","custom_domain","site"],"description":"URL routing. Only relevant when page_type is themed_full or builder_doc."},"url_site":{"$ref":"#/components/schemas/Site","readOnly":true,"description":"URL routing. Only relevant when page_type is themed_full or builder_doc."},"url_site_id":{"type":"integer","description":"URL routing. Only relevant when page_type is themed_full or builder_doc."},"url_site_path":{"type":"string","description":"URL routing. Only relevant when page_type is themed_full or builder_doc."},"allow_anonymous_on_private_site":{"type":"boolean","description":"When the page is under a private or join site: lets visitors who are not logged in see it. Off: they must log in. Not used by funnel step pages, which follow their funnel."},"url":{"type":"string","format":"uri","readOnly":true,"description":"Public page URL. Follows its funnel step, site path or custom domain."},"unique_displays":{"type":"integer","readOnly":true},"conversions":{"type":"integer","readOnly":true},"total_displays":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name"]},"LandingPageOptional":{"type":"object","properties":{"form_field_ids":{"type":"array","items":{"type":"integer"}},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"locale":{"type":"string"},"active":{"type":"boolean"},"hide_from_customers":{"type":"boolean"},"permanent_redirect":{"type":"boolean"},"expires_at":{"type":"string","format":"date-time"},"page_title":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"color_mode":{"type":"string"},"noindex":{"type":"boolean"},"meta_image_id":{"type":"integer"},"favicon_id":{"type":"integer"},"inactive_action":{"type":"string"},"inactive_redirect_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"custom_tracking_code":{"type":"string","description":"Only relevant when page_type is themed_full or builder_doc."},"custom_tracking_code_for_body":{"type":"string","description":"Only relevant when page_type is themed_full or builder_doc."},"url_type":{"type":"string","enum":["canonical","custom_domain","site"],"description":"URL routing. Only relevant when page_type is themed_full or builder_doc."},"url_site_id":{"type":"integer","description":"URL routing. Only relevant when page_type is themed_full or builder_doc."},"url_site_path":{"type":"string","description":"URL routing. Only relevant when page_type is themed_full or builder_doc."},"allow_anonymous_on_private_site":{"type":"boolean","description":"When the page is under a private or join site: lets visitors who are not logged in see it. Off: they must log in. Not used by funnel step pages, which follow their funnel."}}},"LibraryMailing":{"type":"object","properties":{"resend_delay_count":{"type":"integer"},"resend_delay_unit":{"type":"string","enum":["hours","days"]},"resend_filter":{"type":"string","description":"Automatically resend to recipients who didn't open ('no_open') or didn't click ('no_click'), resend_delay after the email went out. Blank = off."},"resend_subject":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_preheader":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_body":{"type":"string","description":"Body for the automatic resend. Blank = same as the original."},"resend_style":{"type":"string","description":"Make the resend look like a 'reply' or a 'forward' of the original, with resend_note above the quoted original. Blank = resend the same email."},"resend_note":{"type":"string","description":"Note above the quoted original when resend_style is reply or forward."},"resend_of":{"$ref":"#/components/schemas/Mailing","readOnly":true,"description":"The original email, when this email is an automatic resend."},"resend_of_id":{"type":"integer","readOnly":true,"description":"The original email, when this email is an automatic resend."},"email_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the email BuilderDoc owned by this Mailing."},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"body_editor":{"type":"string","description":"Writable values are wysiwyg and html. Existing emails may return builder, but the new email builder is not on the API yet."},"subject":{"type":"string"},"preheader":{"type":"string"},"body":{"type":"string","description":"Email content for the wysiwyg and html editors. Read-only when the stored body_editor is builder; switch editors in a separate request before writing body."},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"template":{"$ref":"#/components/schemas/EmailTemplate","readOnly":true},"email_template_id":{"type":"integer"},"recipients_segment":{"$ref":"#/components/schemas/Segment","readOnly":true},"recipients_segment_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"hide_from_archive":{"type":"boolean"},"hide_web_version":{"type":"boolean"},"hide_from_recents":{"type":"boolean"},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"non_warming":{"type":"boolean"},"split_test":{"type":"boolean"},"subject_b":{"type":"string"},"preheader_b":{"type":"string"},"test_percentage":{"type":"integer"},"test_duration_minutes":{"type":"integer"},"state":{"type":"string","readOnly":true},"recipients_count":{"type":"integer","readOnly":true},"subject_a_open_rate":{"type":"number","readOnly":true},"subject_b_open_rate":{"type":"number","readOnly":true},"spam_score":{"type":"number","readOnly":true},"spam_hits":{"type":"string","readOnly":true},"for_single_action":{"type":"boolean","readOnly":true},"deliveries_finalized":{"type":"boolean","readOnly":true},"split_test_p_value":{"type":"number","readOnly":true},"delivered_at":{"type":"string","format":"date-time","readOnly":true},"deliver_at":{"type":"string","format":"date-time","readOnly":true},"queued_at":{"type":"string","format":"date-time","readOnly":true},"body_updated_at":{"type":"string","format":"date-time","readOnly":true},"start_delivering_at":{"type":"string","format":"date-time","readOnly":true},"first_delivery_at":{"type":"string","format":"date-time","readOnly":true},"last_delivery_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"delivery_spread_window_minutes":{"type":"integer"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."}},"required":["email_template_id"]},"LibraryMailingOptional":{"type":"object","properties":{"resend_delay_count":{"type":"integer"},"resend_delay_unit":{"type":"string","enum":["hours","days"]},"resend_filter":{"type":"string","description":"Automatically resend to recipients who didn't open ('no_open') or didn't click ('no_click'), resend_delay after the email went out. Blank = off."},"resend_subject":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_preheader":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_body":{"type":"string","description":"Body for the automatic resend. Blank = same as the original."},"resend_style":{"type":"string","description":"Make the resend look like a 'reply' or a 'forward' of the original, with resend_note above the quoted original. Blank = resend the same email."},"resend_note":{"type":"string","description":"Note above the quoted original when resend_style is reply or forward."},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"body_editor":{"type":"string","description":"Writable values are wysiwyg and html. Existing emails may return builder, but the new email builder is not on the API yet."},"subject":{"type":"string"},"preheader":{"type":"string"},"body":{"type":"string","description":"Email content for the wysiwyg and html editors. Read-only when the stored body_editor is builder; switch editors in a separate request before writing body."},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"email_template_id":{"type":"integer"},"recipients_segment_id":{"type":"integer"},"user_id":{"type":"integer"},"hide_from_archive":{"type":"boolean"},"hide_web_version":{"type":"boolean"},"hide_from_recents":{"type":"boolean"},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"non_warming":{"type":"boolean"},"split_test":{"type":"boolean"},"subject_b":{"type":"string"},"preheader_b":{"type":"string"},"test_percentage":{"type":"integer"},"test_duration_minutes":{"type":"integer"},"delivery_spread_window_minutes":{"type":"integer"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."}}},"List":{"type":"object","properties":{"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"automation_templates":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"answer_keys":{"type":"array","items":{"type":"string"}},"answer_options":{"type":"object","description":"Choices per answer key, e.g. style: [{ value, title, emails, default }], locale: [{ value, title, default }]"}}},"readOnly":true,"description":"Templates create_automation_from_template accepts for this record, with the answers each one reads."},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"internal_name":{"type":"string"},"handle":{"type":"string"},"main":{"type":"boolean","readOnly":true,"description":"Whether this is the main list: people who opt in to hear from you on a checkout form are subscribed to it."},"require_confirmation":{"type":"boolean"},"customize_confirmation_email":{"type":"boolean"},"confirm_email_subject":{"type":"string"},"confirm_email_preheader":{"type":"string"},"confirm_button_label":{"type":"string"},"confirm_email_intro":{"type":"string"},"confirm_email_fallback_text":{"type":"string"},"confirm_email_ignore_text":{"type":"string"},"confirm_email_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"sender_verified_email_id":{"type":"integer"},"reply_to_verified_email_id":{"type":"integer"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"broadcast_subject_prefix":{"type":"string"},"broadcast_footer":{"type":"string"},"notify_email":{"type":"string","format":"email"},"archive":{"type":"string"},"thank_you_page_title":{"type":"string"},"thank_you_page_tracking_code":{"type":"string"},"thank_you_page_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"return_to":{"type":"string"},"confirm_pending_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"unsubscribed_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"email_field_name":{"type":"string","readOnly":true},"meta_conversion_event":{"type":"string"},"antibot_preference":{"type":"string","enum":["suspicious_signups","all_signups","never"]},"send_login_email":{"type":"boolean"},"allow_legacy_form_signup":{"type":"boolean"},"disable_gdpr_consent":{"type":"boolean"},"use_custom_gdpr_consent_message":{"type":"boolean"},"gdpr_consent_message":{"type":"string"},"gdpr_consent_intro":{"type":"string"},"auto_responses":{"type":"array","items":{"$ref":"#/components/schemas/AutoResponse"},"readOnly":true},"auto_response_ids":{"type":"array","items":{"type":"integer"}},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"},"readOnly":true},"trigger_ids":{"type":"array","items":{"type":"integer"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"readOnly":true},"attachment_ids":{"type":"array","items":{"type":"integer"}},"landing_pages":{"type":"array","items":{"$ref":"#/components/schemas/LandingPage"},"readOnly":true},"landing_page_ids":{"type":"array","items":{"type":"integer"}},"active_subscriber_count":{"type":"integer","readOnly":true},"attachments_count":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","internal_name"]},"ListOptional":{"type":"object","properties":{"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"internal_name":{"type":"string"},"handle":{"type":"string"},"require_confirmation":{"type":"boolean"},"customize_confirmation_email":{"type":"boolean"},"confirm_email_subject":{"type":"string"},"confirm_email_preheader":{"type":"string"},"confirm_button_label":{"type":"string"},"confirm_email_intro":{"type":"string"},"confirm_email_fallback_text":{"type":"string"},"confirm_email_ignore_text":{"type":"string"},"confirm_email_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"sender_verified_email_id":{"type":"integer"},"reply_to_verified_email_id":{"type":"integer"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"broadcast_subject_prefix":{"type":"string"},"broadcast_footer":{"type":"string"},"notify_email":{"type":"string","format":"email"},"archive":{"type":"string"},"thank_you_page_title":{"type":"string"},"thank_you_page_tracking_code":{"type":"string"},"thank_you_page_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"return_to":{"type":"string"},"confirm_pending_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"unsubscribed_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"meta_conversion_event":{"type":"string"},"antibot_preference":{"type":"string","enum":["suspicious_signups","all_signups","never"]},"send_login_email":{"type":"boolean"},"allow_legacy_form_signup":{"type":"boolean"},"disable_gdpr_consent":{"type":"boolean"},"use_custom_gdpr_consent_message":{"type":"boolean"},"gdpr_consent_message":{"type":"string"},"gdpr_consent_intro":{"type":"string"},"auto_response_ids":{"type":"array","items":{"type":"integer"}},"trigger_ids":{"type":"array","items":{"type":"integer"}},"attachment_ids":{"type":"array","items":{"type":"integer"}},"landing_page_ids":{"type":"array","items":{"type":"integer"}}}},"LivestreamConfig":{"type":"object","properties":{"mute_on_join":{"type":"boolean","description":"Mute attendees when they join. They can unmute themselves unless participants_cannot_unmute is on."},"camera_on_join":{"type":"boolean","description":"Turn attendees' cameras on when they join. Attendees can still turn the camera on or off. Hosts are not affected."}}},"Mailing":{"type":"object","properties":{"resend_delay_count":{"type":"integer"},"resend_delay_unit":{"type":"string","enum":["hours","days"]},"resend_filter":{"type":"string","description":"Automatically resend to recipients who didn't open ('no_open') or didn't click ('no_click'), resend_delay after the email went out. Blank = off."},"resend_subject":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_preheader":{"type":"string","description":"Subject / preheader for the automatic resend. Blank = same as the original."},"resend_body":{"type":"string","description":"Body for the automatic resend. Blank = same as the original."},"resend_style":{"type":"string","description":"Make the resend look like a 'reply' or a 'forward' of the original, with resend_note above the quoted original. Blank = resend the same email."},"resend_note":{"type":"string","description":"Note above the quoted original when resend_style is reply or forward."},"resend_of":{"$ref":"#/components/schemas/Mailing","readOnly":true,"description":"The original email, when this email is an automatic resend."},"resend_of_id":{"type":"integer","readOnly":true,"description":"The original email, when this email is an automatic resend."},"email_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the email BuilderDoc owned by this Mailing."},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"body_editor":{"type":"string","description":"Writable values are wysiwyg and html. Existing emails may return builder, but the new email builder is not on the API yet."},"subject":{"type":"string"},"preheader":{"type":"string"},"body":{"type":"string","description":"Email content for the wysiwyg and html editors. Read-only when the stored body_editor is builder; switch editors in a separate request before writing body."},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"template":{"$ref":"#/components/schemas/EmailTemplate","readOnly":true},"email_template_id":{"type":"integer"},"recipients_segment":{"$ref":"#/components/schemas/Segment","readOnly":true},"recipients_segment_id":{"type":"integer"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"hide_from_archive":{"type":"boolean"},"hide_web_version":{"type":"boolean"},"hide_from_recents":{"type":"boolean"},"show_in_admin":{"type":"boolean"},"non_warming":{"type":"boolean"},"split_test":{"type":"boolean"},"subject_b":{"type":"string"},"preheader_b":{"type":"string"},"test_percentage":{"type":"integer"},"test_duration_minutes":{"type":"integer"},"state":{"type":"string","readOnly":true},"recipients_count":{"type":"integer","readOnly":true},"subject_a_open_rate":{"type":"number","readOnly":true},"subject_b_open_rate":{"type":"number","readOnly":true},"spam_score":{"type":"number","readOnly":true},"spam_hits":{"type":"string","readOnly":true},"for_single_action":{"type":"boolean","readOnly":true},"deliveries_finalized":{"type":"boolean","readOnly":true},"split_test_p_value":{"type":"number","readOnly":true},"delivered_at":{"type":"string","format":"date-time","readOnly":true},"deliver_at":{"type":"string","format":"date-time","readOnly":true},"queued_at":{"type":"string","format":"date-time","readOnly":true},"body_updated_at":{"type":"string","format":"date-time","readOnly":true},"start_delivering_at":{"type":"string","format":"date-time","readOnly":true},"first_delivery_at":{"type":"string","format":"date-time","readOnly":true},"last_delivery_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"delivery_spread_window_minutes":{"type":"integer"}},"required":["email_template_id"]},"MailingDelivery":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"mailing":{"$ref":"#/components/schemas/Mailing","readOnly":true},"mailing_id":{"type":"integer"},"email":{"type":"string","format":"email"},"sent_at":{"type":"string","format":"date-time","readOnly":true},"delivered_at":{"type":"string","format":"date-time","readOnly":true},"dropped_at":{"type":"string","format":"date-time","readOnly":true},"opened_at":{"type":"string","format":"date-time","readOnly":true},"clicked_at":{"type":"string","format":"date-time","readOnly":true},"bounced_at":{"type":"string","format":"date-time","readOnly":true},"spamreported_at":{"type":"string","format":"date-time","readOnly":true},"unsubscribed_at":{"type":"string","format":"date-time","readOnly":true},"opens_count":{"type":"integer","readOnly":true},"clicks_count":{"type":"integer","readOnly":true},"token":{"type":"string","readOnly":true}},"required":["customer","mailing","mailing_id","token"]},"MeetingRoom":{"type":"object"},"MembershipLevelGroup":{"type":"object","properties":{"name":{"type":"string"},"allowed_changes":{"type":"string"},"suggest_downgrade_on_cancel":{"type":"boolean"},"change_at_end_of_period":{"type":"boolean"}},"required":["allowed_changes"]},"MembershipLevelGroupOptional":{"type":"object","properties":{"name":{"type":"string"},"allowed_changes":{"type":"string"},"suggest_downgrade_on_cancel":{"type":"boolean"},"change_at_end_of_period":{"type":"boolean"}}},"NavList":{"type":"object","properties":{"name":{"type":"string"},"handle":{"type":"string"},"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer"},"links":{"type":"array","items":{"$ref":"#/components/schemas/NavListLink"},"readOnly":true},"link_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","handle","site_id","created_at","updated_at"]},"NavListLink":{"type":"object","properties":{"nav_list":{"$ref":"#/components/schemas/NavList","readOnly":true},"nav_list_id":{"type":"integer"},"label":{"type":"string"},"hidden":{"type":"boolean"},"open_in_new_tab":{"type":"boolean"},"fa_icon":{"type":"string"},"parent_id":{"type":"integer"},"page_section_id":{"type":"string"},"link_type":{"type":"string","enum":["builder_doc_page","forum","feed","leaderboards","courses","courses_folder","coaching_programs","events","members","home","course","page_group","product","site_groups","site_group","blog","dashboard","external","catalog","support","terms","page_anchor","blog_post_template","product_category","favorites","playlists","history","podcast","bot","bots","ideas_board","webbook","coaching_program","page"]},"external_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"page":{"$ref":"#/components/schemas/Page","readOnly":true},"page_id":{"type":"integer"},"course":{"$ref":"#/components/schemas/Course","readOnly":true},"course_id":{"type":"integer"},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"site_group":{"$ref":"#/components/schemas/SiteGroup","readOnly":true},"site_group_id":{"type":"integer"},"podcast":{"$ref":"#/components/schemas/Podcast","readOnly":true},"podcast_id":{"type":"integer"},"bot":{"$ref":"#/components/schemas/Bot","readOnly":true},"bot_id":{"type":"integer"},"pipeline":{"$ref":"#/components/schemas/Pipeline","readOnly":true},"pipeline_id":{"type":"integer"},"product_category":{"$ref":"#/components/schemas/ProductCategory","readOnly":true},"product_category_id":{"type":"integer"},"coaching_program":{"$ref":"#/components/schemas/CoachingProgram","readOnly":true},"coaching_program_id":{"type":"integer"},"route":{"$ref":"#/components/schemas/Route","readOnly":true},"route_id":{"type":"integer","readOnly":true},"color":{"type":"string","description":"Only applies to links of type page_group. Hex color the site sidebar tints the folder's panel with, e.g. \"#0F766E\". Blank leaves the folder untinted."},"appearance":{"type":"string","description":"Only applies to links of type page_group. \"dropdown\" (the default) collapses the folder behind a toggle; \"section\" makes the site sidebar always show its children under an uppercase heading. Ignored by the top nav."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["nav_list_id","label","created_at","updated_at"]},"NavListLinkOptional":{"type":"object","properties":{"label":{"type":"string"},"hidden":{"type":"boolean"},"open_in_new_tab":{"type":"boolean"},"fa_icon":{"type":"string"},"parent_id":{"type":"integer"},"page_section_id":{"type":"string"},"external_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"page_id":{"type":"integer"},"course_id":{"type":"integer"},"product_id":{"type":"integer"},"site_group_id":{"type":"integer"},"podcast_id":{"type":"integer"},"bot_id":{"type":"integer"},"pipeline_id":{"type":"integer"},"product_category_id":{"type":"integer"},"coaching_program_id":{"type":"integer"},"color":{"type":"string","description":"Only applies to links of type page_group. Hex color the site sidebar tints the folder's panel with, e.g. \"#0F766E\". Blank leaves the folder untinted."},"appearance":{"type":"string","description":"Only applies to links of type page_group. \"dropdown\" (the default) collapses the folder behind a toggle; \"section\" makes the site sidebar always show its children under an uppercase heading. Ignored by the top nav."}}},"NotFoundRequest":{"type":"object","properties":{"path":{"type":"string","readOnly":true},"site_id":{"type":"integer","readOnly":true},"not_found_path_id":{"type":"integer","readOnly":true},"requests_count":{"type":"integer","readOnly":true},"last_request_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["path","created_at"]},"Notice":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"internal_name":{"type":"string"},"title":{"type":"string"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"impressions_count":{"type":"integer","readOnly":true},"clicks_count":{"type":"integer","readOnly":true},"dismissed_count":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["internal_name","title","body","created_at","updated_at"]},"NoticeOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"internal_name":{"type":"string"},"title":{"type":"string"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"}}},"NpsResponseTemplate":{"type":"object","properties":{"nps_survey":{"$ref":"#/components/schemas/NpsSurvey","readOnly":true},"nps_survey_id":{"type":"integer","readOnly":true},"user_id":{"type":"integer","readOnly":true},"position":{"type":"integer","readOnly":true},"name":{"type":"string"},"subject":{"type":"string"},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"score_start":{"type":"integer"},"score_end":{"type":"integer"},"auto_reply":{"type":"boolean","description":"Send this response automatically for scores in the configured range."},"auto_reply_with_feedback":{"type":"boolean","description":"Also send automatically when the member included written feedback."},"reply_delay_minutes":{"type":"integer"},"randomize_reply_delay":{"type":"boolean","description":"Randomize the reply delay by up to 50 percent in either direction."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["nps_survey_id","name","subject","body","score_start","score_end","created_at","updated_at"]},"NpsResponseTemplateOptional":{"type":"object","properties":{"name":{"type":"string"},"subject":{"type":"string"},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"score_start":{"type":"integer"},"score_end":{"type":"integer"},"auto_reply":{"type":"boolean","description":"Send this response automatically for scores in the configured range."},"auto_reply_with_feedback":{"type":"boolean","description":"Also send automatically when the member included written feedback."},"reply_delay_minutes":{"type":"integer"},"randomize_reply_delay":{"type":"boolean","description":"Randomize the reply delay by up to 50 percent in either direction."}}},"NpsScore":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"nps_survey":{"$ref":"#/components/schemas/NpsSurvey","readOnly":true,"description":"The NPS survey this score belongs to."},"nps_survey_id":{"type":"integer","description":"The NPS survey this score belongs to."},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer","readOnly":true},"score":{"type":"integer","description":"score is 0-10 (9-10 promoter, 7-8 neutral, 0-6 detractor); null until the respondent submits it. feedback is optional free-text."},"feedback":{"type":"string","description":"score is 0-10 (9-10 promoter, 7-8 neutral, 0-6 detractor); null until the respondent submits it. feedback is optional free-text."},"submitted_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the respondent submitted a score. Null until responded."},"replied_at":{"type":"string","format":"date-time","readOnly":true,"description":"When a reply broadcast was sent for this score, if any."},"ask_me_later_at":{"type":"string","format":"date-time","readOnly":true,"description":"Set when the respondent asked to be reminded later instead of scoring now."},"url":{"type":"string","format":"uri","readOnly":true,"description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"referer":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"NpsSurvey":{"type":"object","properties":{"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"name":{"type":"string"},"score_question":{"type":"string"},"low_score_hint":{"type":"string"},"high_score_hint":{"type":"string"},"feedback_question":{"type":"string"},"post_survey_message":{"type":"string"},"sample_size":{"type":"integer","description":"Percent of eligible members shown the survey per day (0-100)."},"wait_days":{"type":"integer","description":"Days to wait before asking the same member again."},"ask_me_later_days":{"type":"integer","description":"Days to wait before asking again after the member clicks \"ask me later\"."},"page_views":{"type":"integer","description":"Page views to wait for before the survey is shown."},"email_template_id":{"type":"integer"},"notify_via_email_on_feedback":{"type":"boolean"},"ignore_do_not_contact_strategy":{"type":"string","enum":["never","when_feedback_given","always"],"description":"Whether a contact marked do-not-contact is still surveyed: `never`, `when_feedback_given`, or `always`."},"user_id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","sample_size","wait_days","ask_me_later_days","page_views","created_at","updated_at"]},"NpsSurveyOptional":{"type":"object","properties":{"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"name":{"type":"string"},"score_question":{"type":"string"},"low_score_hint":{"type":"string"},"high_score_hint":{"type":"string"},"feedback_question":{"type":"string"},"post_survey_message":{"type":"string"},"sample_size":{"type":"integer","description":"Percent of eligible members shown the survey per day (0-100)."},"wait_days":{"type":"integer","description":"Days to wait before asking the same member again."},"ask_me_later_days":{"type":"integer","description":"Days to wait before asking again after the member clicks \"ask me later\"."},"page_views":{"type":"integer","description":"Page views to wait for before the survey is shown."},"email_template_id":{"type":"integer"},"notify_via_email_on_feedback":{"type":"boolean"},"ignore_do_not_contact_strategy":{"type":"string","enum":["never","when_feedback_given","always"],"description":"Whether a contact marked do-not-contact is still surveyed: `never`, `when_feedback_given`, or `always`."}}},"NumericFilter":{"type":"object","properties":{"op":{"type":"string","enum":["gte","gt","lte","lt","between","equals","not_equal"]},"value":{"type":"number"},"value2":{"type":"number","description":"Only when op is between"}}},"Offer":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"name":{"type":"string"},"headline":{"type":"string"},"yes_label":{"type":"string"},"no_label":{"type":"string"},"custom_css":{"type":"string"},"price_id":{"type":"integer"},"body_text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"discount_type":{"type":"string","enum":["none","percent","cents"]},"discount_percent":{"type":"number"},"discount_cents":{"type":"integer"},"discount_on_renewal":{"type":"boolean"},"discount_on_installments":{"type":"boolean"},"deleted_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product","product_id","name","created_at","updated_at"]},"OfferOptional":{"type":"object","properties":{"name":{"type":"string"},"headline":{"type":"string"},"yes_label":{"type":"string"},"no_label":{"type":"string"},"custom_css":{"type":"string"},"price_id":{"type":"integer"},"body_text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"discount_type":{"type":"string","enum":["none","percent","cents"]},"discount_percent":{"type":"number"},"discount_cents":{"type":"integer"},"discount_on_renewal":{"type":"boolean"},"discount_on_installments":{"type":"boolean"}}},"OptIn":{"type":"object","properties":{"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}},"email":{"type":"string","format":"email","readOnly":true},"first_names":{"type":"string","readOnly":true},"last_name":{"type":"string","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"owner_id":{"type":"integer","readOnly":true},"owner_type":{"type":"string","readOnly":true},"funnel_step_id":{"type":"integer","readOnly":true},"utm_source":{"type":"string","readOnly":true},"utm_medium":{"type":"string","readOnly":true},"utm_campaign":{"type":"string","readOnly":true},"utm_content":{"type":"string","readOnly":true},"utm_term":{"type":"string","readOnly":true},"utm_adgroup":{"type":"string","readOnly":true},"utm_keyword":{"type":"string","readOnly":true},"ref":{"type":"string","readOnly":true},"track":{"type":"string","readOnly":true},"gdpr_consent":{"type":"boolean","readOnly":true},"referrer":{"type":"string","readOnly":true},"ip_address":{"type":"string","readOnly":true},"affiliate_id":{"type":"integer","readOnly":true},"affiliate_link_id":{"type":"integer","readOnly":true},"user_agent":{"type":"string","readOnly":true},"device_type":{"type":"string","enum":["mobile","desktop"],"readOnly":true},"screen_size":{"type":"string","readOnly":true},"score":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"OrderBump":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"bump_product_id":{"type":"integer","description":"The offered product. Derived from the selected price on save."},"price_id":{"type":"integer"},"label":{"type":"string"},"callout":{"type":"string"},"color":{"type":"string"},"hide_price":{"type":"boolean"},"pre_selected":{"type":"boolean"},"follow_price_conditions":{"type":"boolean"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"trigger_price_ids":{"type":"array","items":{"type":"integer"},"description":"Prices of the owning product for which this bump is shown. Empty means every price."},"position":{"type":"integer","description":"Sort order within the owning product, lowest first. Inserts or moves the bump and shifts siblings; omit on create to append."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product","product_id","label","created_at","updated_at"]},"OrderBumpOptional":{"type":"object","properties":{"bump_product_id":{"type":"integer","description":"The offered product. Derived from the selected price on save."},"price_id":{"type":"integer"},"label":{"type":"string"},"callout":{"type":"string"},"color":{"type":"string"},"hide_price":{"type":"boolean"},"pre_selected":{"type":"boolean"},"follow_price_conditions":{"type":"boolean"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"trigger_price_ids":{"type":"array","items":{"type":"integer"},"description":"Prices of the owning product for which this bump is shown. Empty means every price."},"position":{"type":"integer","description":"Sort order within the owning product, lowest first. Inserts or moves the bump and shifts siblings; omit on create to append."}}},"OutgoingWebhook":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"enabled":{"type":"boolean"},"last_success_at":{"type":"string","format":"date-time","readOnly":true},"last_failure_at":{"type":"string","format":"date-time","readOnly":true},"automatically_disabled_at":{"type":"string","format":"date-time","readOnly":true},"consecutive_failures":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"last_failure_error":{"type":"string","readOnly":true,"description":"Why the last delivery failed, e.g. an HTTP status code or a connection error"}},"required":["name","url","created_at","updated_at"]},"OutgoingWebhookOptional":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"enabled":{"type":"boolean"}}},"Page":{"type":"object","properties":{"content_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the content BuilderDoc owned by this Page."},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer"},"title":{"type":"string"},"internal_name":{"type":"string"},"slug":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"meta_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"meta_image_id":{"type":"integer"},"color_mode":{"type":"string"},"noindex":{"type":"boolean"},"hide_from_site_search":{"type":"boolean"},"hide_from_ai_bots":{"type":"boolean"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"builder_doc":{"type":"boolean","description":"True for Page Builder 2.0 pages, false for legacy themed pages. Cannot be changed after creation."},"total_views":{"type":"integer","readOnly":true},"unique_views":{"type":"integer","readOnly":true},"deleted_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["site","site_id","title","internal_name","created_at","updated_at"]},"PageOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"internal_name":{"type":"string"},"slug":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"meta_image_id":{"type":"integer"},"color_mode":{"type":"string"},"noindex":{"type":"boolean"},"hide_from_site_search":{"type":"boolean"},"hide_from_ai_bots":{"type":"boolean"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"}}},"PaymentProcessor":{"type":"object","properties":{"name":{"type":"string","readOnly":true},"enabled":{"type":"boolean","readOnly":true},"kind":{"type":"string","enum":["stripe","paypal","bank_transfer","cash","manual","store_credit","nmi","quickpay","quickpay_link","mobilepay","affirm","klarna","fanbasis","spreedly_core","mock"],"readOnly":true,"description":"Which processor this is. `manual` is any other offline method, like a money order."},"test_mode":{"type":"boolean","readOnly":true,"description":"True when it uses test keys or a sandbox, so no real money moves."},"checkout_mode":{"type":"string","readOnly":true,"description":"FanBasis only: `transparent` embeds payment on the order form, `offsite` redirects to hosted checkout. Blank means offsite (set before this option existed), and the field is blank for other processors."},"creator_id":{"type":"string","readOnly":true,"description":"FanBasis only: the creator handle that transparent checkout embeds. Blank for other processors."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","created_at","updated_at"]},"Payout":{"type":"object","properties":{"affiliate_id":{"type":"integer","readOnly":true},"cents":{"type":"integer","readOnly":true},"paid_at":{"type":"string","format":"date-time","readOnly":true},"next_retry_at":{"type":"string","format":"date-time","readOnly":true},"note":{"type":"string","readOnly":true},"last_error":{"type":"string","readOnly":true},"state":{"type":"string","enum":["completed","pending","sending","needs_reconciliation","failed","stopped"],"readOnly":true},"payout_method":{"type":"string","enum":["paypal_masspay","paypal_payouts","manual"],"readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["payout_method"]},"Pipeline":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"default":{"type":"boolean"},"entry_type":{"type":"string","enum":["deal","ticket","idea"]},"stages":{"type":"array","items":{"$ref":"#/components/schemas/PipelineStage"},"readOnly":true},"stage_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"facets":{"type":"array","items":{"$ref":"#/components/schemas/Facet"},"readOnly":true,"description":"For idea pipelines: the facets members can use to categorize their ideas."},"facet_ids":{"type":"array","items":{"type":"integer"},"description":"For idea pipelines: the facets members can use to categorize their ideas."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","entry_type","created_at","updated_at"]},"PipelineOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"form_field_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"default":{"type":"boolean"},"facet_ids":{"type":"array","items":{"type":"integer"},"description":"For idea pipelines: the facets members can use to categorize their ideas."}}},"PipelineStage":{"type":"object","properties":{"pipeline":{"$ref":"#/components/schemas/Pipeline","readOnly":true},"pipeline_id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string","enum":["open","won","lost","abandoned","waiting","closed","done","duplicate","planned","started"]},"position":{"type":"integer"},"tooltip":{"type":"string"},"probability":{"type":"integer"},"auto_move_on_purchase":{"type":"boolean"},"auto_move_on_reply":{"type":"boolean"},"color":{"type":"string","description":"Background hex color code for this stage (falls back to a default per status when blank)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."}},"required":["pipeline_id","name","status","position","created_at","updated_at"]},"PipelineStageOptional":{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string","enum":["open","won","lost","abandoned","waiting","closed","done","duplicate","planned","started"]},"position":{"type":"integer"},"tooltip":{"type":"string"},"probability":{"type":"integer"},"auto_move_on_purchase":{"type":"boolean"},"auto_move_on_reply":{"type":"boolean"},"color":{"type":"string","description":"Background hex color code for this stage (falls back to a default per status when blank)"},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."}}},"Playlist":{"type":"object","properties":{"name":{"type":"string","readOnly":true},"description":{"type":"string","readOnly":true},"site_id":{"type":"integer","readOnly":true},"site_member_id":{"type":"integer","readOnly":true},"visibility":{"type":"string","enum":["private","public"],"readOnly":true},"customer_id":{"type":"integer","readOnly":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/PlaylistItem"},"readOnly":true},"item_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","site_id","created_at","updated_at"]},"PlaylistItem":{"type":"object","properties":{"playlist_id":{"type":"integer","readOnly":true},"course_lesson_id":{"type":"integer","readOnly":true},"position":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["playlist_id","course_lesson_id","created_at","updated_at"]},"Podcast":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"internal_name":{"type":"string"},"host_name":{"type":"string"},"language":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"access":{"type":"string","enum":["public","private"]},"order":{"type":"string","enum":["newest_first","oldest_first"]},"apple_podcasts_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"spotify_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"episodes":{"type":"array","items":{"$ref":"#/components/schemas/PodcastEpisode"},"readOnly":true},"episode_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","internal_name","host_name","language","category","created_at","updated_at"]},"PodcastEpisode":{"type":"object","properties":{"title":{"type":"string"},"explicit":{"type":"boolean"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"meta_description":{"type":"string"},"subtitle":{"type":"string"},"show_notes":{"type":"string","description":"HTML content from a WYSIWYG editor"},"guid":{"type":"string","readOnly":true,"description":"Stable RSS GUID; auto-generated on create if omitted"},"podcast":{"$ref":"#/components/schemas/Podcast","readOnly":true},"podcast_id":{"type":"integer"},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["guid","podcast_id","created_at","updated_at"]},"PodcastEpisodeOptional":{"type":"object","properties":{"title":{"type":"string"},"explicit":{"type":"boolean"},"publish_status":{"type":"string"},"publish_at":{"type":"string","format":"date-time"},"meta_description":{"type":"string"},"subtitle":{"type":"string"},"show_notes":{"type":"string","description":"HTML content from a WYSIWYG editor"},"asset_id":{"type":"integer"},"card_image_id":{"type":"integer"}}},"PodcastOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"internal_name":{"type":"string"},"host_name":{"type":"string"},"language":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"access":{"type":"string","enum":["public","private"]},"order":{"type":"string","enum":["newest_first","oldest_first"]},"apple_podcasts_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"spotify_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"card_image_id":{"type":"integer"},"episode_ids":{"type":"array","items":{"type":"integer"}}}},"Poll":{"type":"object","properties":{"forum_post":{"$ref":"#/components/schemas/ForumPost","readOnly":true},"forum_post_id":{"type":"integer"},"options":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"},"description":"The answer choices, 2 to 6, in the order the poster listed them. Send them when you create the poll; after that, add, change or delete them through `/api/v2/poll_options`."},"option_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"The answer choices, 2 to 6, in the order the poster listed them. Send them when you create the poll; after that, add, change or delete them through `/api/v2/poll_options`."},"allow_multiple_options":{"type":"boolean","description":"Whether members can pick more than one option."},"allow_vote_change":{"type":"boolean","description":"Whether members can change their vote until the poll ends."},"shuffle_options":{"type":"boolean","description":"Whether each member sees the options in their own shuffled order, the same on every visit."},"results_visibility":{"type":"string","description":"When members see the counts: `after_vote`, `always`, or `after_close`."},"expires_at":{"type":"string","format":"date-time","description":"When the poll closes, or null to keep it open."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["forum_post_id","created_at","updated_at"]},"PollOption":{"type":"object","properties":{"poll":{"$ref":"#/components/schemas/Poll","readOnly":true},"poll_id":{"type":"integer"},"text":{"type":"string"},"position":{"type":"integer"},"image":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"An optional image for this answer choice."},"image_id":{"type":"integer","description":"An optional image for this answer choice."},"votes_count":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["poll_id","text","created_at","updated_at"]},"PollOptionOptional":{"type":"object","properties":{"text":{"type":"string"},"position":{"type":"integer"},"image_id":{"type":"integer","description":"An optional image for this answer choice."}}},"PollOptional":{"type":"object","properties":{"allow_multiple_options":{"type":"boolean","description":"Whether members can pick more than one option."},"allow_vote_change":{"type":"boolean","description":"Whether members can change their vote until the poll ends."},"shuffle_options":{"type":"boolean","description":"Whether each member sees the options in their own shuffled order, the same on every visit."},"results_visibility":{"type":"string","description":"When members see the counts: `after_vote`, `always`, or `after_close`."},"expires_at":{"type":"string","format":"date-time","description":"When the poll closes, or null to keep it open."}}},"PollVote":{"type":"object","properties":{"poll":{"$ref":"#/components/schemas/Poll","readOnly":true},"poll_id":{"type":"integer"},"poll_option":{"$ref":"#/components/schemas/PollOption","readOnly":true},"poll_option_id":{"type":"integer","readOnly":true},"site_member":{"$ref":"#/components/schemas/SiteMember","readOnly":true,"description":"The member who voted."},"site_member_id":{"type":"integer","readOnly":true,"description":"The member who voted."},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["poll_id","poll_option_id","site_member_id","created_at"]},"Price":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"commitment_count":{"type":"integer"},"commitment_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"variant":{"$ref":"#/components/schemas/ProductVariant","readOnly":true},"product_variant_id":{"type":"integer"},"replaces_price":{"$ref":"#/components/schemas/Price","readOnly":true},"replaces_price_id":{"type":"integer"},"credit":{"$ref":"#/components/schemas/Credit","readOnly":true},"credit_id":{"type":"integer"},"offers":{"type":"array","items":{"$ref":"#/components/schemas/Offer"},"readOnly":true},"offer_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"order_bumps":{"type":"array","items":{"$ref":"#/components/schemas/OrderBump"},"readOnly":true},"order_bump_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"},"readOnly":true},"trigger_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"purchases":{"type":"array","items":{"$ref":"#/components/schemas/Purchase"},"readOnly":true},"purchase_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"replaced_by_prices":{"type":"array","items":{"$ref":"#/components/schemas/Price"},"readOnly":true},"replaced_by_price_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"periods":{"type":"array","items":{"$ref":"#/components/schemas/PricePeriod"},"description":"The billing periods, in order. Set them with `periods` on create; change them later at /api/v2/price_periods."},"period_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"The billing periods, in order. Set them with `periods` on create; change them later at /api/v2/price_periods."},"name":{"type":"string"},"description":{"type":"string"},"subtitle":{"type":"string"},"badge":{"type":"string"},"internal_notes":{"type":"string"},"position":{"type":"integer"},"listing_type":{"type":"string","enum":["published","secret","coupon"]},"currency_type":{"type":"string","enum":["money","credit"]},"price_type":{"type":"string","enum":["purchase","subscription"]},"allow_donation":{"type":"boolean"},"prorate":{"type":"boolean"},"auto_renew":{"type":"string"},"coupon_code":{"type":"string"},"quantity_remain":{"type":"integer"},"min_quantity":{"type":"integer"},"payment_processors":{"type":"string"},"enabled":{"type":"boolean"},"authorize_only":{"type":"boolean"},"always_require_subscription":{"type":"boolean"},"donation_amount_label":{"type":"string"},"donation_free_label":{"type":"string"},"always_run":{"type":"boolean"},"credit_amount":{"type":"number"},"manage_mode":{"type":"string","enum":["allowed","locked"]},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false. Who may buy at this price. A price whose rule is enforced is left out of the product's list price and catalog, and checkout offers it only to contacts who match."},"has_trial":{"type":"boolean","readOnly":true},"purchase_url":{"type":"string","format":"uri","readOnly":true,"description":"Order form for this price. Secret and coupon prices have their own link."},"allow_reservations":{"type":"boolean"},"show_quantity_remain":{"type":"boolean"},"custom_spots_text":{"type":"string"},"advanced":{"type":"boolean"},"allow_repeat_purchases":{"type":"boolean"},"invoice_text":{"type":"string","description":"Replaces the product and price name on invoice lines. Blank uses the product name, plus the variant and price names when there is more than one."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","product_id","position","created_at","updated_at"]},"PriceOptional":{"type":"object","properties":{"commitment_count":{"type":"integer"},"commitment_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"product_variant_id":{"type":"integer"},"replaces_price_id":{"type":"integer"},"credit_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"subtitle":{"type":"string"},"badge":{"type":"string"},"internal_notes":{"type":"string"},"position":{"type":"integer"},"listing_type":{"type":"string","enum":["published","secret","coupon"]},"currency_type":{"type":"string","enum":["money","credit"]},"allow_donation":{"type":"boolean"},"prorate":{"type":"boolean"},"auto_renew":{"type":"string"},"coupon_code":{"type":"string"},"quantity_remain":{"type":"integer"},"min_quantity":{"type":"integer"},"payment_processors":{"type":"string"},"enabled":{"type":"boolean"},"authorize_only":{"type":"boolean"},"always_require_subscription":{"type":"boolean"},"donation_amount_label":{"type":"string"},"donation_free_label":{"type":"string"},"always_run":{"type":"boolean"},"credit_amount":{"type":"number"},"manage_mode":{"type":"string","enum":["allowed","locked"]},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false. Who may buy at this price. A price whose rule is enforced is left out of the product's list price and catalog, and checkout offers it only to contacts who match."},"allow_reservations":{"type":"boolean"},"show_quantity_remain":{"type":"boolean"},"custom_spots_text":{"type":"string"},"advanced":{"type":"boolean"},"allow_repeat_purchases":{"type":"boolean"},"invoice_text":{"type":"string","description":"Replaces the product and price name on invoice lines. Blank uses the product name, plus the variant and price names when there is more than one."}}},"PricePeriod":{"type":"object","properties":{"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"price":{"$ref":"#/components/schemas/Price","readOnly":true},"price_id":{"type":"integer"},"installments":{"type":"array","items":{"$ref":"#/components/schemas/Installment"},"readOnly":true},"installment_ids":{"type":"array","items":{"type":"integer"}},"alternative_prices":{"type":"array","items":{"$ref":"#/components/schemas/AlternativePrice"},"readOnly":true},"alternative_price_ids":{"type":"array","items":{"type":"integer"}},"position":{"type":"integer"},"price_cents":{"type":"integer"},"duration_until":{"type":"string","format":"date-time"},"duration_from":{"type":"string","format":"date-time"},"count":{"type":"integer","description":"How many times this period bills before the next one starts. Blank repeats until canceled."},"total_price_cents":{"type":"integer","readOnly":true},"currency_code":{"type":"string","readOnly":true,"description":"Currency of `price_cents` and `total_price_cents`: the account currency. Other currencies are in `alternative_prices`."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["price_id","created_at","updated_at"]},"PricePeriodOptional":{"type":"object","properties":{"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"installment_ids":{"type":"array","items":{"type":"integer"}},"alternative_price_ids":{"type":"array","items":{"type":"integer"}},"position":{"type":"integer"},"price_cents":{"type":"integer"},"duration_until":{"type":"string","format":"date-time"},"duration_from":{"type":"string","format":"date-time"},"count":{"type":"integer","description":"How many times this period bills before the next one starts. Blank repeats until canceled."}}},"Product":{"type":"object","properties":{"content_site_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"IDs of the sites this product grants access to, including ones limited to some of its variants (set in the admin Content tab). Change with the add_content action (existing buyers get access too) and the remove_content action (revokes access from existing buyers unless keep_current_grants is true; removing a site also removes its courses, pages and groups). Deleted content can't be added, but access to it can still be removed."},"content_course_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"IDs of the courses this product grants access to, including ones limited to some of its variants (set in the admin Content tab). Change with the add_content action (existing buyers get access too) and the remove_content action (revokes access from existing buyers unless keep_current_grants is true; removing a site also removes its courses, pages and groups). Deleted content can't be added, but access to it can still be removed."},"content_page_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"IDs of the pages this product grants access to, including ones limited to some of its variants (set in the admin Content tab). Change with the add_content action (existing buyers get access too) and the remove_content action (revokes access from existing buyers unless keep_current_grants is true; removing a site also removes its courses, pages and groups). Deleted content can't be added, but access to it can still be removed."},"content_site_group_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"IDs of the site groups this product grants access to, including ones limited to some of its variants (set in the admin Content tab). Change with the add_content action (existing buyers get access too) and the remove_content action (revokes access from existing buyers unless keep_current_grants is true; removing a site also removes its courses, pages and groups). Deleted content can't be added, but access to it can still be removed."},"content_bot_tier_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"IDs of the bot tiers this product grants access to, including ones limited to some of its variants (set in the admin Content tab). Change with the add_content action (existing buyers get access too) and the remove_content action (revokes access from existing buyers unless keep_current_grants is true; removing a site also removes its courses, pages and groups). Deleted content can't be added, but access to it can still be removed."},"content_coaching_program_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"IDs of the coaching programs this product grants access to, including ones limited to some of its variants (set in the admin Content tab). Change with the add_content action (existing buyers get access too) and the remove_content action (revokes access from existing buyers unless keep_current_grants is true; removing a site also removes its courses, pages and groups). Deleted content can't be added, but access to it can still be removed."},"content_podcast_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"IDs of the podcasts this product grants access to, including ones limited to some of its variants (set in the admin Content tab). Change with the add_content action (existing buyers get access too) and the remove_content action (revokes access from existing buyers unless keep_current_grants is true; removing a site also removes its courses, pages and groups). Deleted content can't be added, but access to it can still be removed."},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"credit_expiration_count":{"type":"integer","readOnly":true},"credit_expiration_unit":{"type":"string"},"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"automation_templates":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"answer_keys":{"type":"array","items":{"type":"string"}},"answer_options":{"type":"object","description":"Choices per answer key, e.g. style: [{ value, title, emails, default }], locale: [{ value, title, default }]"}}},"readOnly":true,"description":"Templates create_automation_from_template accepts for this record, with the answers each one reads."},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"internal_name":{"type":"string"},"subtitle":{"type":"string"},"summary":{"type":"string","description":"HTML content from a WYSIWYG editor"},"short_description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"long_description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"listing_type":{"type":"string"},"sales_page_type":{"type":"string","enum":["catalog","landing_page","external","funnel"]},"product_type":{"type":"string","enum":["normal","credit"]},"tax_strategy_event_type":{"type":"string","enum":["public","private","online","none"]},"show_in_llms_txt":{"type":"boolean"},"thank_you_page_behavior":{"type":"string","enum":["thank_you_page","redirect_url","redirect_content"]},"receipt_notifications":{"type":"string"},"sales_page_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"terms_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"welcome_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"sold_out_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"url":{"type":"string","format":"uri","readOnly":true,"description":"Public sales page: the product page, or the page, funnel or URL `sales_page_type` points to."},"purchase_url":{"type":"string","format":"uri","readOnly":true,"description":"Order form where buyers pay."},"popup_order_form_url":{"type":"string","format":"uri","readOnly":true,"description":"Order form link that opens in a popup when clicked on a Simplero page."},"sidebar_order_form_url":{"type":"string","format":"uri","readOnly":true,"description":"Order form link that opens in a sidebar when clicked on a Simplero page."},"welcome_content_id":{"type":"integer","description":"The site buyers are sent to after purchase: `welcome_content_type` is `Site` and `welcome_content_id` one of the account's sites. Leave both empty to use `welcome_url` or the default thank-you page."},"welcome_content_type":{"type":"string","description":"The site buyers are sent to after purchase: `welcome_content_type` is `Site` and `welcome_content_id` one of the account's sites. Leave both empty to use `welcome_url` or the default thank-you page."},"sales_page_testimonials":{"type":"array","items":{"$ref":"#/components/schemas/Testimonial"},"readOnly":true},"sales_page_testimonial_ids":{"type":"array","items":{"type":"integer"}},"order_form_testimonials":{"type":"array","items":{"$ref":"#/components/schemas/Testimonial"},"readOnly":true},"order_form_testimonial_ids":{"type":"array","items":{"type":"integer"}},"manual_account_number":{"type":"string","description":"Accounting classification included in the purchase CSV/XLS downloads."},"handle":{"type":"string","readOnly":true},"sales_page_show_content_preview":{"type":"boolean"},"sales_start_at":{"type":"string","format":"date-time"},"sales_end_at":{"type":"string","format":"date-time"},"course_starts_at":{"type":"string","format":"date-time"},"position":{"type":"integer"},"thank_you_page_text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"text_for_invoice":{"type":"string","description":"HTML content from a WYSIWYG editor"},"subscription_notification_extra_text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"broadcast_subject_prefix":{"type":"string"},"broadcast_footer":{"type":"string"},"gdpr_consent_message":{"type":"string"},"use_custom_gdpr_consent_message":{"type":"boolean"},"disable_gdpr_consent":{"type":"boolean"},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"send_login_email":{"type":"boolean"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"optin_type":{"type":"string","enum":["default","custom","none"]},"optin_label":{"type":"string"},"optin_sublabel":{"type":"string"},"hide_optin":{"type":"boolean"},"optin_pre_checked":{"type":"boolean"},"show_incl_tax":{"type":"boolean"},"tax_exempt":{"type":"boolean"},"vat_no_required":{"type":"boolean"},"dk_youth_vat_rule":{"type":"boolean"},"taxjar_product_tax_code":{"type":"string"},"order_form_top":{"type":"string","description":"HTML content from a WYSIWYG editor"},"order_form_bottom":{"type":"string","description":"HTML content from a WYSIWYG editor"},"order_form_sidebar":{"type":"string","description":"HTML content from a WYSIWYG editor"},"sold_out_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"ask_for_billing_address":{"type":"boolean"},"ask_for_company_info":{"type":"boolean"},"ask_for_coupon_code":{"type":"boolean"},"billing_address_required":{"type":"boolean"},"order_form_hide_card_logo":{"type":"boolean"},"hide_promo_code_single_product":{"type":"boolean"},"participant_can_be_different_from_billing":{"type":"boolean"},"allow_gift":{"type":"boolean"},"disallow_cart":{"type":"boolean"},"use_separate_page_billing":{"type":"boolean"},"allow_split_payments":{"type":"boolean"},"show_sold_out_prices":{"type":"boolean"},"excluded_payment_method_categories":{"type":"array","items":{"type":"string"},"description":"Stripe payment method categories buyers can't use for this product: cards, wallet, bank_debit, bank_redirect, buy_now_pay_later, real_time, voucher, other"},"excluded_payment_method_types":{"type":"array","items":{"type":"string"},"description":"Stripe payment method types buyers can't use for this product, e.g. klarna or apple_pay"},"payment_processor_ids":{"type":"array","items":{"type":"integer"},"description":"Payment processors (see /api/v2/payment_processors) the order form is limited to. Empty means no limit: all enabled processors can be used."},"entrant_name_singular":{"type":"string"},"entrant_name_plural":{"type":"string"},"max_entrants":{"type":"integer"},"max_entrants_per_purchase":{"type":"integer"},"prevent_downloads":{"type":"boolean"},"prevent_downloads_during_refund_period":{"type":"boolean"},"download_limit_count":{"type":"integer","readOnly":true},"download_limit_days":{"type":"integer"},"self_refunds":{"type":"boolean"},"refund_period_days":{"type":"integer"},"allow_upgrade":{"type":"boolean"},"allow_downgrade":{"type":"boolean"},"allow_cancellation":{"type":"boolean"},"subscription_change_timing":{"type":"string","enum":["immediately","end_of_period","customer_choice"]},"membership_level_group_id":{"type":"integer"},"membership_level_group_position":{"type":"integer"},"pause_enabled":{"type":"boolean"},"paused_participants_keep_access":{"type":"boolean"},"suggest_downgrade_on_cancel":{"type":"boolean"},"choice_menu_id":{"type":"integer","description":"Choice menu members see when they manage or cancel this subscription. Needs the Choice menus plan feature."},"cancel_choice_menu_id":{"type":"integer","readOnly":true,"description":"Legacy: the menu from before 2026-06-20, kept only as a fallback. Read and write choice_menu_id instead."},"single_use":{"type":"boolean"},"create_user_records_automatically":{"type":"boolean"},"show_repurchase_warning":{"type":"boolean"},"show_subscription_level_warning":{"type":"boolean"},"credit_quantity":{"type":"number"},"shippable":{"type":"boolean","description":"A physical product that is shipped to the buyer."},"grams":{"type":"integer","description":"Shipping weight of one unit, in grams."},"default_currency_code":{"type":"string"},"hide_account_default_currency":{"type":"boolean"},"google_analytics_id":{"type":"string"},"custom_tracking_code":{"type":"string"},"checkout_tracking_code":{"type":"string"},"freebie_token":{"type":"string","readOnly":true},"purchases_count":{"type":"integer","readOnly":true},"attachments_count":{"type":"integer","readOnly":true},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"order_form_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"order_form_image_id":{"type":"integer"},"sales_page":{"$ref":"#/components/schemas/LandingPage","readOnly":true},"sales_page_id":{"type":"integer"},"sales_funnel":{"$ref":"#/components/schemas/Funnel","readOnly":true},"sales_funnel_id":{"type":"integer"},"optin_list":{"$ref":"#/components/schemas/List","readOnly":true},"optin_list_id":{"type":"integer"},"sold_out_list":{"$ref":"#/components/schemas/List","readOnly":true},"sold_out_list_id":{"type":"integer"},"credit":{"$ref":"#/components/schemas/Credit","readOnly":true},"credit_id":{"type":"integer"},"product_category_id":{"type":"integer","description":"The product catalog category (see /api/v2/product_categories). Empty for none."},"prices":{"type":"array","items":{"$ref":"#/components/schemas/Price"},"readOnly":true},"price_ids":{"type":"array","items":{"type":"integer"}},"variants":{"type":"array","items":{"$ref":"#/components/schemas/ProductVariant"},"readOnly":true},"variant_ids":{"type":"array","items":{"type":"integer"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"readOnly":true},"attachment_ids":{"type":"array","items":{"type":"integer"}},"order_bumps":{"type":"array","items":{"$ref":"#/components/schemas/OrderBump"},"readOnly":true},"order_bump_ids":{"type":"array","items":{"type":"integer"}},"upsells":{"type":"array","items":{"$ref":"#/components/schemas/Upsell"},"readOnly":true},"upsell_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"offers":{"type":"array","items":{"$ref":"#/components/schemas/Offer"},"readOnly":true},"offer_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"auto_responses":{"type":"array","items":{"$ref":"#/components/schemas/AutoResponse"},"readOnly":true},"auto_response_ids":{"type":"array","items":{"type":"integer"}},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"},"readOnly":true},"trigger_ids":{"type":"array","items":{"type":"integer"}},"split_tests":{"type":"array","items":{"$ref":"#/components/schemas/SplitTest"},"readOnly":true},"split_test_ids":{"type":"array","items":{"type":"integer"}},"landing_pages":{"type":"array","items":{"$ref":"#/components/schemas/LandingPage"},"readOnly":true},"landing_page_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","internal_name"]},"ProductAffiliate":{"type":"object","properties":{"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"affiliate_id":{"type":"integer"},"coupon_override":{"type":"string","enum":["inherit","enabled"]},"commission_type":{"type":"string","enum":["inherit","percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"recurring_charge_behavior":{"type":"string","enum":["forever","duration","inherit"]},"coupon_discount_type":{"type":"string","enum":["percent","cents","price"]},"coupon_discount_percent":{"type":"number"},"coupon_discount_cents":{"type":"integer"},"coupon_discount_on_renewal":{"type":"boolean"},"coupon_discount_on_installments":{"type":"boolean"},"coupon_price_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product","product_id","recurring_charge_behavior","created_at","updated_at"]},"ProductAffiliateOptional":{"type":"object","properties":{"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"coupon_override":{"type":"string","enum":["inherit","enabled"]},"commission_type":{"type":"string","enum":["inherit","percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"recurring_charge_behavior":{"type":"string","enum":["forever","duration","inherit"]},"coupon_discount_type":{"type":"string","enum":["percent","cents","price"]},"coupon_discount_percent":{"type":"number"},"coupon_discount_cents":{"type":"integer"},"coupon_discount_on_renewal":{"type":"boolean"},"coupon_discount_on_installments":{"type":"boolean"},"coupon_price_id":{"type":"integer"}}},"ProductAffiliateProgram":{"type":"object","properties":{"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"affiliate_program_id":{"type":"integer"},"position":{"type":"integer"},"hide_links_on_dashboard":{"type":"boolean"},"affiliate_coupons_enabled":{"type":"boolean"},"product_variant_ids":{"type":"array","items":{"type":"integer"}},"commission_type":{"type":"string","enum":["inherit","percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"recurring_charge_behavior":{"type":"string","enum":["forever","duration","inherit"]},"coupon_discount_type":{"type":"string","enum":["percent","cents","price"]},"coupon_discount_percent":{"type":"number"},"coupon_discount_cents":{"type":"integer"},"coupon_discount_on_renewal":{"type":"boolean"},"coupon_discount_on_installments":{"type":"boolean"},"coupon_price_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product","product_id","recurring_charge_behavior","created_at","updated_at"]},"ProductAffiliateProgramOptional":{"type":"object","properties":{"recurring_charge_duration_count":{"type":"integer"},"recurring_charge_duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"position":{"type":"integer"},"hide_links_on_dashboard":{"type":"boolean"},"affiliate_coupons_enabled":{"type":"boolean"},"product_variant_ids":{"type":"array","items":{"type":"integer"}},"commission_type":{"type":"string","enum":["inherit","percentage","fixed"]},"percentage":{"type":"integer"},"fixed_amount":{"type":"integer"},"recurring_charge_behavior":{"type":"string","enum":["forever","duration","inherit"]},"coupon_discount_type":{"type":"string","enum":["percent","cents","price"]},"coupon_discount_percent":{"type":"number"},"coupon_discount_cents":{"type":"integer"},"coupon_discount_on_renewal":{"type":"boolean"},"coupon_discount_on_installments":{"type":"boolean"},"coupon_price_id":{"type":"integer"}}},"ProductCategory":{"type":"object","properties":{"label":{"type":"string"},"position":{"type":"integer","description":"Sort order within the account, lowest first. Inserts or moves the category and shifts siblings; omit on create to append."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["label"]},"ProductCategoryOptional":{"type":"object","properties":{"label":{"type":"string"},"position":{"type":"integer","description":"Sort order within the account, lowest first. Inserts or moves the category and shifts siblings; omit on create to append."}}},"ProductOptional":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"}},"credit_expiration_unit":{"type":"string"},"form_field_ids":{"type":"array","items":{"type":"integer"}},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"internal_name":{"type":"string"},"subtitle":{"type":"string"},"summary":{"type":"string","description":"HTML content from a WYSIWYG editor"},"short_description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"long_description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"listing_type":{"type":"string"},"sales_page_type":{"type":"string","enum":["catalog","landing_page","external","funnel"]},"product_type":{"type":"string","enum":["normal","credit"]},"tax_strategy_event_type":{"type":"string","enum":["public","private","online","none"]},"show_in_llms_txt":{"type":"boolean"},"thank_you_page_behavior":{"type":"string","enum":["thank_you_page","redirect_url","redirect_content"]},"receipt_notifications":{"type":"string"},"sales_page_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"terms_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"welcome_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"sold_out_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"welcome_content_id":{"type":"integer","description":"The site buyers are sent to after purchase: `welcome_content_type` is `Site` and `welcome_content_id` one of the account's sites. Leave both empty to use `welcome_url` or the default thank-you page."},"welcome_content_type":{"type":"string","description":"The site buyers are sent to after purchase: `welcome_content_type` is `Site` and `welcome_content_id` one of the account's sites. Leave both empty to use `welcome_url` or the default thank-you page."},"sales_page_testimonial_ids":{"type":"array","items":{"type":"integer"}},"order_form_testimonial_ids":{"type":"array","items":{"type":"integer"}},"manual_account_number":{"type":"string","description":"Accounting classification included in the purchase CSV/XLS downloads."},"sales_page_show_content_preview":{"type":"boolean"},"sales_start_at":{"type":"string","format":"date-time"},"sales_end_at":{"type":"string","format":"date-time"},"course_starts_at":{"type":"string","format":"date-time"},"position":{"type":"integer"},"thank_you_page_text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"text_for_invoice":{"type":"string","description":"HTML content from a WYSIWYG editor"},"subscription_notification_extra_text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"broadcast_subject_prefix":{"type":"string"},"broadcast_footer":{"type":"string"},"gdpr_consent_message":{"type":"string"},"use_custom_gdpr_consent_message":{"type":"boolean"},"disable_gdpr_consent":{"type":"boolean"},"sender_name":{"type":"string"},"sender_email":{"type":"string","format":"email"},"reply_to":{"type":"string"},"send_login_email":{"type":"boolean"},"verified_sender_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) this sends from. Blank uses the account sender. Only on accounts with verified senders turned on."},"verified_reply_to_id":{"type":"integer","description":"Id of the verified email (see /verified_emails) replies go to. Blank uses the account Reply-To. Only on accounts with verified senders turned on."},"optin_type":{"type":"string","enum":["default","custom","none"]},"optin_label":{"type":"string"},"optin_sublabel":{"type":"string"},"hide_optin":{"type":"boolean"},"optin_pre_checked":{"type":"boolean"},"show_incl_tax":{"type":"boolean"},"tax_exempt":{"type":"boolean"},"vat_no_required":{"type":"boolean"},"dk_youth_vat_rule":{"type":"boolean"},"taxjar_product_tax_code":{"type":"string"},"order_form_top":{"type":"string","description":"HTML content from a WYSIWYG editor"},"order_form_bottom":{"type":"string","description":"HTML content from a WYSIWYG editor"},"order_form_sidebar":{"type":"string","description":"HTML content from a WYSIWYG editor"},"sold_out_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"ask_for_billing_address":{"type":"boolean"},"ask_for_company_info":{"type":"boolean"},"ask_for_coupon_code":{"type":"boolean"},"billing_address_required":{"type":"boolean"},"order_form_hide_card_logo":{"type":"boolean"},"hide_promo_code_single_product":{"type":"boolean"},"participant_can_be_different_from_billing":{"type":"boolean"},"allow_gift":{"type":"boolean"},"disallow_cart":{"type":"boolean"},"use_separate_page_billing":{"type":"boolean"},"allow_split_payments":{"type":"boolean"},"show_sold_out_prices":{"type":"boolean"},"excluded_payment_method_categories":{"type":"array","items":{"type":"string"},"description":"Stripe payment method categories buyers can't use for this product: cards, wallet, bank_debit, bank_redirect, buy_now_pay_later, real_time, voucher, other"},"excluded_payment_method_types":{"type":"array","items":{"type":"string"},"description":"Stripe payment method types buyers can't use for this product, e.g. klarna or apple_pay"},"payment_processor_ids":{"type":"array","items":{"type":"integer"},"description":"Payment processors (see /api/v2/payment_processors) the order form is limited to. Empty means no limit: all enabled processors can be used."},"entrant_name_singular":{"type":"string"},"entrant_name_plural":{"type":"string"},"max_entrants":{"type":"integer"},"max_entrants_per_purchase":{"type":"integer"},"prevent_downloads":{"type":"boolean"},"prevent_downloads_during_refund_period":{"type":"boolean"},"download_limit_days":{"type":"integer"},"self_refunds":{"type":"boolean"},"refund_period_days":{"type":"integer"},"allow_upgrade":{"type":"boolean"},"allow_downgrade":{"type":"boolean"},"allow_cancellation":{"type":"boolean"},"subscription_change_timing":{"type":"string","enum":["immediately","end_of_period","customer_choice"]},"membership_level_group_id":{"type":"integer"},"membership_level_group_position":{"type":"integer"},"pause_enabled":{"type":"boolean"},"paused_participants_keep_access":{"type":"boolean"},"suggest_downgrade_on_cancel":{"type":"boolean"},"choice_menu_id":{"type":"integer","description":"Choice menu members see when they manage or cancel this subscription. Needs the Choice menus plan feature."},"single_use":{"type":"boolean"},"create_user_records_automatically":{"type":"boolean"},"show_repurchase_warning":{"type":"boolean"},"show_subscription_level_warning":{"type":"boolean"},"credit_quantity":{"type":"number"},"shippable":{"type":"boolean","description":"A physical product that is shipped to the buyer."},"grams":{"type":"integer","description":"Shipping weight of one unit, in grams."},"default_currency_code":{"type":"string"},"hide_account_default_currency":{"type":"boolean"},"google_analytics_id":{"type":"string"},"custom_tracking_code":{"type":"string"},"checkout_tracking_code":{"type":"string"},"card_image_id":{"type":"integer"},"order_form_image_id":{"type":"integer"},"sales_page_id":{"type":"integer"},"sales_funnel_id":{"type":"integer"},"optin_list_id":{"type":"integer"},"sold_out_list_id":{"type":"integer"},"credit_id":{"type":"integer"},"product_category_id":{"type":"integer","description":"The product catalog category (see /api/v2/product_categories). Empty for none."},"price_ids":{"type":"array","items":{"type":"integer"}},"variant_ids":{"type":"array","items":{"type":"integer"}},"attachment_ids":{"type":"array","items":{"type":"integer"}},"order_bump_ids":{"type":"array","items":{"type":"integer"}},"auto_response_ids":{"type":"array","items":{"type":"integer"}},"trigger_ids":{"type":"array","items":{"type":"integer"}},"split_test_ids":{"type":"array","items":{"type":"integer"}},"landing_page_ids":{"type":"array","items":{"type":"integer"}}}},"ProductTaxOverride":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"country_code":{"type":"string"},"tax_percent":{"type":"number","description":"Used instead of the account tax rate for this product and country"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product","product_id","country_code","tax_percent","created_at","updated_at"]},"ProductTaxOverrideOptional":{"type":"object","properties":{"tax_percent":{"type":"number","description":"Used instead of the account tax rate for this product and country"}}},"ProductVariant":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"name":{"type":"string"},"position":{"type":"integer"},"max_entrants":{"type":"integer","description":"The most participants this variant can sell, across all its prices. Blank for no limit."},"sku":{"type":"string","description":"Stock keeping unit for a physical product. Unique within the account. Blank for none."},"stock":{"type":"integer","description":"Units in stock for a physical product. Blank when stock is not tracked."},"prices":{"type":"array","items":{"$ref":"#/components/schemas/Price"},"readOnly":true},"price_ids":{"type":"array","items":{"type":"integer"}},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"},"readOnly":true},"trigger_ids":{"type":"array","items":{"type":"integer"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"readOnly":true},"attachment_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product_id","name","created_at","updated_at"]},"ProductVariantOptional":{"type":"object","properties":{"name":{"type":"string"},"position":{"type":"integer"},"max_entrants":{"type":"integer","description":"The most participants this variant can sell, across all its prices. Blank for no limit."},"sku":{"type":"string","description":"Stock keeping unit for a physical product. Unique within the account. Blank for none."},"stock":{"type":"integer","description":"Units in stock for a physical product. Blank when stock is not tracked."},"price_ids":{"type":"array","items":{"type":"integer"}},"trigger_ids":{"type":"array","items":{"type":"integer"}},"attachment_ids":{"type":"array","items":{"type":"integer"}}}},"Purchase":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer","readOnly":true},"state":{"type":"string","readOnly":true},"price":{"$ref":"#/components/schemas/Price","readOnly":true},"price_id":{"type":"integer","readOnly":true},"email":{"type":"string","format":"email"},"first_names":{"type":"string"},"last_name":{"type":"string"},"country_code":{"type":"string"},"ip_address":{"type":"string"},"company_name":{"type":"string"},"vat_no":{"type":"string"},"address":{"type":"string"},"address_2":{"type":"string"},"postal_code":{"type":"string"},"city":{"type":"string"},"region_code":{"type":"string"},"vat_no_validated_at":{"type":"string","format":"date-time","nullable":true,"readOnly":true},"vat_no_validation_result":{"type":"boolean","nullable":true,"readOnly":true,"description":"True if the VAT number passed automatic validation; nil if not yet checked."},"purchased_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"received_price_cents":{"type":"integer","readOnly":true},"received_tax_cents":{"type":"integer","readOnly":true},"received_total_cents":{"type":"integer","readOnly":true},"currency_code":{"type":"string","readOnly":true},"received_shipping_cents":{"type":"integer","readOnly":true},"incoming_shipping_cents":{"type":"integer","readOnly":true},"active":{"type":"boolean","readOnly":true},"freebie":{"type":"boolean","readOnly":true},"upsold":{"type":"boolean","readOnly":true},"discount_type":{"type":"string","enum":["none","percent","cents"],"readOnly":true},"express_checkout":{"type":"boolean","readOnly":true},"refunded_at":{"type":"string","format":"date-time","readOnly":true},"canceled_at":{"type":"string","format":"date-time","readOnly":true},"utm_source":{"type":"string"},"utm_medium":{"type":"string"},"utm_campaign":{"type":"string"},"utm_adgroup":{"type":"string"},"utm_content":{"type":"string"},"utm_keyword":{"type":"string"},"utm_term":{"type":"string"},"track":{"type":"string"},"affiliate":{"$ref":"#/components/schemas/Affiliate","readOnly":true},"affiliate_id":{"type":"integer","readOnly":true},"coupon":{"$ref":"#/components/schemas/Coupon","readOnly":true},"coupon_id":{"type":"integer","readOnly":true},"parent_purchase":{"$ref":"#/components/schemas/Purchase","readOnly":true},"parent_purchase_id":{"type":"integer","readOnly":true},"quantity":{"type":"integer","readOnly":true},"auto_renew":{"type":"boolean","readOnly":true},"period_ends_at":{"type":"string","format":"date-time","readOnly":true},"committed_until":{"type":"string","format":"date-time","readOnly":true},"renewed_at":{"type":"string","format":"date-time","readOnly":true},"next_attempt_at":{"type":"string","format":"date-time","readOnly":true},"failure_count":{"type":"integer","readOnly":true},"tax_percent":{"type":"number","readOnly":true},"coupon_code":{"type":"string","readOnly":true},"discount_percent":{"type":"number","readOnly":true},"discount_cents":{"type":"integer","readOnly":true},"discount_on_renewal":{"type":"boolean","readOnly":true},"discount_on_installments":{"type":"boolean","readOnly":true},"discount_expires_at":{"type":"string","format":"date-time","readOnly":true},"donation_cents":{"type":"integer","readOnly":true},"monthly_mrr_cents":{"type":"integer","readOnly":true},"paused_at":{"type":"string","format":"date-time","readOnly":true},"resume_at":{"type":"string","format":"date-time","readOnly":true},"scheduled_pause_at":{"type":"string","format":"date-time","readOnly":true},"pause_reason":{"type":"string","readOnly":true},"cancellation_reason":{"type":"string","readOnly":true},"affiliate_percentage":{"type":"integer","readOnly":true},"affiliate_fixed_amount":{"type":"integer","readOnly":true},"affiliate_link_id":{"type":"integer","readOnly":true,"description":"The affiliate link the sale came through. Recorded for purchases made since November 2026; empty for older ones."},"wants_marketing":{"type":"boolean"},"wants_notifications":{"type":"boolean"},"phone_country_code":{"type":"string"},"phone_number":{"type":"string"},"price_period_id":{"type":"integer","readOnly":true},"offer_id":{"type":"integer","readOnly":true},"upsell_id":{"type":"integer","readOnly":true},"event_occurrence_id":{"type":"integer","readOnly":true},"name":{"type":"string","readOnly":true,"description":"First and last name as one string. Write `first_names` / `last_name` instead."},"country_name":{"type":"string","readOnly":true,"description":"The name `country_code` resolves to, translated into the account's own language. Use `country_code` for a language-independent value. Write `country_code` instead."},"region_name":{"type":"string","readOnly":true,"description":"The name `region_code` resolves to within `country_code`. Write `region_code` instead."},"paused_for_count":{"type":"integer","readOnly":true},"paused_for_unit":{"type":"string","readOnly":true},"decline_summary":{"type":"string","readOnly":true,"description":"Why the latest payment attempt failed, in plain words. Null when the latest attempt did not fail, or when nothing is owed anymore."},"decline_message":{"type":"string","readOnly":true,"description":"The payment provider's full message for that failed attempt. Null when the latest attempt did not fail, or when nothing is owed anymore."},"token":{"type":"string","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product","currency_code","token"]},"PurchaseOptional":{"type":"object","properties":{"email":{"type":"string","format":"email"},"first_names":{"type":"string"},"last_name":{"type":"string"},"country_code":{"type":"string"},"ip_address":{"type":"string"},"company_name":{"type":"string"},"vat_no":{"type":"string"},"address":{"type":"string"},"address_2":{"type":"string"},"postal_code":{"type":"string"},"city":{"type":"string"},"region_code":{"type":"string"},"utm_source":{"type":"string"},"utm_medium":{"type":"string"},"utm_campaign":{"type":"string"},"utm_adgroup":{"type":"string"},"utm_content":{"type":"string"},"utm_keyword":{"type":"string"},"utm_term":{"type":"string"},"track":{"type":"string"},"wants_marketing":{"type":"boolean"},"wants_notifications":{"type":"boolean"},"phone_country_code":{"type":"string"},"phone_number":{"type":"string"}}},"QuizAnswer":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"correct":{"type":"boolean"},"image":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"An optional image shown with the answer. The answer text can be empty when it has an image."},"image_id":{"type":"integer","description":"An optional image shown with the answer. The answer text can be empty when it has an image."},"position":{"type":"integer","description":"Sort order among the answer's siblings within its `question`, lowest first. On create, setting this inserts the answer at that position and shifts later answers down; omit it to append at the end (the default). On update, setting it moves the answer and reorders the affected siblings accordingly."},"question":{"$ref":"#/components/schemas/QuizQuestion","readOnly":true},"question_id":{"type":"integer"}},"required":["created_at","updated_at","text","position","question_id"]},"QuizAnswerOptional":{"type":"object","properties":{"text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"correct":{"type":"boolean"},"image_id":{"type":"integer","description":"An optional image shown with the answer. The answer text can be empty when it has an image."},"position":{"type":"integer","description":"Sort order among the answer's siblings within its `question`, lowest first. On create, setting this inserts the answer at that position and shifts later answers down; omit it to append at the end (the default). On update, setting it moves the answer and reorders the affected siblings accordingly."}}},"QuizQuestion":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"explanation":{"type":"string","description":"HTML content from a WYSIWYG editor"},"position":{"type":"integer","description":"Sort order among the question's siblings within its `lesson`, lowest first. On create, setting this inserts the question at that position and shifts later questions down; omit it to append at the end (the default). On update, setting it moves the question and reorders the affected siblings accordingly."},"lesson":{"$ref":"#/components/schemas/CourseLesson","readOnly":true},"lesson_id":{"type":"integer"},"answers":{"type":"array","items":{"$ref":"#/components/schemas/QuizAnswer"},"readOnly":true},"answer_ids":{"type":"array","items":{"type":"integer"}}},"required":["created_at","updated_at","text","position","lesson_id"]},"QuizQuestionOptional":{"type":"object","properties":{"text":{"type":"string","description":"HTML content from a WYSIWYG editor"},"explanation":{"type":"string","description":"HTML content from a WYSIWYG editor"},"position":{"type":"integer","description":"Sort order among the question's siblings within its `lesson`, lowest first. On create, setting this inserts the question at that position and shifts later questions down; omit it to append at the end (the default). On update, setting it moves the question and reorders the affected siblings accordingly."},"answer_ids":{"type":"array","items":{"type":"integer"}}}},"QuizResponse":{"type":"object","properties":{"lesson_id":{"type":"integer","readOnly":true},"member_id":{"type":"integer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"percentage_score":{"type":"number","readOnly":true},"passed":{"type":"boolean","readOnly":true},"attempt":{"type":"integer","readOnly":true,"description":"Attempt number among retained responses for this member and lesson, ordered by creation ID."},"started_at":{"type":"string","format":"date-time","readOnly":true},"completed_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["lesson_id","member_id","created_at","updated_at"]},"RelativeDateFilter":{"type":"object","properties":{"date_comparison":{"type":"string","enum":["","blank","not_blank","before","after","relative_after","relative_before"]},"date":{"type":"string","format":"date","description":"Only when date_comparison is after/before"},"period":{"type":"number","description":"Only when date_comparison is relative_before/relative_after"},"units":{"type":"string","enum":["days","weeks","months","years"],"description":"Only when date_comparison is relative_before/relative_after"}}},"Route":{"type":"object"},"SchedulingLink":{"type":"object","properties":{"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"automation_templates":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"answer_keys":{"type":"array","items":{"type":"string"}},"answer_options":{"type":"object","description":"Choices per answer key, e.g. style: [{ value, title, emails, default }], locale: [{ value, title, default }]"}}},"readOnly":true,"description":"Templates create_automation_from_template accepts for this record, with the answers each one reads."},"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"owner":{"$ref":"#/components/schemas/Administratorship","readOnly":true},"owner_id":{"type":"integer"},"name":{"type":"string"},"internal_name":{"type":"string"},"slug":{"type":"string"},"active":{"type":"boolean"},"url":{"type":"string","format":"uri","readOnly":true,"description":"Public booking page where people pick a time."},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"link_type":{"type":"string","enum":["individual","master"],"description":"Individual links have a single owner; master links pool availability from multiple child links."},"master_type":{"type":"string","enum":["round_robin","collective"],"description":"Only meaningful for master links. Round-robin auto-assigns bookings to an available child link; collective adds all children as attendees on slots where everyone is free."},"availability":{"$ref":"#/components/schemas/Availability"},"availability_id":{"type":"integer"},"calendar":{"$ref":"#/components/schemas/Calendar","readOnly":true},"calendar_id":{"type":"integer"},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"product_variant":{"$ref":"#/components/schemas/ProductVariant","readOnly":true},"product_variant_id":{"type":"integer"},"zoom_integration":{"$ref":"#/components/schemas/Integrations::Zoom","readOnly":true},"zoom_integration_id":{"type":"integer"},"asset":{"$ref":"#/components/schemas/Asset","readOnly":true},"asset_id":{"type":"integer"},"children":{"type":"array","items":{"$ref":"#/components/schemas/SchedulingLink"},"readOnly":true,"description":"On master links, the individual links that bookings are pooled from. Change them with the attach_children, remove_child and reorder_children actions (reorder_children takes every child id, in the new order)."},"child_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"On master links, the individual links that bookings are pooled from. Change them with the attach_children, remove_child and reorder_children actions (reorder_children takes every child id, in the new order)."},"primary_child_link":{"$ref":"#/components/schemas/SchedulingLink","readOnly":true,"description":"On collective master links, this is the child link whose owner is the organizer of booked events. Must be one of the children. On round-robin and individual links, this is auto-managed."},"primary_child_link_id":{"type":"integer","description":"On collective master links, this is the child link whose owner is the organizer of booked events. Must be one of the children. On round-robin and individual links, this is auto-managed."},"location_type":{"type":"string","enum":["none","zoom","url","google_meet","in_person","simplero_live"]},"location_value":{"type":"string"},"default_view":{"type":"string","enum":["weekly","monthly"]},"scheduling_interval":{"type":"integer","description":"Minutes between bookable slots. One of 15, 30, 60."},"duration":{"type":"integer","description":"Default length of each booking in minutes."},"additional_durations":{"type":"array","items":{"type":"integer"},"description":"Other booking lengths in minutes the person booking can pick instead of the default duration. The price is the same whichever length they pick."},"buffer_before_event_minutes":{"type":"integer"},"buffer_after_event_minutes":{"type":"integer"},"min_notice_minutes":{"type":"integer"},"limit_future_booking_days":{"type":"integer"},"max_per_day":{"type":"integer"},"max_per_week":{"type":"integer"},"max_per_month":{"type":"integer"},"max_upcoming_by_customer":{"type":"integer"},"max_total_by_customer":{"type":"integer"},"all_time_limit_message":{"type":"string"},"all_time_limit_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"form_title":{"type":"string"},"event_title_template":{"type":"string"},"booking_success_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"event_description_template":{"type":"string","description":"HTML content from a WYSIWYG editor"},"append_custom_fields_on_event_description":{"type":"boolean"},"guests_enabled":{"type":"boolean","description":"When true, the person booking can invite extra guests (name + email) who are added to the calendar invite."},"max_guests":{"type":"integer","description":"Maximum number of guests the person booking may invite. Blank means unlimited."},"rescheduling_policy":{"type":"string","description":"One of \"allow\", \"disallow\", or (for master links) \"allow_master\"."},"rescheduling_notes":{"type":"string","description":"HTML content from a WYSIWYG editor"},"change_period_minutes":{"type":"integer"},"change_reason_mandatory":{"type":"boolean"},"instructions_title":{"type":"string"},"instructions_description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"instructions_asset":{"$ref":"#/components/schemas/Asset","readOnly":true,"description":"Optional image, video, or file shown on the after-booking confirmation screen alongside instructions_title and instructions_description."},"instructions_asset_id":{"type":"integer","description":"Optional image, video, or file shown on the after-booking confirmation screen alongside instructions_title and instructions_description."},"meta_conversion_event":{"type":"string","description":"Facebook/Meta Pixel event name fired on successful booking. Common values: Schedule, Lead, SubmitApplication, CompleteRegistration, Contact."},"livestream_config":{"$ref":"#/components/schemas/LivestreamConfig","description":"Simplero Live settings. Only used when location_type is simplero_live. Null until the settings are first saved; the defaults apply until then."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["owner","owner_id","name","internal_name","slug","availability","created_at","updated_at"]},"SchedulingLinkAvailabilityOverride":{"type":"object","properties":{"scheduling_link":{"$ref":"#/components/schemas/SchedulingLink","readOnly":true},"scheduling_link_id":{"type":"integer"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"override_type":{"type":"string"},"full_day":{"type":"boolean","description":"Expand the range to whole days in the scheduling link availability time zone."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["scheduling_link_id","from","to","override_type","created_at","updated_at"]},"SchedulingLinkAvailabilityOverrideOptional":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"override_type":{"type":"string"},"full_day":{"type":"boolean","description":"Expand the range to whole days in the scheduling link availability time zone."}}},"SchedulingLinkOptional":{"type":"object","properties":{"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"form_field_ids":{"type":"array","items":{"type":"integer"}},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"name":{"type":"string"},"internal_name":{"type":"string"},"slug":{"type":"string"},"active":{"type":"boolean"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"availability":{"$ref":"#/components/schemas/Availability"},"availability_id":{"type":"integer"},"calendar_id":{"type":"integer"},"product_id":{"type":"integer"},"product_variant_id":{"type":"integer"},"zoom_integration_id":{"type":"integer"},"asset_id":{"type":"integer"},"primary_child_link_id":{"type":"integer","description":"On collective master links, this is the child link whose owner is the organizer of booked events. Must be one of the children. On round-robin and individual links, this is auto-managed."},"location_type":{"type":"string","enum":["none","zoom","url","google_meet","in_person","simplero_live"]},"location_value":{"type":"string"},"default_view":{"type":"string","enum":["weekly","monthly"]},"scheduling_interval":{"type":"integer","description":"Minutes between bookable slots. One of 15, 30, 60."},"duration":{"type":"integer","description":"Default length of each booking in minutes."},"additional_durations":{"type":"array","items":{"type":"integer"},"description":"Other booking lengths in minutes the person booking can pick instead of the default duration. The price is the same whichever length they pick."},"buffer_before_event_minutes":{"type":"integer"},"buffer_after_event_minutes":{"type":"integer"},"min_notice_minutes":{"type":"integer"},"limit_future_booking_days":{"type":"integer"},"max_per_day":{"type":"integer"},"max_per_week":{"type":"integer"},"max_per_month":{"type":"integer"},"max_upcoming_by_customer":{"type":"integer"},"max_total_by_customer":{"type":"integer"},"all_time_limit_message":{"type":"string"},"all_time_limit_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"form_title":{"type":"string"},"event_title_template":{"type":"string"},"booking_success_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"event_description_template":{"type":"string","description":"HTML content from a WYSIWYG editor"},"append_custom_fields_on_event_description":{"type":"boolean"},"guests_enabled":{"type":"boolean","description":"When true, the person booking can invite extra guests (name + email) who are added to the calendar invite."},"max_guests":{"type":"integer","description":"Maximum number of guests the person booking may invite. Blank means unlimited."},"rescheduling_policy":{"type":"string","description":"One of \"allow\", \"disallow\", or (for master links) \"allow_master\"."},"rescheduling_notes":{"type":"string","description":"HTML content from a WYSIWYG editor"},"change_period_minutes":{"type":"integer"},"change_reason_mandatory":{"type":"boolean"},"instructions_title":{"type":"string"},"instructions_description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"instructions_asset_id":{"type":"integer","description":"Optional image, video, or file shown on the after-booking confirmation screen alongside instructions_title and instructions_description."},"meta_conversion_event":{"type":"string","description":"Facebook/Meta Pixel event name fired on successful booking. Common values: Schedule, Lead, SubmitApplication, CompleteRegistration, Contact."},"livestream_config":{"$ref":"#/components/schemas/LivestreamConfig","description":"Simplero Live settings. Only used when location_type is simplero_live. Null until the settings are first saved; the defaults apply until then."}}},"Segment":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"name":{"type":"string"},"members_count":{"type":"integer","readOnly":true},"calculated_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}}},"SegmentOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"name":{"type":"string"}}},"ServiceUsageLimit":{"type":"object","properties":{"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"amount":{"type":"number","description":"Credits one person may spend per period. Null means unlimited."}},"required":["duration_count","duration_unit"]},"ShippingRate":{"type":"object","properties":{"shipping_region":{"$ref":"#/components/schemas/ShippingRegion","readOnly":true},"shipping_region_id":{"type":"integer"},"name":{"type":"string","description":"Shown to the buyer, e.g. \"Standard shipping\"."},"cents":{"type":"integer","description":"Shipping price in the account currency, in cents, before tax."},"min_grams":{"type":"integer","description":"Lightest total cart weight in grams this rate applies to. Blank for no minimum."},"max_grams":{"type":"integer","description":"Heaviest total cart weight in grams this rate applies to. Blank for no maximum."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["shipping_region_id","name","cents"]},"ShippingRateOptional":{"type":"object","properties":{"name":{"type":"string","description":"Shown to the buyer, e.g. \"Standard shipping\"."},"cents":{"type":"integer","description":"Shipping price in the account currency, in cents, before tax."},"min_grams":{"type":"integer","description":"Lightest total cart weight in grams this rate applies to. Blank for no minimum."},"max_grams":{"type":"integer","description":"Heaviest total cart weight in grams this rate applies to. Blank for no maximum."}}},"ShippingRegion":{"type":"object","properties":{"name":{"type":"string","description":"Internal name, e.g. \"Europe\"."},"country_code":{"type":"string","description":"Two-letter country code, or a group: EU* (EU countries), NA* (US, Canada, Mexico), * (everywhere else)"},"region_code":{"type":"string","description":"Subregion code (e.g. a US state) to ship there at its own rates. Blank for the whole country."},"shipping_rates":{"type":"array","items":{"$ref":"#/components/schemas/ShippingRate"},"readOnly":true},"shipping_rate_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["country_code"]},"ShippingRegionOptional":{"type":"object","properties":{"name":{"type":"string","description":"Internal name, e.g. \"Europe\"."},"country_code":{"type":"string","description":"Two-letter country code, or a group: EU* (EU countries), NA* (US, Canada, Mexico), * (everywhere else)"},"region_code":{"type":"string","description":"Subregion code (e.g. a US state) to ship there at its own rates. Blank for the whole country."},"shipping_rate_ids":{"type":"array","items":{"type":"integer"}}}},"ShortLink":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"path":{"type":"string"},"redirect_to":{"type":"string"},"visits_count":{"type":"integer","readOnly":true},"last_visited_at":{"type":"string","format":"date-time","readOnly":true},"url":{"type":"string","format":"uri","readOnly":true,"description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["redirect_to","created_at","updated_at"]},"ShortLinkOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"path":{"type":"string"},"redirect_to":{"type":"string"}}},"Site":{"type":"object","properties":{"blog_index_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the blog_index BuilderDoc owned by this Site."},"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"title":{"type":"string"},"internal_name":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"llms_txt_context":{"type":"string"},"canonical_subdomain":{"type":"string"},"canonical_domain":{"type":"string"},"locale":{"type":"string"},"access":{"type":"string"},"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","readOnly":true,"description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"blog_enabled":{"type":"boolean"},"blog_title":{"type":"string"},"force_new_experience":{"type":"boolean"},"exclude_courses_from_new_content":{"type":"boolean"},"hide_member_count":{"type":"boolean"},"members_can_publish_playlists":{"type":"boolean","description":"When false, only staff and admins who can edit site settings can make their own playlists public. Playlists that are already public stay public."},"bluesky_handle":{"type":"string"},"threads_username":{"type":"string"},"substack_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"default_ai_model":{"type":"string","description":"Model id for the site's member AI. 'auto' lets Simplero pick the model for each message; blank means Recommended."},"lock_ai_model":{"type":"boolean"},"ai_web_search":{"type":"boolean"},"ai_browser_tools":{"type":"boolean"},"ai_follow_up_suggestions":{"type":"boolean"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"logo":{"$ref":"#/components/schemas/Asset","readOnly":true},"logo_id":{"type":"integer"},"dark_mode_logo":{"$ref":"#/components/schemas/Asset","readOnly":true},"dark_mode_logo_id":{"type":"integer"},"favicon":{"$ref":"#/components/schemas/Asset","readOnly":true},"favicon_id":{"type":"integer"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"join_copy":{"type":"string","description":"HTML content from a WYSIWYG editor"},"not_logged_in_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"instagram_username":{"type":"string"},"youtube_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"x_username":{"type":"string"},"facebook_profile_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"pinterest_username":{"type":"string"},"snapchat_username":{"type":"string"},"vimeo_username":{"type":"string"},"linkedin_username":{"type":"string"},"tiktok_username":{"type":"string"},"meta_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"meta_image_id":{"type":"integer"},"meta_data_public":{"type":"boolean"},"hide_from_ai_bots":{"type":"boolean"},"allow_ai_training":{"type":"boolean"},"noindex_product_catalog":{"type":"boolean","description":"Main site only: noindex the product catalog and its category pages and leave them out of the sitemap."},"disable_reactions":{"type":"boolean"},"member_directory_enabled":{"type":"boolean"},"chat_allow_conversation_members":{"type":"boolean"},"collapse_comments":{"type":"boolean"},"display_badges":{"type":"boolean"},"comment_without_login":{"type":"boolean"},"moderator_email":{"type":"string","format":"email"},"comment_spam_words":{"type":"string","description":"One spam word or phrase per line; does not apply to staff or admin comments."},"default_notifications":{"type":"string","description":"Default notification preference for new members; does not change existing members."},"prevent_downloads":{"type":"boolean"},"default_profile_private":{"type":"boolean"},"reply_by_email":{"type":"boolean"},"allow_voice_recordings":{"type":"boolean"},"subject_prefix":{"type":"string"},"show_smart_app_banner":{"type":"boolean"},"logout_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"hide_engagement_scores_from_members":{"type":"boolean"},"custom_tracking_code":{"type":"string"},"custom_tracking_code_for_body":{"type":"string"},"not_found_page_id":{"type":"integer"},"splash_landing_page_id":{"type":"integer"},"engagement_credit_id":{"type":"integer"},"style_guide_id":{"type":"integer"},"nps_survey_id":{"type":"integer"},"blog_meta_title":{"type":"string"},"blog_meta_description":{"type":"string"},"blog_meta_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"blog_meta_image_id":{"type":"integer"},"blog_comments_type":{"type":"string","enum":["rich","rich_without_attachments","plain"]},"features":{"type":"object","properties":{"pages":{"type":"boolean"},"blog":{"type":"boolean"},"courses":{"type":"boolean"},"forum":{"type":"boolean"},"groups":{"type":"boolean"},"members":{"type":"boolean"},"leaderboards":{"type":"boolean"},"events":{"type":"boolean"},"bots":{"type":"boolean"},"product_catalog":{"type":"boolean"}},"readOnly":true,"description":"Which features of the site's Features page are on. Change them with the set_feature action, which also shows or hides the matching main menu link."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","internal_name","meta_title","created_at","updated_at"]},"SiteComment":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"body":{"type":"string","description":"The comment text, rendered as HTML."},"commentable_type":{"type":"string","description":"What the comment is on: `CourseLesson`, `ForumPost`, `BlogPost`, or `Idea`."},"commentable_id":{"type":"integer"},"parent_id":{"type":"integer","description":"The comment this is a reply to, or null for a top-level comment."},"depth":{"type":"integer","description":"Nesting depth in the thread (0 for top-level)."},"approved":{"type":"boolean","description":"Whether the comment is approved. Set to false to reject it; the API only lists approved comments."},"reactions_count":{"type":"integer","readOnly":true},"commenter_id":{"type":"integer"},"commenter_name":{"type":"string","description":"The display name of the member who left the comment."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"SiteCommentOptional":{"type":"object","properties":{"body":{"type":"string","description":"The comment text, rendered as HTML."},"approved":{"type":"boolean","description":"Whether the comment is approved. Set to false to reject it; the API only lists approved comments."}}},"SiteGroup":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer"},"name":{"type":"string"},"locale":{"type":"string"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"members_count":{"type":"integer","readOnly":true},"internal_name":{"type":"string","description":"Name shown only in the admin"},"slug":{"type":"string","description":"The URL part after /groups/. Generated from the name when left blank."},"live":{"type":"boolean","description":"When on, members can use the group's forum and member directory"},"access":{"type":"string","enum":["secret","private","open"],"description":"secret = admin-controlled, only people granted access; private = members request to join, see /api/v2/site_group_requests; open = every site member"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"courses":{"type":"array","items":{"$ref":"#/components/schemas/Course"},"readOnly":true,"description":"Courses on the group's own site, in order; courses from other sites are ignored"},"course_ids":{"type":"array","items":{"type":"integer"},"description":"Courses on the group's own site, in order; courses from other sites are ignored"},"events":{"type":"array","items":{"$ref":"#/components/schemas/Event"},"readOnly":true},"event_ids":{"type":"array","items":{"type":"integer"}},"member_directory_enabled":{"type":"boolean"},"allow_mentions":{"type":"boolean"},"disable_reactions":{"type":"boolean"},"reply_by_email":{"type":"boolean"},"notifications_content":{"type":"string","enum":["full","title"]},"subject_prefix":{"type":"string"},"notification_email":{"type":"string","format":"email"},"forum":{"$ref":"#/components/schemas/Forum","readOnly":true,"description":"The group's forum, created with the group; use its id with forum_categories and forum_posts"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["site_id","name","internal_name","slug","created_at","updated_at"]},"SiteGroupOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"locale":{"type":"string"},"card_image_id":{"type":"integer"},"internal_name":{"type":"string","description":"Name shown only in the admin"},"live":{"type":"boolean","description":"When on, members can use the group's forum and member directory"},"access":{"type":"string","enum":["secret","private","open"],"description":"secret = admin-controlled, only people granted access; private = members request to join, see /api/v2/site_group_requests; open = every site member"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"course_ids":{"type":"array","items":{"type":"integer"},"description":"Courses on the group's own site, in order; courses from other sites are ignored"},"event_ids":{"type":"array","items":{"type":"integer"}},"member_directory_enabled":{"type":"boolean"},"allow_mentions":{"type":"boolean"},"disable_reactions":{"type":"boolean"},"reply_by_email":{"type":"boolean"},"notifications_content":{"type":"string","enum":["full","title"]},"subject_prefix":{"type":"string"},"notification_email":{"type":"string","format":"email"}}},"SiteGroupRequest":{"type":"object","properties":{"group":{"$ref":"#/components/schemas/SiteGroup","readOnly":true},"site_group_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"site_member":{"$ref":"#/components/schemas/SiteMember","readOnly":true},"site_member_id":{"type":"integer"},"site":{"$ref":"#/components/schemas/Site","readOnly":true},"status":{"type":"string","enum":["pending","approved","declined"]},"reason":{"type":"string"},"approved_at":{"type":"string","format":"date-time","readOnly":true},"declined_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["site_group_id","site_member_id","created_at"]},"SiteMember":{"type":"object","properties":{"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer"},"customer_id":{"type":"integer","readOnly":true},"user_id":{"type":"integer","readOnly":true},"staff":{"type":"boolean","description":"Staff can moderate the community: approve posts and comments. Active staff always have access to the site, even without a grant."},"name":{"type":"string","readOnly":true,"description":"Display name on this site. Equals the Simplero ID name while use_global_profile is true."},"use_global_profile":{"type":"boolean","readOnly":true},"profile_private":{"type":"boolean","readOnly":true},"location_private":{"type":"boolean","readOnly":true},"discoverable_in_chat_to":{"type":"string","enum":["anyone","admin_only","no_one"],"readOnly":true},"num_logins":{"type":"integer","readOnly":true},"active":{"type":"boolean","readOnly":true,"description":"The member row's own flag. The `active` filter instead means \"has access\" (With access / Without access in the admin)."},"email":{"type":"string","readOnly":true,"description":"From the member's Simplero ID."},"notification_delivery":{"type":"string","enum":["immediate","daily","twice_weekly","weekly"],"nullable":true,"description":"How often this site's notification emails reach the member: blank or immediate, or a daily, twice_weekly or weekly digest. The member chooses it; API keys can set it too."},"last_login_at":{"type":"string","format":"date-time","readOnly":true},"second_to_last_login_at":{"type":"string","format":"date-time","readOnly":true},"last_activity_at":{"type":"string","format":"date-time","readOnly":true},"silenced_at":{"type":"string","format":"date-time","readOnly":true},"moderated_at":{"type":"string","format":"date-time","readOnly":true},"notifications_muted_at":{"type":"string","format":"date-time","readOnly":true},"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["site_id","customer_id","user_id","created_at","updated_at"]},"SiteMemberOptional":{"type":"object","properties":{"staff":{"type":"boolean","description":"Staff can moderate the community: approve posts and comments. Active staff always have access to the site, even without a grant."},"notification_delivery":{"type":"string","enum":["immediate","daily","twice_weekly","weekly"],"nullable":true,"description":"How often this site's notification emails reach the member: blank or immediate, or a daily, twice_weekly or weekly digest. The member chooses it; API keys can set it too."},"field_value_ids":{"type":"array","items":{"type":"integer"}}}},"SiteOptional":{"type":"object","properties":{"form_field_ids":{"type":"array","items":{"type":"integer"}},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"title":{"type":"string"},"internal_name":{"type":"string"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"llms_txt_context":{"type":"string"},"canonical_subdomain":{"type":"string"},"canonical_domain":{"type":"string"},"locale":{"type":"string"},"access":{"type":"string"},"enabled":{"type":"boolean"},"blog_enabled":{"type":"boolean"},"blog_title":{"type":"string"},"force_new_experience":{"type":"boolean"},"exclude_courses_from_new_content":{"type":"boolean"},"hide_member_count":{"type":"boolean"},"members_can_publish_playlists":{"type":"boolean","description":"When false, only staff and admins who can edit site settings can make their own playlists public. Playlists that are already public stay public."},"bluesky_handle":{"type":"string"},"threads_username":{"type":"string"},"substack_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"default_ai_model":{"type":"string","description":"Model id for the site's member AI. 'auto' lets Simplero pick the model for each message; blank means Recommended."},"lock_ai_model":{"type":"boolean"},"ai_web_search":{"type":"boolean"},"ai_browser_tools":{"type":"boolean"},"ai_follow_up_suggestions":{"type":"boolean"},"card_image_id":{"type":"integer"},"logo_id":{"type":"integer"},"dark_mode_logo_id":{"type":"integer"},"favicon_id":{"type":"integer"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"join_copy":{"type":"string","description":"HTML content from a WYSIWYG editor"},"not_logged_in_message":{"type":"string","description":"HTML content from a WYSIWYG editor"},"instagram_username":{"type":"string"},"youtube_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"x_username":{"type":"string"},"facebook_profile_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"pinterest_username":{"type":"string"},"snapchat_username":{"type":"string"},"vimeo_username":{"type":"string"},"linkedin_username":{"type":"string"},"tiktok_username":{"type":"string"},"meta_image_id":{"type":"integer"},"meta_data_public":{"type":"boolean"},"hide_from_ai_bots":{"type":"boolean"},"allow_ai_training":{"type":"boolean"},"noindex_product_catalog":{"type":"boolean","description":"Main site only: noindex the product catalog and its category pages and leave them out of the sitemap."},"disable_reactions":{"type":"boolean"},"member_directory_enabled":{"type":"boolean"},"chat_allow_conversation_members":{"type":"boolean"},"collapse_comments":{"type":"boolean"},"display_badges":{"type":"boolean"},"comment_without_login":{"type":"boolean"},"moderator_email":{"type":"string","format":"email"},"comment_spam_words":{"type":"string","description":"One spam word or phrase per line; does not apply to staff or admin comments."},"default_notifications":{"type":"string","description":"Default notification preference for new members; does not change existing members."},"prevent_downloads":{"type":"boolean"},"default_profile_private":{"type":"boolean"},"reply_by_email":{"type":"boolean"},"allow_voice_recordings":{"type":"boolean"},"subject_prefix":{"type":"string"},"show_smart_app_banner":{"type":"boolean"},"logout_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"hide_engagement_scores_from_members":{"type":"boolean"},"custom_tracking_code":{"type":"string"},"custom_tracking_code_for_body":{"type":"string"},"not_found_page_id":{"type":"integer"},"splash_landing_page_id":{"type":"integer"},"engagement_credit_id":{"type":"integer"},"style_guide_id":{"type":"integer"},"nps_survey_id":{"type":"integer"},"blog_meta_title":{"type":"string"},"blog_meta_description":{"type":"string"},"blog_meta_image_id":{"type":"integer"},"blog_comments_type":{"type":"string","enum":["rich","rich_without_attachments","plain"]}}},"SiteRedirect":{"type":"object","properties":{"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer"},"path":{"type":"string","description":"Path on the site that triggers the redirect, relative to the site root and without a leading slash (e.g. \"old-page\")."},"redirect_to":{"type":"string","description":"Destination the visitor is sent to — either a fully-qualified URL (https://…) or a site-relative path starting with \"/\"."},"permanent":{"type":"boolean","description":"When true, issues an HTTP 301 (permanent) redirect; when false, an HTTP 302 (temporary) redirect."},"auto_created":{"type":"boolean","readOnly":true,"description":"True when Simplero created this redirect automatically (e.g. after a page URL changed) rather than a user creating it manually."},"active":{"type":"boolean"},"visits_count":{"type":"integer","readOnly":true},"last_visited_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["site_id","path","redirect_to","created_at","updated_at"]},"SiteRedirectOptional":{"type":"object","properties":{"redirect_to":{"type":"string","description":"Destination the visitor is sent to — either a fully-qualified URL (https://…) or a site-relative path starting with \"/\"."},"permanent":{"type":"boolean","description":"When true, issues an HTTP 301 (permanent) redirect; when false, an HTTP 302 (temporary) redirect."},"active":{"type":"boolean"}}},"Space":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."}}},"SplitTest":{"type":"object","properties":{"name":{"type":"string"},"page_weights":{"type":"object","description":"Map of split test page ID to weight 0-100. The weights of the test's pages must add up to 1-100. Pages left out keep their weight."},"slug":{"type":"string","readOnly":true},"use_control_url":{"type":"boolean","readOnly":true},"status":{"type":"string","enum":["setup","active","complete"],"readOnly":true},"split_test_type":{"type":"string","enum":["site","landing_page"],"readOnly":true},"url":{"type":"string","format":"uri","readOnly":true,"description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"control_page_id":{"type":"integer","readOnly":true},"unique_views":{"type":"integer","readOnly":true},"conversions":{"type":"integer","readOnly":true},"conversion_rate_percentage":{"type":"number","readOnly":true},"pages":{"type":"array","items":{"$ref":"#/components/schemas/SplitTestPage"},"readOnly":true},"page_ids":{"type":"array","items":{"type":"integer"},"readOnly":true},"site":{"$ref":"#/components/schemas/Site","readOnly":true},"site_id":{"type":"integer","readOnly":true},"list":{"$ref":"#/components/schemas/List","readOnly":true},"list_id":{"type":"integer","readOnly":true},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","slug","created_at","updated_at"]},"SplitTestOptional":{"type":"object","properties":{"name":{"type":"string"},"page_weights":{"type":"object","description":"Map of split test page ID to weight 0-100. The weights of the test's pages must add up to 1-100. Pages left out keep their weight."}}},"SplitTestPage":{"type":"object","properties":{"split_test":{"$ref":"#/components/schemas/SplitTest","readOnly":true},"split_test_id":{"type":"integer"},"name":{"type":"string"},"member":{"type":"object","readOnly":true},"member_id":{"type":"integer","readOnly":true},"member_type":{"type":"string","readOnly":true},"weight":{"type":"integer","readOnly":true},"control":{"type":"boolean","readOnly":true},"winner":{"type":"boolean","readOnly":true},"views":{"type":"integer","readOnly":true},"unique_views":{"type":"integer","readOnly":true},"unique_conversions":{"type":"integer","readOnly":true},"total_conversions":{"type":"integer","readOnly":true},"conversion_rate_percentage":{"type":"number","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["split_test_id","name","member_id","member_type","created_at","updated_at"]},"SplitTestPageOptional":{"type":"object","properties":{"name":{"type":"string"}}},"Step":{"type":"object","properties":{"wait_count":{"type":"integer"},"wait_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"delta_count":{"type":"integer"},"delta_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"automation":{"$ref":"#/components/schemas/Automation","readOnly":true},"automation_id":{"type":"integer"},"step_type":{"type":"string","description":"Type of step. action = run an Action. wait = pause for a duration/event. goto = jump to another step. stop = end the flow. split = send each contact down one of its branches, which then join again at the step after the split."},"split_kind":{"type":"string","description":"Split steps only, set on create: 'condition' takes the first branch whose conditions match, else the Otherwise branch. 'split_test' picks a branch at random by weight."},"step_path":{"$ref":"#/components/schemas/StepPath","readOnly":true,"description":"The split branch this step is in. nil = the main line. Set on create only — use the move action to move a step into or out of a branch."},"step_path_id":{"type":"integer","description":"The split branch this step is in. nil = the main line. Set on create only — use the move action to move a step into or out of a branch."},"name":{"type":"string"},"notes":{"type":"string"},"enabled":{"type":"boolean"},"always_run":{"type":"boolean"},"skip_if_wait_exceeded":{"type":"boolean"},"valid_from":{"type":"string","format":"date-time"},"valid_to":{"type":"string","format":"date-time"},"requires_consent":{"type":"boolean","description":"Whether contacts who have not given marketing consent skip this step (action steps only)."},"action":{"$ref":"#/components/schemas/Action","description":"The Action this step performs (only when step_type is action). Written nested; the Action is owned by the step, not attached by FK."},"action_id":{"type":"integer","readOnly":true,"description":"The Action this step performs (only when step_type is action). Written nested; the Action is owned by the step, not attached by FK."},"parent":{"$ref":"#/components/schemas/Step","readOnly":true,"description":"Previous step in the same path (step_path). For the first step of a split branch, and for the first step after a split, it is the split. nil = first step in the automation. Set on create only — use the move action to reposition an existing step."},"parent_id":{"type":"integer","description":"Previous step in the same path (step_path). For the first step of a split branch, and for the first step after a split, it is the split. nil = first step in the automation. Set on create only — use the move action to reposition an existing step."},"goto_step":{"$ref":"#/components/schemas/Step","readOnly":true,"description":"Target step when step_type is goto."},"goto_step_id":{"type":"integer","description":"Target step when step_type is goto."},"field":{"$ref":"#/components/schemas/Field","readOnly":true,"description":"Custom field to read when wait_type is 'field'."},"field_id":{"type":"integer","description":"Custom field to read when wait_type is 'field'."},"countdown_timer":{"$ref":"#/components/schemas/CountdownTimer","readOnly":true,"description":"Countdown timer to wait on when wait_type is 'countdown_timer'."},"countdown_timer_id":{"type":"integer","description":"Countdown timer to wait on when wait_type is 'countdown_timer'."},"wait_type":{"type":"string","description":"How the wait step computes its end time. Only applies when step_type is wait."},"delta_sign":{"type":"integer","description":"Sign for the delta offset. -1 = before the wait target, 1 = after. Only applies to relative wait types (field, course_start, period_ends, event_start, event_end, countdown_timer)."},"wait_for_day":{"type":"string","description":"Day-of-week constraint. 'any', a comma-separated list of day names (e.g. 'Monday,Wednesday'), or the legacy meta-values 'weekday'/'weekend'."},"wait_for_day_of_month":{"type":"integer","description":"Specific day of the month to wait for. 1-31, or negative for last/second-to-last."},"wait_for_time_min":{"type":"integer","description":"Earliest minute-of-day (0-1439) for the wait to fire."},"wait_for_time_max":{"type":"integer","description":"Latest minute-of-day (0-1439) for the wait to fire."},"wait_time_zone":{"type":"string","description":"Time zone to use for wait timing. 'account' or 'contact'."},"wait_until_time":{"type":"string","format":"date-time","description":"Specific datetime to wait until. Only applies when wait_type is until_time."},"wait_until_time_contact":{"type":"string","description":"Specific time-of-day to wait until, evaluated in the contact's time zone. Only applies when wait_type is until_time_contact."},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false."},"fixed":{"type":"boolean","readOnly":true,"description":"True for the \"Start of event\" and \"End of event\" waits every event automation has. They are always there: they can not be changed, moved or deleted."},"flows_count":{"type":"integer","readOnly":true,"description":"Contacts at this step right now (active or paused), the count the automation page shows on the step. Unlike the automation's flows_count, which counts every flow ever started, it excludes completed and stopped flows."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["automation_id","created_at","updated_at"]},"StepOptional":{"type":"object","properties":{"wait_count":{"type":"integer"},"wait_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"delta_count":{"type":"integer"},"delta_unit":{"type":"string","enum":["minutes","hours","days","weeks","months","years"]},"name":{"type":"string"},"notes":{"type":"string"},"enabled":{"type":"boolean"},"always_run":{"type":"boolean"},"skip_if_wait_exceeded":{"type":"boolean"},"valid_from":{"type":"string","format":"date-time"},"valid_to":{"type":"string","format":"date-time"},"requires_consent":{"type":"boolean","description":"Whether contacts who have not given marketing consent skip this step (action steps only)."},"action":{"$ref":"#/components/schemas/Action","description":"The Action this step performs (only when step_type is action). Written nested; the Action is owned by the step, not attached by FK."},"goto_step_id":{"type":"integer","description":"Target step when step_type is goto."},"field_id":{"type":"integer","description":"Custom field to read when wait_type is 'field'."},"countdown_timer_id":{"type":"integer","description":"Countdown timer to wait on when wait_type is 'countdown_timer'."},"wait_type":{"type":"string","description":"How the wait step computes its end time. Only applies when step_type is wait."},"delta_sign":{"type":"integer","description":"Sign for the delta offset. -1 = before the wait target, 1 = after. Only applies to relative wait types (field, course_start, period_ends, event_start, event_end, countdown_timer)."},"wait_for_day":{"type":"string","description":"Day-of-week constraint. 'any', a comma-separated list of day names (e.g. 'Monday,Wednesday'), or the legacy meta-values 'weekday'/'weekend'."},"wait_for_day_of_month":{"type":"integer","description":"Specific day of the month to wait for. 1-31, or negative for last/second-to-last."},"wait_for_time_min":{"type":"integer","description":"Earliest minute-of-day (0-1439) for the wait to fire."},"wait_for_time_max":{"type":"integer","description":"Latest minute-of-day (0-1439) for the wait to fire."},"wait_time_zone":{"type":"string","description":"Time zone to use for wait timing. 'account' or 'contact'."},"wait_until_time":{"type":"string","format":"date-time","description":"Specific datetime to wait until. Only applies when wait_type is until_time."},"wait_until_time_contact":{"type":"string","description":"Specific time-of-day to wait until, evaluated in the contact's time zone. Only applies when wait_type is until_time_contact."},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false."}}},"StepPath":{"type":"object","properties":{"step":{"$ref":"#/components/schemas/Step","readOnly":true},"step_id":{"type":"integer"},"name":{"type":"string"},"position":{"type":"integer"},"weight":{"type":"integer","description":"Split tests only: the share of contacts (0–100) sent down this branch. All branches add up to 100."},"otherwise":{"type":"boolean","readOnly":true,"description":"Conditional splits only: true for the last branch, which contacts take when no other branch matches."},"rules":{"type":"object","nullable":true,"description":"Conditional splits only: the branch's conditions, in the same rule format the conditions editor uses, e.g. `{ \"condition\": \"AND\", \"rules\": [{ \"id\": \"tag\", \"operator\": \"equal\", \"value\": \"123\" }] }`; groups nest as rules. Contacts take the first branch (by position) whose rules they match, else Otherwise. `null`, `{}` or a group with no rules clears them. Text rules (`first_name`, `last_name`, `email`) take `equal`, `contains`, `not_equal`, `not_contains`, `begins_with`, `ends_with`, `is_empty` or `is_not_empty`. Number rules (`opened_emails`, `clicked_emails`, `lifetime_value_cents_excl_tax`, …) take `equal`, `greater`, `greater_or_equal`, `less`, `less_or_equal` or `not_equal`; survey scores also take `between`. Custom field rules (`field_\u003cfield id\u003e`) take the operators of their field's type: text fields the text operators, number fields the number operators, and choice fields (select, radio, checkbox) only `equal`, with an option id or an array of them (any of which holds), e.g. `\"value\": [12, 34]`; all of them also take `is_null` and `is_not_null`. Survey field rules (`survey_field_\u003csurvey id\u003e_\u003cfield id\u003e`) take their field type's operators. Any other operator is refused. Every other rule takes only `equal`; to negate it, prefix its id with `not_`, e.g. `{ \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \"123\" }` for contacts without that tag. A conditional split holds contacts until every branch except Otherwise has rules. Otherwise never has rules."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["step_id","created_at","updated_at"]},"StepPathOptional":{"type":"object","properties":{"name":{"type":"string"},"position":{"type":"integer"},"weight":{"type":"integer","description":"Split tests only: the share of contacts (0–100) sent down this branch. All branches add up to 100."},"rules":{"type":"object","nullable":true,"description":"Conditional splits only: the branch's conditions, in the same rule format the conditions editor uses, e.g. `{ \"condition\": \"AND\", \"rules\": [{ \"id\": \"tag\", \"operator\": \"equal\", \"value\": \"123\" }] }`; groups nest as rules. Contacts take the first branch (by position) whose rules they match, else Otherwise. `null`, `{}` or a group with no rules clears them. Text rules (`first_name`, `last_name`, `email`) take `equal`, `contains`, `not_equal`, `not_contains`, `begins_with`, `ends_with`, `is_empty` or `is_not_empty`. Number rules (`opened_emails`, `clicked_emails`, `lifetime_value_cents_excl_tax`, …) take `equal`, `greater`, `greater_or_equal`, `less`, `less_or_equal` or `not_equal`; survey scores also take `between`. Custom field rules (`field_\u003cfield id\u003e`) take the operators of their field's type: text fields the text operators, number fields the number operators, and choice fields (select, radio, checkbox) only `equal`, with an option id or an array of them (any of which holds), e.g. `\"value\": [12, 34]`; all of them also take `is_null` and `is_not_null`. Survey field rules (`survey_field_\u003csurvey id\u003e_\u003cfield id\u003e`) take their field type's operators. Any other operator is refused. Every other rule takes only `equal`; to negate it, prefix its id with `not_`, e.g. `{ \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \"123\" }` for contacts without that tag. A conditional split holds contacts until every branch except Otherwise has rules. Otherwise never has rules."}}},"StringFilter":{"type":"object","properties":{"op":{"type":"string","enum":["contains","not_contain","starts_with","ends_with","equals","not_equal","blank","not_blank"]},"value":{"type":"string","description":"Only when op is contains/not_contain/starts_with/ends_with/equals/not_equal"}}},"StyleGuide":{"type":"object","properties":{"content_builder_doc_id":{"type":"integer","readOnly":true,"description":"ID of the content BuilderDoc owned by this StyleGuide."},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string","readOnly":true},"underline_links":{"type":"boolean","description":"Whether text links on pages that use this style guide are underlined (Colors \u003e Underline links). Changing it publishes the style guide, so it fails while the guide has unpublished changes."},"page_background":{"type":"string","enum":["shaded","lightest"],"description":"Background of system pages (courses, community, catalogs, booking) in light mode (System \u003e Layout \u003e Page background): `shaded` (a step darker than cards, from the System colors neutral scale) or `lightest` (the System colors Lightest shade, same as cards; white when that shade is white). Changing it publishes the style guide, so it fails while the guide has unpublished changes."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"StyleGuideOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"underline_links":{"type":"boolean","description":"Whether text links on pages that use this style guide are underlined (Colors \u003e Underline links). Changing it publishes the style guide, so it fails while the guide has unpublished changes."},"page_background":{"type":"string","enum":["shaded","lightest"],"description":"Background of system pages (courses, community, catalogs, booking) in light mode (System \u003e Layout \u003e Page background): `shaded` (a step darker than cards, from the System colors neutral scale) or `lightest` (the System colors Lightest shade, same as cards; white when that shade is white). Changing it publishes the style guide, so it fails while the guide has unpublished changes."}}},"Subscription":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"list":{"$ref":"#/components/schemas/List","readOnly":true},"list_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"affiliate":{"$ref":"#/components/schemas/Affiliate","readOnly":true},"affiliate_id":{"type":"integer","readOnly":true},"landing_page":{"$ref":"#/components/schemas/LandingPage","readOnly":true},"landing_page_id":{"type":"integer","readOnly":true},"funnel_step":{"$ref":"#/components/schemas/FunnelStep","readOnly":true},"funnel_step_id":{"type":"integer","readOnly":true},"active":{"type":"boolean","readOnly":true},"confirmed":{"type":"boolean","readOnly":true},"skip_auto_responses":{"type":"boolean","readOnly":true},"first_activated_at":{"type":"string","format":"date-time","readOnly":true},"confirmed_at":{"type":"string","format":"date-time","readOnly":true},"unsubscribed_at":{"type":"string","format":"date-time","readOnly":true},"suspended_at":{"type":"string","format":"date-time","readOnly":true},"auto_responder_start_at":{"type":"string","format":"date-time","readOnly":true},"auto_responder_paused_at":{"type":"string","format":"date-time","readOnly":true},"auto_responder_reset_at":{"type":"string","format":"date-time","readOnly":true},"next_auto_response_check_at":{"type":"string","format":"date-time","readOnly":true},"confirmation_request_sent_at":{"type":"string","format":"date-time","readOnly":true},"confirmation_request_sent_count":{"type":"integer","readOnly":true},"ref":{"type":"string","readOnly":true},"track":{"type":"string"},"ip_address":{"type":"string","readOnly":true},"referrer":{"type":"string","readOnly":true},"suspend_reason":{"type":"string","readOnly":true},"utm_source":{"type":"string"},"utm_medium":{"type":"string"},"utm_campaign":{"type":"string"},"utm_content":{"type":"string"},"utm_term":{"type":"string"},"utm_adgroup":{"type":"string"},"utm_keyword":{"type":"string"},"status":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","list","list_id","customer","customer_id"]},"SubscriptionOptional":{"type":"object","properties":{"track":{"type":"string"},"utm_source":{"type":"string"},"utm_medium":{"type":"string"},"utm_campaign":{"type":"string"},"utm_content":{"type":"string"},"utm_term":{"type":"string"},"utm_adgroup":{"type":"string"},"utm_keyword":{"type":"string"}}},"Survey":{"type":"object","properties":{"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"automation_templates":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"answer_keys":{"type":"array","items":{"type":"string"}},"answer_options":{"type":"object","description":"Choices per answer key, e.g. style: [{ value, title, emails, default }], locale: [{ value, title, default }]"}}},"readOnly":true,"description":"Templates create_automation_from_template accepts for this record, with the answers each one reads."},"token":{"type":"string","readOnly":true},"form_fields":{"type":"array","items":{"$ref":"#/components/schemas/FormField"},"readOnly":true},"form_field_ids":{"type":"array","items":{"type":"integer"}},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"title":{"type":"string"},"internal_name":{"type":"string"},"submit_button_label":{"type":"string"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"confirmation_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"active":{"type":"boolean"},"responses_count":{"type":"integer","readOnly":true},"response_notification_emails":{"type":"string"},"success_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"custom_tracking_code":{"type":"string"},"custom_tracking_code_for_body":{"type":"string"},"confirmation_option":{"type":"string","enum":["thank_you","redirect"]},"confirmation_title":{"type":"string"},"presentation_mode":{"type":"string","enum":["single_page","multi_page"]},"show_question_numbers":{"type":"boolean"},"randomize_question_order":{"type":"boolean"},"allow_save_and_resume":{"type":"boolean"},"meta_conversion_event":{"type":"string"},"responses":{"type":"array","items":{"$ref":"#/components/schemas/SurveyResponse"},"readOnly":true},"response_ids":{"type":"array","items":{"type":"integer"}},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/Trigger"},"readOnly":true},"trigger_ids":{"type":"array","items":{"type":"integer"}},"funnel_steps":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"},"readOnly":true},"funnel_step_ids":{"type":"array","items":{"type":"integer"}},"funnels":{"type":"array","items":{"$ref":"#/components/schemas/Funnel"},"readOnly":true},"funnel_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","internal_name","created_at","updated_at"]},"SurveyOptional":{"type":"object","properties":{"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"form_field_ids":{"type":"array","items":{"type":"integer"}},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean"},"title":{"type":"string"},"internal_name":{"type":"string"},"submit_button_label":{"type":"string"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"confirmation_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"active":{"type":"boolean"},"response_notification_emails":{"type":"string"},"success_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"custom_tracking_code":{"type":"string"},"custom_tracking_code_for_body":{"type":"string"},"confirmation_option":{"type":"string","enum":["thank_you","redirect"]},"confirmation_title":{"type":"string"},"presentation_mode":{"type":"string","enum":["single_page","multi_page"]},"show_question_numbers":{"type":"boolean"},"randomize_question_order":{"type":"boolean"},"allow_save_and_resume":{"type":"boolean"},"meta_conversion_event":{"type":"string"},"response_ids":{"type":"array","items":{"type":"integer"}},"trigger_ids":{"type":"array","items":{"type":"integer"}},"funnel_step_ids":{"type":"array","items":{"type":"integer"}},"funnel_ids":{"type":"array","items":{"type":"integer"}}}},"SurveyResponse":{"type":"object","properties":{"field_values":{"type":"array","items":{"$ref":"#/components/schemas/FieldValue"},"readOnly":true},"field_value_ids":{"type":"array","items":{"type":"integer"}},"token":{"type":"string","readOnly":true},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"survey":{"$ref":"#/components/schemas/Survey","readOnly":true},"survey_id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string","format":"email"},"referrer":{"type":"string"},"viewed_at":{"type":"string","format":"date-time","readOnly":true},"started_at":{"type":"string","format":"date-time","readOnly":true},"submitted_at":{"type":"string","format":"date-time","readOnly":true},"score":{"type":"integer"},"spam":{"type":"boolean"},"answers":{"type":"object","readOnly":true,"description":"The respondent's answers, keyed by field ID. Multi-part fields (name, address, phone) are aggregated; multiple-choice answers use the chosen option labels. Look up field definitions via GET /surveys/:id."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","survey_id","created_at","updated_at"]},"SurveyResponseOptional":{"type":"object","properties":{"field_value_ids":{"type":"array","items":{"type":"integer"}},"customer_id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string","format":"email"},"referrer":{"type":"string"},"score":{"type":"integer"},"spam":{"type":"boolean"}}},"Tag":{"type":"object","properties":{"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"name":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"owner":{"$ref":"#/components/schemas/User","readOnly":true},"owner_id":{"type":"integer"},"undeleted_customers_count":{"type":"integer","readOnly":true},"last_tagging_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["token","name","created_at","updated_at"]},"TagOptional":{"type":"object","properties":{"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"label_ids":{"type":"array","items":{"type":"integer"}},"show_in_admin":{"type":"boolean","description":"Whether the record is starred in the admin. Unstarred records are hidden from admin lists by default."},"name":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"owner_id":{"type":"integer"}}},"Tagging":{"type":"object","properties":{"tag":{"$ref":"#/components/schemas/Tag","readOnly":true},"tag_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"created_at":{"type":"string","format":"date-time","readOnly":true}},"required":["tag_id","customer_id","created_at"]},"Task":{"type":"object","properties":{"title":{"type":"string","readOnly":true},"description":{"type":"string","readOnly":true},"status":{"type":"string","enum":["pending","completed","canceled"],"readOnly":true},"assignee_id":{"type":"integer","readOnly":true},"customer_id":{"type":"integer","readOnly":true},"object_type":{"type":"string","readOnly":true},"object_id":{"type":"integer","readOnly":true},"due_at":{"type":"string","format":"date-time","readOnly":true},"completed_at":{"type":"string","format":"date-time","readOnly":true},"canceled_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["title","created_at","updated_at"]},"TaxRegion":{"type":"object","properties":{"country_code":{"type":"string","description":"Two-letter country code, or a group: EU* (EU countries), NA* (US, Canada, Mexico), * (everywhere else)"},"region_code":{"type":"string","description":"Subregion code (e.g. a Canadian province) for countries with subregions. Null for the country row. The country row must exist first."},"tax_percent":{"type":"number","description":"Changing it also updates active subscriptions and installment purchases using this rate. On create, a country row defaults to the standard VAT rate when left out; a subregion defaults to 0."},"tax_name":{"type":"string"},"tax_type":{"type":"string","enum":["add","replace","compound"],"description":"Subregions only: how the rate combines with the country rate"},"deny_sales":{"type":"boolean","description":"Refuse sales to customers in this country or region"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["country_code"]},"TaxRegionOptional":{"type":"object","properties":{"tax_percent":{"type":"number","description":"Changing it also updates active subscriptions and installment purchases using this rate. On create, a country row defaults to the standard VAT rate when left out; a subregion defaults to 0."},"tax_name":{"type":"string"},"tax_type":{"type":"string","enum":["add","replace","compound"],"description":"Subregions only: how the rate combines with the country rate"},"deny_sales":{"type":"boolean","description":"Refuse sales to customers in this country or region"}}},"Testimonial":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"author_name":{"type":"string"},"author_email":{"type":"string","format":"email"},"author_title":{"type":"string"},"author_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"rating":{"type":"integer"},"published":{"type":"boolean"},"anonymous":{"type":"boolean"},"source":{"type":"string"},"permission_given_at":{"type":"string","format":"date-time"},"consent_text":{"type":"string","readOnly":true,"description":"The exact consent statement the member ticked on the site testimonial form. Read-only."},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"bot":{"$ref":"#/components/schemas/Bot","readOnly":true},"bot_id":{"type":"integer"},"author_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"author_image_id":{"type":"integer"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"readOnly":true},"attachment_ids":{"type":"array","items":{"type":"integer"}}},"required":["created_at","updated_at","author_name"]},"TestimonialOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"author_name":{"type":"string"},"author_email":{"type":"string","format":"email"},"author_title":{"type":"string"},"author_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"rating":{"type":"integer"},"published":{"type":"boolean"},"anonymous":{"type":"boolean"},"source":{"type":"string"},"permission_given_at":{"type":"string","format":"date-time"},"product_id":{"type":"integer"},"customer_id":{"type":"integer"},"bot_id":{"type":"integer"},"author_image_id":{"type":"integer"},"attachment_ids":{"type":"array","items":{"type":"integer"}}}},"Theme":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}}}},"Ticket":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"facet_values":{"type":"array","items":{"$ref":"#/components/schemas/FacetValue"},"readOnly":true},"facet_value_ids":{"type":"array","items":{"type":"integer"}},"secondary_submitter_customer_ids":{"type":"array","items":{"type":"integer"},"readOnly":true,"description":"Contacts added to the ticket besides the main submitter. They get the replies too. Addresses added by email without a contact are not listed."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"subject":{"type":"string"},"body":{"type":"string"},"url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"submitter":{"$ref":"#/components/schemas/User","readOnly":true},"submitter_id":{"type":"integer"},"assignee":{"$ref":"#/components/schemas/User","readOnly":true},"assignee_id":{"type":"integer"},"pipeline_stage":{"$ref":"#/components/schemas/PipelineStage","readOnly":true},"pipeline_stage_id":{"type":"integer"},"personal_angel":{"type":"boolean"},"super_urgent":{"type":"boolean"},"reassign_to_default_assignee_on_new_comment":{"type":"boolean","description":"When on, a new reply from the customer reassigns the ticket to the default ticket assignee."},"customer_comment_count":{"type":"integer","readOnly":true,"description":"Number of comments posted by the member (submitter) — excludes staff replies and bot/automated messages."},"staff_comment_count":{"type":"integer","readOnly":true,"description":"Number of comments posted by staff, including internal notes."},"internal_note_count":{"type":"integer","readOnly":true,"description":"Number of internal (non-customer-facing) notes on the ticket."},"first_customer_comment_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the member posted their first comment on this ticket."},"first_staff_reply_at":{"type":"string","format":"date-time","readOnly":true,"description":"When staff first replied publicly."},"rating":{"type":"integer","readOnly":true,"description":"Customer satisfaction rating from -2 (very unhappy) to 2 (very happy). Positive is happy, negative is unhappy. Null when not rated."},"rated_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the ticket was rated. Null when not rated."},"last_comment_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the most recent comment was posted on this ticket."}},"required":["created_at","updated_at","subject","pipeline_stage"]},"TicketComment":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"ticket":{"$ref":"#/components/schemas/Ticket","readOnly":true},"ticket_id":{"type":"integer"},"poster":{"$ref":"#/components/schemas/User","readOnly":true,"description":"The user who posted this comment. There is no separate customer/staff poster type in this schema — see `staff` to distinguish a member reply from a staff reply."},"poster_id":{"type":"integer","readOnly":true,"description":"The user who posted this comment. There is no separate customer/staff poster type in this schema — see `staff` to distinguish a member reply from a staff reply."},"body":{"type":"string"},"formatted_body_md":{"type":"string","readOnly":true,"description":"AI-formatted Markdown of the body, when enabled on the help desk. Every ASCII punctuation mark is backslash-escaped; render it with a CommonMark renderer."},"ai_summary_text":{"type":"string","readOnly":true},"staff":{"type":"boolean","readOnly":true,"description":"Whether the poster was a staff member rather than the ticket submitter."},"bot":{"type":"boolean","readOnly":true,"description":"Whether the comment was posted by an automation rather than a person."},"internal":{"type":"boolean","description":"Internal (non-customer-facing) note, not part of the visible conversation."}},"required":["created_at","updated_at","ticket_id","body"]},"TicketOptional":{"type":"object","properties":{"facet_value_ids":{"type":"array","items":{"type":"integer"}},"customer_id":{"type":"integer"},"subject":{"type":"string"},"body":{"type":"string"},"url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"submitter_id":{"type":"integer"},"assignee_id":{"type":"integer"},"pipeline_stage_id":{"type":"integer"},"personal_angel":{"type":"boolean"},"super_urgent":{"type":"boolean"},"reassign_to_default_assignee_on_new_comment":{"type":"boolean","description":"When on, a new reply from the customer reassigns the ticket to the default ticket assignee."}}},"TransactionalEmail":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"email":{"type":"string","format":"email"},"subject":{"type":"string"},"category":{"type":"string"},"status":{"type":"string"},"text":{"type":"string"},"sent_at":{"type":"string","format":"date-time","readOnly":true},"delivered_at":{"type":"string","format":"date-time","readOnly":true},"dropped_at":{"type":"string","format":"date-time","readOnly":true},"opened_at":{"type":"string","format":"date-time","readOnly":true},"clicked_at":{"type":"string","format":"date-time","readOnly":true},"bounced_at":{"type":"string","format":"date-time","readOnly":true},"spamreported_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"Trigger":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["days","weeks","months","years"]},"event":{"type":"string","description":"Event name. Accepts a fully-qualified id (e.g. `Link-click`, `Tag-add`, `Account-page_view`) or a legacy name (e.g. `click`, `tag_add`). Use GET /api/v2/triggers/available to list valid ids."},"owner":{"type":"object","readOnly":true},"owner_id":{"type":"integer"},"owner_type":{"type":"string"},"action":{"$ref":"#/components/schemas/Action"},"action_id":{"type":"integer"},"enabled":{"type":"boolean"},"only_once":{"type":"boolean"},"check_at_start":{"type":"boolean","description":"For a trigger that stops an automation (an exit condition): also keep the automation from starting for a contact who already has what the event gives, such as the tag or an active purchase. Only read for tag added, list subscribed, product participant activated and product purchase events. Off by default."},"notes":{"type":"string"},"auto_created":{"type":"boolean","readOnly":true,"description":"True for a trigger Simplero added, such as the module open email on a dripped module. Turns false once someone saves a change to the trigger or its action; Simplero only removes it while it is true."},"always_run":{"type":"boolean","description":"When false, the trigger only fires if condition_rule is satisfied. When true (default), it fires unconditionally and condition_rule is ignored even if set."},"value":{"type":"integer","description":"The number some events compare against: the lead score for `lead_score_above` / `lead_score_below`, or the days before expiry for `purchase_will_expire`."},"url":{"type":"string","description":"For `page_view`: the page URL to match, compared using `url_match`."},"url_match":{"type":"string","enum":["exact","include","begin","end"],"description":"How `url` is compared with the visited URL for `page_view`: `exact`, `include` (contains), `begin` (begins with) or `end` (ends with)."},"forum_category":{"$ref":"#/components/schemas/ForumCategory","readOnly":true,"description":"For `member_create_post` on a site: only fire for posts in this forum category. Empty means any category."},"forum_category_id":{"type":"integer","description":"For `member_create_post` on a site: only fire for posts in this forum category. Empty means any category."},"on_object_type":{"type":"string","description":"For events that can fire on more than one object (for example the contact or a related record), which object the trigger fires on."},"args":{"type":"object","description":"Per-event arguments. Shape is from GET /api/v2/triggers/detail. Empty object when the event has no extra args."},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["event","owner_id","owner_type","action","created_at","updated_at"]},"TriggerOptional":{"type":"object","properties":{"label_ids":{"type":"array","items":{"type":"integer"}},"duration_count":{"type":"integer"},"duration_unit":{"type":"string","enum":["days","weeks","months","years"]},"event":{"type":"string","description":"Event name. Accepts a fully-qualified id (e.g. `Link-click`, `Tag-add`, `Account-page_view`) or a legacy name (e.g. `click`, `tag_add`). Use GET /api/v2/triggers/available to list valid ids."},"action":{"$ref":"#/components/schemas/Action"},"action_id":{"type":"integer"},"enabled":{"type":"boolean"},"only_once":{"type":"boolean"},"check_at_start":{"type":"boolean","description":"For a trigger that stops an automation (an exit condition): also keep the automation from starting for a contact who already has what the event gives, such as the tag or an active purchase. Only read for tag added, list subscribed, product participant activated and product purchase events. Off by default."},"notes":{"type":"string"},"always_run":{"type":"boolean","description":"When false, the trigger only fires if condition_rule is satisfied. When true (default), it fires unconditionally and condition_rule is ignored even if set."},"value":{"type":"integer","description":"The number some events compare against: the lead score for `lead_score_above` / `lead_score_below`, or the days before expiry for `purchase_will_expire`."},"url":{"type":"string","description":"For `page_view`: the page URL to match, compared using `url_match`."},"url_match":{"type":"string","enum":["exact","include","begin","end"],"description":"How `url` is compared with the visited URL for `page_view`: `exact`, `include` (contains), `begin` (begins with) or `end` (ends with)."},"forum_category_id":{"type":"integer","description":"For `member_create_post` on a site: only fire for posts in this forum category. Empty means any category."},"on_object_type":{"type":"string","description":"For events that can fire on more than one object (for example the contact or a related record), which object the trigger fires on."},"args":{"type":"object","description":"Per-event arguments. Shape is from GET /api/v2/triggers/detail. Empty object when the event has no extra args."},"condition_rule":{"type":"object","description":"Rule tree. Group: { \"condition\": \"AND\"|\"OR\", \"rules\": [...] }. Leaf: { \"id\", \"operator\", \"value\" } — e.g. { \"id\": \"not_tag\", \"operator\": \"equal\", \"value\": \u003ctag_id\u003e }. Types such as subscription or purchase take an object value, e.g. { \"list_id\": \u003clist_id\u003e }. A choice field (select, radio, checkbox) takes an option id or an array of them, any of which holds, e.g. { \"id\": \"field_\u003cfield_id\u003e\", \"operator\": \"equal\", \"value\": [\u003coption_id\u003e, \u003coption_id\u003e] }. Replacing the tree is all-or-nothing. Only enforced when always_run is false."}}},"Upsell":{"type":"object","properties":{"token":{"type":"string","readOnly":true},"product":{"$ref":"#/components/schemas/Product","readOnly":true},"product_id":{"type":"integer"},"offer_id":{"type":"integer"},"sales_page_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"parent_id":{"type":"integer"},"yes_branch":{"type":"boolean","readOnly":true,"description":"True when this offer follows a yes to the parent offer, false when it follows a no."},"deleted_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["product","product_id","created_at","updated_at"]},"UpsellOptional":{"type":"object","properties":{"offer_id":{"type":"integer"},"sales_page_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"}}},"User":{"type":"object","properties":{"first_names":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string","format":"email"},"username":{"type":"string"}},"required":["email"]},"VerifiedEmail":{"type":"object","properties":{"email":{"type":"string","format":"email","readOnly":true},"name":{"type":"string","readOnly":true},"verified":{"type":"boolean","readOnly":true},"verified_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["email","created_at","updated_at"]},"Worksheet":{"type":"object","properties":{"starter_automations":{"type":"array","items":{"$ref":"#/components/schemas/Automation"},"readOnly":true,"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"token":{"type":"string","readOnly":true},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"},"readOnly":true},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"internal_name":{"type":"string"},"active":{"type":"boolean"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"completed_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"completed_action":{"type":"string","enum":["page","redirect"],"description":"What people see after they submit a response: a thank-you `page` built from `completed_title` and `completed_body`, or a `redirect` to `completed_url`."},"completed_title":{"type":"string"},"completed_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"card_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"card_image_id":{"type":"integer"},"meta_image":{"$ref":"#/components/schemas/Asset","readOnly":true},"meta_image_id":{"type":"integer"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"send_login_email":{"type":"boolean","description":"Whether to email login details when a response creates a new login for the respondent."},"disallow_editing_response":{"type":"boolean","description":"When true, respondents cannot edit their response after submitting it."},"notify_on_completion":{"type":"boolean","description":"Whether to email `notify_on_completion_user` each time a response is submitted. Turning it on needs that user, which is picked in the admin."},"notify_on_completion_user":{"$ref":"#/components/schemas/User","readOnly":true},"notify_on_completion_user_id":{"type":"integer","readOnly":true},"public_url":{"type":"string","format":"uri","readOnly":true,"description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","updated_at"]},"WorksheetAnswer":{"type":"object","properties":{"worksheet_section":{"$ref":"#/components/schemas/WorksheetSection","readOnly":true},"worksheet_section_id":{"type":"integer"},"answer":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"The answer text. `list` and `checkbox` questions return an array of strings, one per item or checked choice. Empty for `file` questions."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["worksheet_section_id","created_at","updated_at"]},"WorksheetOptional":{"type":"object","properties":{"starter_automation_ids":{"type":"array","items":{"type":"integer"},"description":"Automations this record starts (and, for some events, stops) for the contact involved. Writing starter_automation_ids replaces the whole set."},"label_ids":{"type":"array","items":{"type":"integer"}},"title":{"type":"string"},"internal_name":{"type":"string"},"active":{"type":"boolean"},"description":{"type":"string","description":"HTML content from a WYSIWYG editor"},"completed_body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"completed_action":{"type":"string","enum":["page","redirect"],"description":"What people see after they submit a response: a thank-you `page` built from `completed_title` and `completed_body`, or a `redirect` to `completed_url`."},"completed_title":{"type":"string"},"completed_url":{"type":"string","format":"uri","description":"Must be an absolute URL including scheme (e.g. https://example.com)"},"card_image_id":{"type":"integer"},"meta_image_id":{"type":"integer"},"meta_title":{"type":"string"},"meta_description":{"type":"string"},"send_login_email":{"type":"boolean","description":"Whether to email login details when a response creates a new login for the respondent."},"disallow_editing_response":{"type":"boolean","description":"When true, respondents cannot edit their response after submitting it."},"notify_on_completion":{"type":"boolean","description":"Whether to email `notify_on_completion_user` each time a response is submitted. Turning it on needs that user, which is picked in the admin."}}},"WorksheetResponse":{"type":"object","properties":{"worksheet":{"$ref":"#/components/schemas/Worksheet","readOnly":true},"worksheet_id":{"type":"integer"},"customer":{"$ref":"#/components/schemas/Customer","readOnly":true},"customer_id":{"type":"integer"},"email":{"type":"string","format":"email"},"user":{"$ref":"#/components/schemas/User","readOnly":true},"user_id":{"type":"integer"},"space":{"$ref":"#/components/schemas/Space","readOnly":true},"space_id":{"type":"integer"},"referrer":{"type":"string"},"spam":{"type":"boolean"},"answers":{"type":"array","items":{"$ref":"#/components/schemas/WorksheetAnswer"},"readOnly":true},"answer_ids":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["worksheet_id","customer_id","created_at","updated_at"]},"WorksheetSection":{"type":"object","properties":{"worksheet":{"$ref":"#/components/schemas/Worksheet","readOnly":true},"worksheet_id":{"type":"integer"},"title":{"type":"string"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"question":{"type":"string","enum":["none","string","text","list","radio","checkbox","file"],"description":"The kind of answer this section asks for. `none` is a text-only section with no question."},"choices":{"type":"string","description":"The options for `radio` and `checkbox` questions, one per line."},"min_list_items_on_print":{"type":"integer","description":"For `list` questions: how many blank lines the printed worksheet shows."},"position":{"type":"integer","description":"Sort order among the sections of its `worksheet`, lowest first. On create, setting this inserts the section at that position and shifts later sections down; omit it to append at the end (the default). On update, setting it moves the section and reorders the affected siblings accordingly."},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["worksheet_id","created_at","updated_at"]},"WorksheetSectionOptional":{"type":"object","properties":{"title":{"type":"string"},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"question":{"type":"string","enum":["none","string","text","list","radio","checkbox","file"],"description":"The kind of answer this section asks for. `none` is a text-only section with no question."},"choices":{"type":"string","description":"The options for `radio` and `checkbox` questions, one per line."},"min_list_items_on_print":{"type":"integer","description":"For `list` questions: how many blank lines the printed worksheet shows."},"position":{"type":"integer","description":"Sort order among the sections of its `worksheet`, lowest first. On create, setting this inserts the section at that position and shifts later sections down; omit it to append at the end (the default). On update, setting it moves the section and reorders the affected siblings accordingly."}}},"WysiwygContentTemplate":{"type":"object","properties":{"name":{"type":"string"},"purpose":{"type":"string","enum":["ticket_comment"]},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"},"last_used_at":{"type":"string","format":"date-time","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["name","purpose","body","created_at","updated_at"]},"WysiwygContentTemplateOptional":{"type":"object","properties":{"name":{"type":"string"},"purpose":{"type":"string","enum":["ticket_comment"]},"body":{"type":"string","description":"HTML content from a WYSIWYG editor"}}}}}}